Please put your answers in excel sheet. One sample t Test We are now going to use Excel to test a hypothesis based on one given sample.   We would like to know if the average cholesterol level of patients in intensive care is equal to 200 and for that reason we collect cholesterol level of 20 random people from various intensive care units. Cholesterol level 154,168,134,201,208,220,225,228,201,207,168,211,203,254,268,198,298,135,154,189   We put our data in column A.  In Cells A3-A22 we type our data and in cell A1 we type  Cholesterol. First let’s 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.  Second, we find degrees of freedom df=N-1.  In cell B25 we type df and in cell A25 we type =A24-1.  Next we evaluate the mean.  We learned that already.   In cell B26 we type Mean and in cell A26 we type =average(A3:A22). Now let’s do standard deviation.  In cell B27 we type SD and in cell A27 we type =stdev(A3:A22). Next let’s do standard error of the mean.  In cell B28 we type SEM and in cell A28 we type =A27/sqrt(A24). We will 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. Now we 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.

MATLAB: An Introduction with Applications
6th Edition
ISBN:9781119256830
Author:Amos Gilat
Publisher:Amos Gilat
Chapter1: Starting With Matlab
Section: Chapter Questions
Problem 1P
icon
Related questions
Question

Please put your answers in excel sheet.

One sample t Test

We are now going to use Excel to test a hypothesis based on one given sample.   We would like to know if the average cholesterol level of patients in intensive care is equal to 200 and for that reason we collect cholesterol level of 20 random people from various intensive care units.

Cholesterol level

154,168,134,201,208,220,225,228,201,207,168,211,203,254,268,198,298,135,154,189

 

We put our data in column A.  In Cells A3-A22 we type our data and in cell A1 we type  Cholesterol.

First let’s 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.  Second, we find degrees of freedom df=N-1.  In cell B25 we type df and in cell A25 we type =A24-1.  Next we evaluate the mean.  We learned that already.   In cell B26 we type Mean and in cell A26 we type =average(A3:A22).

Now let’s do standard deviation.  In cell B27 we type SD and in cell A27 we type =stdev(A3:A22).

Next let’s do standard error of the mean.  In cell B28 we type SEM and in cell A28 we type =A27/sqrt(A24).

We will 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.

Now we 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.

 

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 6 steps with 5 images

Blurred answer
Recommended textbooks for you
MATLAB: An Introduction with Applications
MATLAB: An Introduction with Applications
Statistics
ISBN:
9781119256830
Author:
Amos Gilat
Publisher:
John Wiley & Sons Inc
Probability and Statistics for Engineering and th…
Probability and Statistics for Engineering and th…
Statistics
ISBN:
9781305251809
Author:
Jay L. Devore
Publisher:
Cengage Learning
Statistics for The Behavioral Sciences (MindTap C…
Statistics for The Behavioral Sciences (MindTap C…
Statistics
ISBN:
9781305504912
Author:
Frederick J Gravetter, Larry B. Wallnau
Publisher:
Cengage Learning
Elementary Statistics: Picturing the World (7th E…
Elementary Statistics: Picturing the World (7th E…
Statistics
ISBN:
9780134683416
Author:
Ron Larson, Betsy Farber
Publisher:
PEARSON
The Basic Practice of Statistics
The Basic Practice of Statistics
Statistics
ISBN:
9781319042578
Author:
David S. Moore, William I. Notz, Michael A. Fligner
Publisher:
W. H. Freeman
Introduction to the Practice of Statistics
Introduction to the Practice of Statistics
Statistics
ISBN:
9781319013387
Author:
David S. Moore, George P. McCabe, Bruce A. Craig
Publisher:
W. H. Freeman