P Value Formula 2 Sample T Test. P value 2 2 cdf t d t score however the cdf of the t distribution is given by a somewhat complicated formula. In both cases p value is greater than the alpha value i e 0 05.
The formula for the test statistic is. In case statistics of two samples are to be compared then a two sample t test is to be used and its formula is expressed using respective sample means sample standard deviations and sample sizes. Sample standard deviation of the second sample.
Because the p value is less than 0 0001 which is less than the significance level of 0 05 the decision is to reject the null hypothesis and conclude that the ratings of the hospitals are different.
Sample size of the first sample. For example how do we get 0 5098 from 2 x p t 0 6595. S p n 1 1 s 1 2 n 2 1 s 2 2 n 1 n 2 2 where s 1 2 and s 2 2 are the sample variances. In both cases p value is greater than the alpha value i e 0 05.