instruction stringlengths 9 38.7k |
|---|
There are hundreds if not thousands of textbooks that detail how to make population inferences from sample.
However for almost all my applications at work I have the entire population of data for which I'm interested in.
My general question is; How does the application of statistics change when we have population data,... |
I have a right-skewed distribution that represents that number of "likes" on a certain car category for a number of users. What I am trying to do is a sort of classification based on z-scores. For example, if a user has made a lot of likes in favor of the given category (more than 1 standard deviation above the mean) t... |
Both answers in these threads, one and two claim that $Y$ should be transformed before applying any other transformation to the predictors. Indeed Weisberg chapter on transformations focus more on DV than predictors, and so does the R car package powerTransform() manual page.
However, we know that normality of the DV d... |
I need to predict payment day of the month (1-31) for each client (I have at most 9 month of payments and on average is 5). I have both categorical variables and numerical. I tried to use rpart to do a regression tree (method='anova') but I'm not sure if it's using the nominal variables.
I also tried a regression (lin... |
I am doing regression with a data with Y as target variable and 16 feature variables. I had two date feature variables which where as factor. I converted them to date format as shown below:
X2 <- as.Date(X2, format="%m/%d/%Y"))
I had a lot of missing data in my training as well as validation data set. I was suggested... |
I have a small dataset (60 elements) for which I fit a simple linear regression model, and obtain a small coefficient of determination ($R^2 = 3\%$). I'm a beginner in statistics so I'm trying to understand what would happen if I try to fit the model to different samples (of the same size) made up by different elements... |
How do I estimate the probability P(skill(player1)>skill(player2)) when all of the following apply:
I know the number of wins and losses of player1 and player2.
I can assume that the wins and losses are all against randomly drawn opponents from the same population for each of player1 and player2.
Equality is out of th... |
I have two samples of documents where one sample contains documents of a certain category and another sample contains documents of another category. I am analysing the occurrence of a certain word in the documents.
I want to do an hypothesis test to check if the proportions of this word is the same in both populations... |
I'm working with a pretty large dataset (n = 4,500) where 10% of my points (pixels in a GIS landscape) are 1s and the rest are 0s. The full model for my data looks something like this:
model.full = glm(pond ~ elev + slope +
landform + strmord + wcover,
family=binomial, data)
Independent variables are eleva... |
I’ve been doing some statistical analyses in R on some data. It’s for use in a manuscript I’m hoping to get published in a biological journal. Unfortunately, the tests I ended up having to run are kind of at the limit of my understanding, so I was hoping that I could run through what I did with my data, and could get o... |
The SPSS t-Test procedure reports 2 analyses when comparing 2 independent means, one analysis with equal variances assumed and one with equal variances not assumed. The degrees of freedom (df) when equal variances are assumed are always integer values (and equal n-2). The df when equal variances are not assumed are n... |
Imagine I work in a screw factory (which is not true). We have been producing a series of 5cm-long (on average) screws for years. I want to modify the production parameters in order to save some money and then check if my new screws are shorter, longer or of equal lengths (5cm).
So I make a series with my new parameter... |
Two dice are tossed independently until each pair has appeared at least once. Find the expected number of tosses needed and the standard deviation of this number of tosses.
My attempt
Let X be the random variable that counts the number of tosses needed until each pair appears at least once. Let $X_1$ be a random varia... |
I was watching a video on Gaussian distributions and it defined the degenerate univariate Gaussian as a Gaussian where the variance is zero. However, I am really struggling to understand how the Gaussian can be defined for this.
The Gaussian is supposed to be non-zero on the whole line. So, in the degenerate case that ... |
Does P(B|A)!=P(B|!A) prove dependence?
!= means 'is not equal to'
!A means 'not A' or 'the complement of A'
Thanks.
Edit: I believe I may have proved that inequality shows dependence.
Proof:
1) Assume independence.
P(AB)=P(A)P(B)
P(B)=P(AB)/P(A)
P(B)=P(B|A)
2) Repeat wit... |
I have to prove that the average within-cluster distance for 10 data points cannot increase when going from 1 cluster to 2 clusters (divisive clustering).
Intuitively, it seems obvious that this is true because each time you allocate a point to the second group, it will have a smaller distance from the centre of that g... |
Suppose we make interviews on a large number of households in which we ask, among other things, the sex and age of the individuals living in the household, and also who among these individuals is the head of the household (HOH) according to appropriate demographic definitions.
Doing this, we would end with the age of t... |
Ok this is a simple quesion that's been bugging me. The question is how to encode a linear model variable with only two possible values and avoid any trouble introduced by using zero.
Say you have a linear model:
outcomeVariable ~ DayOrNight
How should you properly encode DayOrNight? There are only two choices and the... |
This seems like it should be pretty simple but I'm not seeing it. Suppose I have two r.v.s X and Y with means of zero and variances of one, such that cov(X,Y)=0. What is cov(X,XY)?
|
I am a newcomer to survival analysis, although I have some knowledge in classification and regression.
For regression, we have MSE and R square statistics. But how we can say that survival model A is superior to survival model B besides some kind of graphical plots (K-M curve)?
If possible, please explain the differen... |
I've been trying to teach myself machine learning using some books, kaggle and other resources so I'm still very new at this. I'm trying to do a competition on kaggle and I've obtained a dataset.
I'm a little confused about what exactly needs to be done with this data set next though. My assumption is that if I choos... |
As a consequence of the central limit theorem the sampling distribution of the sample means will always be normal whatever is the distribution of the variable we measure.
From our sample we can calculate the standard deviation of the sampling distribution (i.e. standard error) and we can therefore calculate a 95% confi... |
I designed a Gaussian (Gaussian distributed visible layer) - Bernoulli (binary distributed) RBM model (for reference, see: Improved Learning of Gaussian-Bernoulli Restricted Boltzmann Machines, pdf) and trained it using MNIST handwritten digits. Now would like to understand the learned model through its weight values. ... |
This is a simple question but I has bugged me for some time. Can someone please share a link, or describe, how I can perform a linear regression from repeated measures of replicate samples over a range. The picture represents the average of each of these replicates.
I would prefer to use Matlab if you have any ideas th... |
It seems odd to scale a categorical variable, but I need to get the correct coefficients for each of my variables in linear regression. Is it correct to scale the same way you would with continuous variables, or what is the right thing to do here?
For example if x is categorical and y is continuous:
model=lm(DV ~ scal... |
In one of his lectures Geoff Hinton explains that a big problem of sigmoid belief nets is the explaining away phenomenon. I didn't fully understand this. I see that the induced width of the graph representing Variable Elimination might increase due to the fill-in edges being introduced at the V structures. But is there... |
I recently started transitioning from JMP to R and to get started, I've been trying to reproduce some of my old JMP results in R. However, when I run a multiple regression with one continuous variable (income) and one categorical variable (condition) predicting a continuous variable (psc), the results from the 2 progra... |
http://en.wikipedia.org/wiki/Delta_method
In the Wikipedia article, it was assumed that $g'(\theta)$ must exist and that $g'(\theta)$ is non-zero valued.
Is it possible to find the asymptotic distribution for $\sqrt{n}(g(X_n)-g(\theta))$
given that $g'(\theta)$ might be zero and $\sqrt{n}(X_n-\theta) \stackrel{d}{\r... |
I have interval censored data for incubation period and I suppose that the exact time Ti included in each interval of the data [L;U] follows a lognormal distribution (mu,sigma2). I would like to use a bayesian approach MCMC model to estimate first mu and sigma2 and then the different Ti for the different patients. How ... |
I saw a similar question was asked a few years ago, maybe there are updates on that.
I would like to have a way to explain the decisions generated by random forest, possibly in a single tree. I tried to evaluate each tree and select the best performing one, but using this method I get (as expected) a lot of variation.... |
I have one variable (x), I am simply trying to understand the relationship between (x,y).
I run two regression models, first model is predicted by removing the intercept and the second including the intercept. What I find when I simply graph the Beta Coefficient: movement in Model 1 appears to be on a larger scale (-0.... |
How some standard package (eg R, SAS or Excel) calculate Standard error for the estimated parameters for a model.
my understanding :
While using gradient descent optimization method( as performed in Machine learning tutorial from Andrew Ng) we get a point estimate (right?) But suppose I have to find the confidence i... |
How to define confusion matrix of the database and the classification rules are found below. And calculation precision and recall.
@attribute temperature real
@attribute humidity real
@attribute windy {TRUE, FALSE}
@attribute play {yes, no}
No. outlook temperature humidity windy play
1 sunny 85.0 85... |
After some detective work in my data sources, I realized the reasons for my previously reported 98% of missing data ratio. After implementing some data collection code fixes, the current missing data ratio is around 35%. A multiple imputation (MI) procedure, implemented by using Amelia R package, has decreased the miss... |
This is from a typical introduction to kernel density estimation.
Suppose we want to estimate the probability density function $p(x)$ given a set of samples $x_1,x_2 \ldots x_N$. The simplest method that does this is from the histogram of the samples.
Divide the sample space into a number of bins and approximate the
... |
I wonder if one can tell anything about predictive power of a model if model selection and estimation was done using all available data. That is, there was no data left for "out of sample" prediction trials. (In other words, data was not split into a "training sample" to select and estimate the model and a "test/holdou... |
Let's take this research published on Plos ONE
Increasing carbohydrate intake was associated with increasing stroke
risk (HR = 2.01, 95%CI = 1.04–3.86 highest vs. lowest quintile; p for
trend 0.025).
Multivariable Cox modeling estimated adjusted hazard ratios (HRs) of
stroke with 95% confidence intervals (95%CI)... |
SVMs can generate a confidence score which is basically like a probability for a particular data item to belong to the particular class. I want to use this probability as a proxy for the 'distance' of the data-item from the cluster. The distance will be further used for estimating the class cohesiveness using the silho... |
I have a general question about the value of using RMSE to see if a forecasting model is poor. I used the forecast package in R to find forecasting models for different datasets and used RMSE for test data to see how far the predictions are from their actual values. Some data sets have values of around 500 for daily nu... |
I'm trying to find a year of publication of the importance sampling technique. Does anyone has a reference on this?
I'm tempted to say 1970 (Hastings paper), but I would like to know if anyone knew this before.
|
say I sample 1000 people, 750 of them have a distribution similar to the result produced for all 1000, but 250 produce a distribution which fits entirely into the bottom quartile of the total 1000.
Does this invalidate the overall result for the 1000 people ? Is there any statistical method say hypothesis testing to sa... |
I was advised by my team leader to use this weighted average entropy to evaluating the performance of my dbscan clustering algorithm, and its mathematical formulation is:
Scikit provides what many would consider standard metrics for clustering performance evaluation such as Adjusted Mutual Information, Homogeneity, co... |
Assume I have a $m\times n$ Transition Matrix $A$ with $m$ different observations and $n$ represents a discrete state space. Each column counts the frequency that state $j\in [1...n]$ was visited from state $i\in [1,...,m]$.
In reality the "states" are no integer numbers, but a discretized real valued variable. I need ... |
The guidance on this site concerning when to use the Welch t-test is somewhat general in nature (When conducting a t-test why would one prefer to assume (or test for) equal variances rather than always use a Welch approximation of the df? ). Are there specific, widely accepted rules of thumb such as related to: (1) Si... |
Suppose now I have a group of students, and for each student two measurements are given: one is the height of the student and the other is the weight of the student. Then my question is how I can select a student that have both decent height (the higher, the better) and decent weight (the heavier, the better)? One solu... |
Say, I fit a linear or generalised linear model in R with dummy coding (contr.treatment for R users) with a specified reference group:
library(lme4)
out1 <- glmer(cbind(incidence, size - incidence)
~ C(period, contr.treatment(4, base=1))
+ (1 | herd),
... |
Explain why a correlation between two variables does not necessarily imply that one variable causes the other to vary as it does. Give an example.
|
I am dealing with some data from a household travel survey, and I have a question about how to best use the survey weights that are provided. The structure is that households are sampled, and all individuals in the household are asked to complete a travel diary for 1 day. Each individual records all trips during that... |
I know it sounds abysmally ignorant, but here we go.
I understand the basic logic behind the t-test: you want to know whether the difference in the mean of two samples is due to chance or not. To this end, you need to take variability into account. But variability at which level?
Suppose I want to run a dependent t-tes... |
In my actual data class A has 90%, class B has 9% and class C has 1% (numbers are made up for sake of simplicity). Now I want to prepare a training set for my classifier (I plan to use Vowpal Wabbit). How should I distribute entries according to classes? Should I maintain the same ratio as in real data or I should dist... |
In university we calculated a random intercept model for two-level nested data. We compared the random intercept model with all level-1 variable with the random intercept model with all level-1 and all level-2 variables. Like this we got main effects for level-1 and also main effects for level-2 variables. But we did n... |
I was recently trying out caffe and learning about CNN. So far I have seen that the model used by Krizhevsky performs really well in natural images. However I wanted to know how these models or CNN based models would behave in domains such as biological images or medical images.
|
I have to create a survey that will measure customers' attitude to home products. Imagine:
I have concept A (it could be consumer ethnocentrism, for example). I am going to measure it using 10 items (Likert scale).
I have concept B (it could be some behavioral intentions of the consumer). I am going to measure it usin... |
$Y=\ln(X)$. $X$ is lognormal and $Y$ is normal. If all I know is the arithmetic mean of $Y$ and the standard deviation of $X$. What is the formula to calculate the arithmetic mean of $X$ and the standard deviation of $Y$?
|
I am working on visualizing clusters in high dimensional space. I have had good luck with "real" data sets contributed to the UCI Machine Learning repository. Unfortunately, none of these data sets have really well separated clusters. I've used "artificial", machine generated, data sets which have well separated cluste... |
I’m trying to compute the variance of how much pumpkins weigh across pumpkins from 125 farms. However, I only have, for each farm, three pieces of data: (1) the variance of weights for pumpkins from that farm (2) how many pumpkins the farm has (3) the total weight of the pumpkins from the farm.
How can I compute a “wei... |
I have a univariate model in which I am looking to predict the number of articles per week in a newspaper about a protest (count data) by how many arrests of protesters occurred per week. I have 148 weeks in total. My hunch is that I want to lag the independent (or dependent?) variable. Basically I would predict that t... |
I would please like to know when I should conduct pre-processing procedures (removing near-zero variance, highly correlated predictor variables, and linear dependencies) when planning to create dummy variables from factor variables. I am using R and the caret package.
What are the pros and cons?
|
I was looking into affinity propagation for my similarity matrix problem and thought it would fit well. However, browsing literature I found this comment that basically breaks both legs of affinity propagation.
Is AP considered a good approach or rather a failure?
|
I have a set of data with a dependent variable which represents a proportion, and many of the samples contain a response of 1. I would like to build a random forest or GBM regression model on the data, with my main concern being the out of sample performance of E[y|x]. Are there any pitfalls to simply minimizing a sq... |
I have demographic and income data for 3 million people from the American Community Survey (courtesy of IPUMS), and my goal is calculate the median income for every permutation of age group, gender, education level, and marital status.
As one can imagine, even with this large sample -- 1% of the population -- there ar... |
"Large $p$, small $n$" typically refers to "many independent variables, few samples".
In my case, I have $1$ independent variable, $300$ dependent variables, and $n < 20$ samples.
Thus, my case is not the typical "large $p$, small $n$" scenario (even though I do have many regression coefficients to estimate -- it's jus... |
I have a collection of continuous data from the literature, including the mean, the standard deviation and the number of observations for both experimental and control groups, as well some environmental variables. A meta-analysis coupled with a meta-regression could be done. However, some studies had several experiment... |
I have a multivariate multiple regression model with 3 dependent variables and the same 5 covariates. I used manova and mvreg in Stata, and I get 3 $R^2$s with my output, one for each Y variable. I would like to compare if the differences between these $R^2$s are statistically significant or not. That is, I want to kno... |
I'm using a support vector regression model. I know the target variable has some outliers and modeling the data directly leads to bad results (Rsquare close to 0.2). I'm pretty sure the outliers are affecting the way the SVR trains and impacts the cross validation score.
I have tried taking a log transformation of the ... |
I'm testing a Range function from big integer software libraries. The function will return an integer in the range [0,k), where k is the upper limit on the range. I'm seeing unexpected results, and I hope the CV folks can help point out my mistake.
Here's the pseudo code:
bins[65536];
for i = 0 to 1000000
{
v = Ran... |
I'm reading Bishop's Pattern Recognition and Machine Learning. In chapter 1.6: Information Theory (page 53) when trying to derive the maximum differential entropy pdf from the definition of continuous entropy, the author states:
"Let us now consider the maximum entropy configuration for a continuous variable. In order... |
I need to work out the following:
$$
E[(\frac {Y(x+h)-Y(x)}h)^2]
$$
I've already worked out the below and am supposed to use it to work out the above.
$$E[(Y(x+h)-Y(x))^2]$$
I'm not able to find any information about expected value rules that covers this. I think that if it was of the form $E(\frac Xa)$ I could just re... |
Setting: Multi-class classification problem with discrete nominal features.
There are many references mentioning the use of IG(Information Gain) and MI (Mutual Information) as measure of feature relevancy for filter-based feature selection. However, from the information-theoretic viewpoint it's not completely clear to ... |
Snoek et al, have a recent paper "Input Warping for Bayesian Optimization of Non-Stationary Functions" (http://arxiv.org/abs/1402.0929) which mentions "stationary functions".
I understand what a stationary kernel or process is, but I can't find a definition of a stationary function. I kind of suspect there is no suc... |
I've been trying to better understand how JMP does regression and associated models. I can compute the correct parameter estimates for a GLM, by using iteratively re weighted least squares. But now I'm stuck and having trouble matching the confidence intervals in the prediction profiler shown by JMP.
When reading thro... |
I have performed a survey where I have a number of questions which can be answered Strongly Agree, Agree etc. to Strongly Disagree. Some of the questions have been designed to measure the same thing.
I have summed these variables to get a 'score' for this underlying trait, and I wish to predict this score in a regress... |
Suppose there are $N$ samples of observations $\mathbf X(n)$ ($n=1,\cdots,N$), which are given by probability distribution $p(\mathbf X(n)|\mathbf Z(n))$ with their conditions are given by hidden random variables $\mathbf Z(n)$. Also suppose the hidden variables $\mathbf Z(n)$ are i.i.d and generated from distribution ... |
Using this model why can't correlation be superior to 1 and goes down if points are not aligned ?
|
Referring to this question: How should be statistics on scientific papers read?, a kind user explained us how to read the following statement from the original research paper:.
Increasing carbohydrate intake was associated with increasing stroke
risk (HR = 2.01, 95%CI = 1.04–3.86 highest vs. lowest quintile; p for
... |
Please note: the variables named in this example do not correspond with actual variable type values, but are simplified for clarity purposes.
I have 13 groups, each containing values X of, say, the weights of individuals of a country. So each of the groups contains data of a different country. Now, for each country we ... |
Background
I have the following contingency table
+------+-----------+-----------+
| | X | Not X |
+------+-----------+-----------+-------+
| Y | 60 | 20 | 80 |
+------+-----------+-----------+-------+
| notY | 15 | 40 | 55 |
+------+-----------+-----------+-------+... |
I've encountered a question to de-correlate many data points sitting along two parallel lines in a 2D space, say $x=1$ and $x=-1$. And no labels are given to those data points, so supervised methods cannot be applied here. Apparently, PCA may not work here without manually carefully analyzing the data, because projecti... |
I'm reading a comment to a paper, and the author states that sometimes, even though the estimators (found by ML or maximum quasilikelihood) may not be consistent, the power of a likelihood ratio or quasi-likelihood ratio test can still converge to 1 as the number of data observed tends to infinity (test consistency). H... |
I have been studying neural networks and I recently found out about deep learning and convolutional neural networks. Can someone give me a newbie introduction to convolutional neural networks, what is the intuition behind them, little bit about the theory (+ possible good references for details and pseudo-code). I do ... |
I am dealing with the following problem:
Assume $G(V,E)$ being an underlying network and $M_1$, $M_2$ sets of disjoint subsets of $V$ (e.g. if $|M_1| = k$, $M_1 = \{U_1,U_2,\dots,U_k\}$, $\forall_{i\not=j} \, U_i \cap U_j = \emptyset$).
Given a range of such $M$, I run pairwise comparisons, testing each $U_i \in M_1$ a... |
I'm sure this is a very simple one, but I'm struggling to find an explanation online for something so simple.
I have a survey with 38 respondents. Each one has answered a multiple choice question with 3 possible answers, one of which is correct. I would like to know whether the success rate of my respondents can be exp... |
This post discusses why we need to transform $Y$ before estimating the predictors exponents in order to reduce the problem to a linear fit. The example builds on $Y$ log-normal. In the case of a GLM, we can run a BoxCox likelihood estimate on the predictors against $log(Y)$, then use a logit function in the GLM.
How ca... |
I would like to correlate two psychometric non-continuous variables, for example learning style (9 values) and results from a behavioral assessment (4 values).
What statistical test would be best to look at correlations between these two variables?
Are there similar studies for review?
|
I am doing feature selection on a cancer data- set which is multidimensional (27803 * 84).
I want to try with k-means clustering algorithm in Matlab but how do I decide how many clusters do I want? Is it equal to the number of classes I have? (in my case- it is 2- cancer or no cancer). Please suggest. Thank you.
|
An unfair coin which has 0.35 probability to result head is tossed four times.
Build and represent graphically the probability distribution and the cumulative distribution of the function with random variable "X = number of time result is head".
This is what I did:
X | P | Cumulative... |
1) Can someone explain me the idea of this sentence:
"It is noted that nonparametric tests were employed because of the non-continuous nature of the scale scores" (this is related to scale validity that is tested after survey)
2) What kind of tests could be used?
|
I'm doing research as part of a project being implemented by a NGO that does randomized controlled trials of international development projects, and I spend a lot of time here in Kenya. The management staff is in charge of managing big teams of enumerators, who collect data on behalf of people like me (though usually ... |
In Cox's PHM,
$$ \lambda(t;\mathbb{x}) = \lambda_0(t) \exp(\beta^T \mathbb{x})~, $$
it is well known that the effect of a time - independent covariate on the survivor function is to raise it to a power given by the relative risk.
I'd like to know what the effect on the survivor function would be if we consider inste... |
I have a sample with approximately 45 million elements, with 4,410 as the mean and 1,657 as the standard deviation.
I am not confident whether or not the mean well represents the sample due to the dispersion presented in the standard deviation. Thus, I found another descriptive statistic, named coefficient of variation... |
I have very basic knowledge of statistics and would appreciate some help identifying an appropriate method to calculate the proportion of outcomes that agree between pairs of data and whether it is significant.
The dataset consists of 100+ cases that have been reviewed 6 reviewers, but not all reviewers will review all... |
I knew that tbtas could not consider regressor in r but I knew that Dr Hydman group were working to include this feature. I just wanted to know if it is still under work.
Thanks
|
This is my first question (previously the search function has been enough), so please bear with me. I have a very simple experimental design with one outcome variable and 5 groups. My typical strategy in this case would be to run a simple ANOVA and then use something like a Tukey's test to calculate significance betw... |
I have a pure math background and am now studying statistics. For additional study in my linear regression and time series class, my professor suggested a more applied text rather than a higher level text that focused on analyzing real life data sets from business, econ, and the other soft sciences.
I am beginning to ... |
I am currently doing GLIMMIX models in SAS. I choosed GLIMMIX as my data is count data, generally well described by a Poisson distribution.
My question: What assumptions can you test to ensure that your model is appropriate with GLIMMIX ?
From SAS, I learn the assumptions of GLIMMIX (http://support.sas.com/documentatio... |
Background: Note: My data set and R code are included below text
I wish to use AIC to compare two mixed effects models generated using the lme4 package in R. Each model has one fixed effect and one random effect. The fixed effect differs between models, but the random effect remains the same between models. I've fo... |
I used tbats to fit a model to a set of 3 years of historic data for daily number of shipments moved by a trucking company. my data included double seasonality so I used tbats. However, tbats did not consider holidays and the point forecast for holidays of the test data were very off from the actual data. This makes to... |
I am having trouble understanding how one-class SVMs work. They were introduced in a paper by Scholkopf and others (and can be found here).
One-class SVMs perform "novelty detection", where a point is classified as either normal or abnormal, but you can only train your model on normal points.
In the paper linked above,... |
I believe Dichotomizing(also called bucketing/binning) of continuous variable is not always a good idea. My colleague while building regression model always bins continuous variables and only keep dichotomous variable in the final model.
My counter arguments to him
Lose lot of valuable information and reduce predictiv... |
It seems common to apply standard linear regression to variables with long-tail distributions, like GDP, by first taking the log. What is the justification for doing that? Is it effectively assuming a lognormal distribution?
Also, if I have taken the log of an independent variable in a regression, how does that change ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.