A survey was conducted to determine whether hours of sleep per night are independent of age. A sample of individuals was asked to indicate the number of hours of sleep per night with categorical options: fewer than 6 hours, 6 to 6.9 hours. 7 to 7.9 hours, and 8 hours or more. Later in the survey, the individuals were asked to indicate their age with categorical options: age 39 or younger and age 40 or older. Sample data follow. Age Group Hours of Sleep 39 or younger 40 or older Fewer than 6 37 35 6 to 6.9 60 57 7 to 7.9 78 76 8 or more 65 92 (a) Conduct a test of independence to determine whether hours of sleep are independent of age. (b) What is your estimate of the percentages of individuals who sleep fewer than 6 hours, 6 to 6.9 hours, 7 to 7.9 hours, and 8 hours or more per night?
A survey was conducted to determine whether hours of sleep per night are independent of age. A sample of individuals was asked to indicate the number of hours of sleep per night with categorical options: fewer than 6 hours, 6 to 6.9 hours. 7 to 7.9 hours, and 8 hours or more. Later in the survey, the individuals were asked to indicate their age with categorical options: age 39 or younger and age 40 or older. Sample data follow. Age Group Hours of Sleep 39 or younger 40 or older Fewer than 6 37 35 6 to 6.9 60 57 7 to 7.9 78 76 8 or more 65 92 (a) Conduct a test of independence to determine whether hours of sleep are independent of age. (b) What is your estimate of the percentages of individuals who sleep fewer than 6 hours, 6 to 6.9 hours, 7 to 7.9 hours, and 8 hours or more per night?
MATLAB: An Introduction with Applications
6th Edition
ISBN:9781119256830
Author:Amos Gilat
Publisher:Amos Gilat
Chapter1: Starting With Matlab
Section: Chapter Questions
Problem 1P
Related questions
Question
Expert Solution
Step 1 Part a
The computation is done as follow:
Hours of sleep | Age group | Observed frequencies (Oij) | Expected frequencies (Eij) | Eij-Oij | ||
Fewer than 6 | 39 or younger | 37 | 34.56 | 2.44 | 5.9536 | 0.172269 |
6 to 6.9 | 39 or younger | 60 | 56.16 | 3.84 | 14.7456 | 0.262564 |
7 to 7.9 | 39 or younger | 78 | 73.92 | 4.08 | 16.6464 | 0.225195 |
8 or more | 39 or younger | 65 | 75.36 | -10.36 | 107.3296 | 1.424225 |
Fewer than 6 | 40 or older | 35 | 37.44 | -2.44 | 5.9536 | 0.159017 |
6 to 6.9 | 40 or older | 57 | 60.84 | -3.84 | 14.7456 | 0.242367 |
7 to 7.9 | 40 or older | 76 | 80.08 | -4.08 | 16.6464 | 0.207872 |
8 or more | 40 or older | 92 | 81.64 | 10.36 | 107.3296 | 1.314669 |
Trending now
This is a popular solution!
Step by step
Solved in 3 steps
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, statistics and related others by exploring similar questions and additional content below.Recommended textbooks for you
MATLAB: An Introduction with Applications
Statistics
ISBN:
9781119256830
Author:
Amos Gilat
Publisher:
John Wiley & Sons Inc
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
ISBN:
9781305504912
Author:
Frederick J Gravetter, Larry B. Wallnau
Publisher:
Cengage Learning
MATLAB: An Introduction with Applications
Statistics
ISBN:
9781119256830
Author:
Amos Gilat
Publisher:
John Wiley & Sons Inc
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
ISBN:
9781305504912
Author:
Frederick J Gravetter, Larry B. Wallnau
Publisher:
Cengage Learning
Elementary Statistics: Picturing the World (7th E…
Statistics
ISBN:
9780134683416
Author:
Ron Larson, Betsy Farber
Publisher:
PEARSON
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
Statistics
ISBN:
9781319013387
Author:
David S. Moore, George P. McCabe, Bruce A. Craig
Publisher:
W. H. Freeman