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...
-
The following accounts have normal balances. Prepare a trial balance for Betty's Cleaning Service as of September 30, 20--. Cash Accounts Receivable Supplies Prepaid Insurance Delivery Equipment...
-
Using the LIFO method, calculate the cost of ending inventory and cost of goods sold for Cowell Corporation. A1 Quantity Unit Cost Total 2 Beginning inventory 3 Purchases 4 Goods available for sale 5...
-
Beth Plum is a realtor. She organized her business as a corporation, Beth Plum, Realtor, P.C., by investing \($23,000\) cash. The business issued common stock to her. Consider the following facts at...
-
The following transactions apply to Pecan Co. for 2018, its first year of operations: 1. Received $100,000 cash in exchange for issuance of common stock. 2. Secured a $300,000 five-year installment...
-
4. Rewrite the integral c1c2-2y c2-x-2y in the order dx dy dz. 10 dz dx dy
-
1. What are the trade-offs in financing a company by owner versus nonowner financing? 2. If nonowner financing is less costly, why dont we see companies financed entirely with borrowed money?
-
In traditional structured analysis and design, what system models are developed, and in what order?
-
What is the network architecture used in e-commerce? Please explain how each layer is related.
-
What is the difference between a thin client and a fat client?
-
What are some of the inherent limitations and disadvantages of a file server system?
-
Have each group member select a different functional group. Individually, draw and name a compound containing your functional group. Pass your drawing to the group member on your right and your...
-
Merck & Company reported the following from its 2019 financial statements. $ millions 2016 2017 2018 2019 Accounts receivable, net $7,018 $6,873 $7,071 $6,778 Allowance for doubtful accounts 195 159...
-
A sample statistic will not change from sample to sample. Determine whether the statement is true or false. If it is false, rewrite it as a true statement.
-
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
-
Nineteen immigrants to the U.S were asked how many years, to the nearest year, they have lived in the U.S. The data are as follows: 2; 5; 7; 2; 2; 10; 20; 15; 0; 7; 0; 20; 5; 12; 15; 12; 4; 5; 10. a....
-
Forbes magazine published data on the best small firms in 2012. These were firms which had been publicly traded for at least a year, have a stock price of at least \($5\) per share, and have reported...
-
How much time does it take to travel to work? Table 1.16 shows the mean commute time by state for workers at least 16 years old who are not working at home. Find the mean travel time, and round off...
Study smarter with the SolutionInn App