One sample t Test
Use Excel to test a hypothesis based on one given sample.
Cholesterol level
154,168,134,201,208,220,225,228,201,207,168,211,203,254,268,198,298,135,154,189
Put our data in column A. In Cells A3-A22 we type our data and in cell A1 we type Cholesterol.
Input the sample size n, that is how many elements in data do we have. In cell B24 we type N and in cell A24 we type 20.
Find degrees of freedom df=N-1. In cell B25 we type df and in cell A25 we type =A24-1.
Evaluate the mean. We learned that already. In cell B26 we type Mean and in cell A26 we type =average(A3:A22).
Do standard deviation. In cell B27 we type SD and in cell A27 we type =stdev(A3:A22).
Do standard error of the mean. In cell B28 we type SEM and in cell A28 we type =A27/sqrt(A24).
Do a one sample t test and for that we need a t value. . In cell B29 we type t and in cell A29 we type =(A26-200)/A28.
Evaluate the p value using Excel. In cell B31 we type TEST value and in cell A31 we type 200 In cell B32 we type Mean Difference. In cell A32 we type =A26-A31 . In cell B33 we type Sig.(2-tailed). In cell A33 type =T.DIST.2T(A29,A25). Here T.DIST.2T means we are doing 2 tailed one sample TTEST.
The first parameter A29 means we are computing the p value based on our calculated t value and we are comparing it to our threshold significance level of 0.05. The second variable represents degrees of freedom.
Exercises
Exercise 1.
State the null hypothesis from this example in cell A35.
Exercise 2.
What does the value in cell A33 tell you about the hypothesis. Do we reject the null hypothesis? Why? Put your explanation in cell A36.
Exercise 3.
Instead of using Excel, we can look at the t chart. Find the critical value for the t distribution from that table. You may find it on page 335. Put that value in cell A37.
Exercise 4.
Compare the t value in cell A29 to the table t value in cell A37. What is this comparison telling you about rejecting or not rejecting the null hypothesis. Put your explanation in cell A38.
Last Completed Projects
topic title | academic level | Writer | delivered |
---|