In: Statistics and Probability
1) What is the test statistic?
2) What is the p value for your test?
1) Test statistic:-
A test statistic is a statistic and also a random variable which is calculated from sample data. We used test statistic to determine whether a null hypothesis is rejected or not. The test statistic is also used to calculate the p-value of the test.
Example:-
Test | Statistic |
One sample Z-test | |
One sample T-test | |
One proportion Z-test | |
Chi-square test |
2) P-value:-
For a hypothesis testing problem, the p-value is the probability of obtaining test results at least as extreme as the results actually observed during the test, and we assume that the null hypothesis is correct.
i) p-value of a right tailed test:-
where, x = observed value of X.
ii) p-value of a left tailed test:-
where, x = observed value of X.
iii) p-value for a both tailed test:-
And we reject the null hypothesis at level if we get,