The table below gives the frequency with which a sample of women drink tea and coffee...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
The table below gives the frequency with which a sample of women drink tea and coffee (Arab, Lenore et al. "Gender differences in tea, coffee, and cognitive decline in the elderly: the Cardiovascular Health Study." Journal of Alzheimer's disease: JAD vol. 27,3 (2011): 553-66. doi:10.3233/JAD-2011-110431). Do women drink tea and coffee with the same frequency at the alpha = 0.01 significance level? Freq Tea Coffee <5/year 580 1019 5-10/year 289 169 1-3/month 503 178 1-4/week 618 208 >5/week 742 1148 Enter the data into an array. Calculate the chi-square statistic and p-value Write an if statement to determine if the null hypothesis that women drink tea and coffee with the same frequency is rejected or not.. Enter the data into an array. Calculate the chi-square statistic and p-value Write an if statement to determine if the null hypothesis that women drink tea and coffee with the same frequency is rejected or not. Ex: If the data for men is used, Freq Tea Coffee <5/year 551 637 5-10/year 244 139 1-3/month 387 152 1-4/week 452 225 > 5/ week 443 915 the output is: 3.776187E+02 1.903049E-80 The hypothesis that tea and coffee are drunk with the same frequency is rejected. LAB 7.6.1: LAB: Chi-square test ACTIVITY main.py 0/1 Load default template... 1 # Import the necessary modules 2 3 # Construct a contingency table 4 5 # Calculate the test statistic and p-value 6 chi2, p, df, ex = # Code for calculating test statistic and p-value 7 print (f' {chi2:.6E}') 8 print (f' (p:.6E}') 9 10 # Determine if null hypothesis is rejected or not 11 if # write appropriate if statement 12 print("The hypothesis that tea and coffee are drunk with the same frequency is rejected.") 13 else: 14 print("The hypothesis that tea and coffee are drunk with the same frequency is not rejected.")] The table below gives the frequency with which a sample of women drink tea and coffee (Arab, Lenore et al. "Gender differences in tea, coffee, and cognitive decline in the elderly: the Cardiovascular Health Study." Journal of Alzheimer's disease: JAD vol. 27,3 (2011): 553-66. doi:10.3233/JAD-2011-110431). Do women drink tea and coffee with the same frequency at the alpha = 0.01 significance level? Freq Tea Coffee <5/year 580 1019 5-10/year 289 169 1-3/month 503 178 1-4/week 618 208 >5/week 742 1148 Enter the data into an array. Calculate the chi-square statistic and p-value Write an if statement to determine if the null hypothesis that women drink tea and coffee with the same frequency is rejected or not.. Enter the data into an array. Calculate the chi-square statistic and p-value Write an if statement to determine if the null hypothesis that women drink tea and coffee with the same frequency is rejected or not. Ex: If the data for men is used, Freq Tea Coffee <5/year 551 637 5-10/year 244 139 1-3/month 387 152 1-4/week 452 225 > 5/ week 443 915 the output is: 3.776187E+02 1.903049E-80 The hypothesis that tea and coffee are drunk with the same frequency is rejected. LAB 7.6.1: LAB: Chi-square test ACTIVITY main.py 0/1 Load default template... 1 # Import the necessary modules 2 3 # Construct a contingency table 4 5 # Calculate the test statistic and p-value 6 chi2, p, df, ex = # Code for calculating test statistic and p-value 7 print (f' {chi2:.6E}') 8 print (f' (p:.6E}') 9 10 # Determine if null hypothesis is rejected or not 11 if # write appropriate if statement 12 print("The hypothesis that tea and coffee are drunk with the same frequency is rejected.") 13 else: 14 print("The hypothesis that tea and coffee are drunk with the same frequency is not rejected.")]
Expert Answer:
Related Book For
Essentials Of Business Statistics
ISBN: 9780078020537
5th Edition
Authors: Bruce Bowerman, Richard Connell, Emily Murphree, Burdeane Or
Posted Date:
Students also viewed these operating system questions
-
PLEASE GIVE CORRECT ANSWERS Prove that the number of comparators in any sorting network is (n log n). [4 marks] (ii) What does Part (d)(i) imply in terms of the depth of any sorting network? [1 mark]...
-
Regal Department Store sells gift certificates redeemable for store merchandise that expire one year after their issuance. Regal has the following information pertaining to its gift certificates...
-
Assuming that all entries have been posted, prepare correcting entries for each of the following errors. 1. The following entry was made to record the purchase of $700 in supplies on account: 2. The...
-
An automobile accident occurs as follows: The driver of a full-size car (vehicle A, 4000 lb) is traveling on a dry, level road and approaches a stationary compact car (vehicle B, 2000 lb). Just 50...
-
At 3:00 a.m. on November 22, 2010, 16-year-old Sydney McLemore was driving a Mazda3 with her friend, Natalie Hurst, in the front passenger seat. The vehicle was traveling south on Ross Bridge Highway...
-
CVP computations Garrett Manufacturing sold 410,000 units of its product for $68 per unit in 2011. Variable cost per unit is $60 and total fixed costs are $1,640,000. 1. Calculate (a) contribution...
-
Blossom Corp. obtained a tradename in January 2024, incurring legal costs of $72,720. The company amortizes the tradename over 8 years using the straight-line method. Blossom successfully defended...
-
Dunlop Inc. is a sports shoe manufacturer. Having spent $120,000 on mark research, the firm finds a new line of sports shoes promising and considers makingnew investments in it. For further...
-
Which of the following would cause a change in the feasible region? a. Increasing an objective function coefficient in a maximization problem b. Adding a redundant constraint c. Changing the...
-
How are items like raw materials stored in inventories? a. by themselves b. in work-in-process c. in the finished product d. all of the above
-
Linear programming problems are solved the fastest by the isoprofit line method. How does it work? a. It determines constraints. b. It defines variable. c. It finds an optimal solution. d. None of...
-
Assigning staff to a fast-food restaurant is an example of a. the shortest-route model. b. the assignment model. c. the maximal-flow model. d. the transportation model.
-
Discuss the legal and economic importance of the FTC and the US DoJ.
-
Mickey Lawson is considering investing some money that he inherited. The following payoff table gives the profits that would be realized during the next year for each of three investment alternatives...
-
What is the mode?
-
Suppose we test H0: p = .3 versus Ha: .3 and that a random sample of n = 100 gives a sample proportion p-bar = .20. a. Test H0 versus Ha at the .01 level of significance by using critical values....
-
Referring to Exercise 8.11a, assume that the population standard deviation equals 33. How large a random sample of public owner-controlled companies is needed to make us? In exercise Suppose that a...
-
Explain each of the following terms: a. Undercoverage b. Nonresponse c. Response bias
-
Explain why the business objectives of owners and managers are likely to diverge. How might owners attempt to ensure that managers act in their interests and not in the managers own interests?
-
1. In what ways did the defence industries respond to the ending of the Cold War? 2. Using an Internet search, find out how the defence and security industries have responded to the threat of...
-
What is the Standard Industrial Classification (SIC)? In what ways might such a classification system be useful? Can you think of any limitations or problems such a system might have over time?
Study smarter with the SolutionInn App