I'm wondering how random variables can be analyzed using parametric methods if the distribution is not normal.
For example if a variable Y is normal distributed but I'm interested only on values Y2 which are lower than a certain limit due to agreement.
Can I use the common statistical tools to compute estimation, standard deviation, standard errors and P-values if the sample is large?
To clarify my question I created the following theoretical population:
# 100,000 values with mean 300 and sd = 50
set.seed(1234)
n <- 100000
y <- rnorm(n,300,50)
# Only y < 300 are of interest
y2 <- y[y<300]
length(y2) # [1] 49,828
par(mfrow=c(2,1))
hist(y, breaks=seq(0,max(y)+10,10))
hist(y2, breaks=seq(0,max(y)+10,10))
# mean and sd of y
mean(y) # 300.1465
median(y) # 300.2244
sd(y) # 49.97292
# mean and sd of the interested values (y2)
mean(y2) # 260.1354
median(y2) # 266.3348
sd(y2) # 30.04559
Now, I make an experiment. I take a sample of $s=100$:
# Experiment:
y.exp <- sample(y,s)
# Only y<300 are of interest (for example due to a game rule)
y.int <- y.exp[y.exp<300]
mean(y.int) # 259.3562
sd(y.int) # 32.56482
length(y.int) # 38
I'm interest in the following hypothesis:
$H_0: \mu_0 = 250$
$H_{alt}: \mu_0 \ne 250$
Assuming that the sample is large enough I do a t-test:
# t-test:
mu0 <- 250
t.test(y.int,mu=mu0) # t = 1.7711, df = 37, p-value = 0.08478
Here are my questions:
- If a sample size is large enough can I use the common statistical tools like t-test, linear regression, etc. (maybe supported by the law of large numbers)?
- Are there alternative methods which consider special distributions (like this truncated normal distribution). I know there are non-parametric methods or truncated regression. I'm interested in parametric methods. Truncated regression answer another question: what is it the mean value of the normal distribution if the data a truncated. I'm interested in the mean value of the truncated data.
- Does standard deviation makes sense if the underlying distribution is not normal?