Let’s say that I have one sample (of size n) of random variables. I want to perform one-sample t-test for following hypothesis:
According to the Central Limit Theorem, I know that my sample mean Xbar comes from an *approximately* normal distribution with the mean mu (population mean) and STD = SE (standard error). I don’t know the population standard deviation, so I use a t-distribution instead and SE = s/sqrt(n), where s is the st.dev of a sample.
Then, I calculate a t statistic as (Xbar - munull hypothesis) / SE, which corresponds to the t score on that t-distribution. And my p-value would be the probability of obtaining the results >= t score given the null value mu (0 for my example).
I have seen people doing different stuff:
So the question is, do I really need to check the distribution of a sample. And if so, why would I do that?
(included an image just to illustrate my words)