State the null and alternative hypothesis.
Find the degrees of freedom for the
Find the critical value of chi-square from Appendix E or from Excel’s
Calculate the chi-square test statistics at 0.05 level of significance.
Interpret the p-value.
Check whether the conclusion is sensitive to the level of significance chosen, identify the cells that contribute to the chi-square test statistic and check for the small expected frequencies.
Perform a two-tailed, two-sample z test for
Answer to Problem 30CE
The null hypothesis is:
And the alternative hypothesis is:
The degrees of freedom for the contingency table is 1.
The critical-value using EXCEL is 3.841.
The chi-square test statistics at 0.05 level of significance is 1.50.
The p-value for the hypothesis test is 0.221.
There is enough evidence to conclude that the correct response and type of cola are independent.
The conclusion is not sensitive to the level of significance chosen.
The cells (1, 1) and (1, 2) contribute the most to the chi-square test statistic.
There is no expected frequencies that are too small.
It is verified that
Explanation of Solution
The table summarizes the grade and order of papers handed in.
The claim is to test whether the data provide sufficient evidence to conclude that the grade and order handed in are independent. If the claim is rejected, then the grade and order handed in are not independent.
The test hypotheses are given below:
Null hypothesis:
Alternative hypothesis:
The degrees of freedom can be obtained as follows:
Substitute 2 for r and 2 for c.
Thus, the degrees of freedom for the contingency table is 1.
Procedure for critical-value using EXCEL:
Step-by-step software procedure to obtain critical-value using EXCEL software is as follows:
- Open an EXCEL file.
- In cell A1, enter the formula “=CHISQ.INV.RT(0.05,1)”
- Output using EXCEL software is given below:
Thus, the critical-value using EXCEL is 3.841.
Test statistic:
Software procedure:
Step by step procedure to obtain the chi-square test statistics and p-value using the MINITAB software:
- Choose Stat > Tables >Cross Tabulation and Chi-Square.
- Choose Row data (categorical variables).
- In Rows, choose Grade.
- In Columns, choose Order handed in.
- In Frequencies, choose Count.
- In Display, select Counts.
- In chi-square, select Chi-square test, Expected cell counts and Each cell’s contribution to chi-square.
- Click OK.
Output using the MINITAB software is given below:
Thus, the test statistic is 1.50 and the p-value for the hypothesis test is 0.221.
Rejection rule:
If the p-value is less than or equal to the significance level, then reject the null hypothesis
Conclusion:
Here, the p-value is greater than the level of significance.
That is,
Therefore, the null hypothesis is not rejected.
Thus, the data provide sufficient evidence to conclude that the correct response and type of cola are independent.
Take
Here, the p-value is greater than the level of significance.
That is,
Therefore, the null hypothesis is not rejected.
Thus, the data provide sufficient evidence to conclude that the correct response and type of cola are independent.
Thus, the conclusion is same for both the significance levels.
Hence, the conclusion is not sensitive to the level of significance chosen.
The cells (1, 1) and (1, 2) contribute the most to the chi-square test statistic.
Since all
Two-tailed, two-sample z test:
The test hypotheses are given below:
Null hypothesis:
Alternative hypothesis:
The proportion of “yes” responses to the regular cola is denoted as
Where
The proportion of number of “yes” responses to the diet cola is denoted as
Where
The pooled proportion is denoted as
Test statistic:
The z-test statistics can be obtained as follows:
Thus, the z-test statistic is –1.22.
The square of the z-test statistic is,
Thus the square of the z-test statistic is same as the chi-square statistics.
Procedure for p-value using EXCEL:
Step-by-step software procedure to obtain p-value using EXCEL software is as follows:
- Open an EXCEL file.
- In cell A1, enter the formula “=2*(1-NORM.S.DIST(–1.22,1))”
- Output using EXCEL software is given below:
Thus, the p-value using EXCEL is 1.778, which is not same as the p-value obtained in chi-square test. But the square of the z-test statistic is same as the chi-square statistics.
Thus, it is verified that
Want to see more full solutions like this?
Chapter 15 Solutions
Applied Statistics in Business and Economics
- i need help with question 2arrow_forward4 (Value-at-Risk and Expected Shortfall) Suppose X Find VaR0.02(X) and ES0.02 (X). ~ Uniform(-1, 1).arrow_forward亚 ח Variables Name avgdr employ educ exerany Label AVG ALCOHOLIC DRINKS PER DAY IN PAST 30 EMPLOYMENT STATUS EDUCATION LEVEL EXERCISE IN PAST 30 DAYSarrow_forward
- Variables Name wage hours IQ KWW educ exper tenure age married black south urban sibs brthord meduc feduc Label monthly earnings average weekly hours IQ score knowledge of world work score years of education years of work experience years with current employer age in years =1 if married =1 if black =1 if live in south =1 if live in SMSA number of siblings birth order mother's education father's educationarrow_forwardInformation for questions 4 • • Please Download "wages" from Canvas (the link to this dataset is right below the HWA1 questions - it is a Microsoft excel worksheet) and store it in your favorite folder. It contains 797 observations and 16 variables. The "state" variable gives the names of the states involved in this dataset. • You need to have excel on your computer to open this dataset. i. You should use File > Import > Excel Spreadsheet etc. as done in class 3 convert this file into a Stata dataset. Once you are done, write the final STATA code that makes the transformation of an excel file to a STATA file possible. ii. Write a code that will close the log file that has been open since Question 1 part ii.arrow_forwardThe mean, variance, skewness and kurtosis of a dataset are given as - Mean = 15, Variance = 20, SKewness = 1.5 and Kurtosis = 3.5 calculate the first four raw moments. (Note- Please include as much detailed solution/steps in the solution to understand, Thank you!)arrow_forward
- Write codes to perform the functions in each of these cases i. ii. Apply cd command to tell STATA the filepath associated with your "favorite folder" (use the same name for the favorite folder that we have been using in class) Apply log using command to tell stata that you are creating a log file to record the codes and the outcomes of these codes. Make sure your log file is called loghwa1_W25.smcl. Do not forget to include the replace option. iii. Get help for the "regress" command & include a screenshot of the outcome of this code iv. V. Open a stata file stored in STATA memory called pop2000.dta Continue from question iv. Save this file in your favorite folder (current working directory) using a different name & a replace optionarrow_forwardAre there any unusually high or low pH levels in this sample of wells?arrow_forward0 n AM RIES s of of 10 m Frequency 40 Frequency 20 20 30 10 You make two histograms from two different data sets (see the following figures), each one containing 200 observations. Which of the histograms has a smaller spread: the first or the second? 40 30 20 10 0 20 40 60 0 20 20 40 60 60 80 80 100 80 100arrow_forward
- TIP the aren't, the data are not sym 11 Suppose that the average salary at a certain company is $100,000, and the median salary is $40,000. a. What do these figures tell you about the shape of the histogram of salaries at this company? b. Which measure of center is more appro- priate here? c. Suppose that the company goes through a salary negotiation. How can people on each side use these summary statistics to their advantage? 6360 be 52 PART 1 Getting Off to a Statistically Significant Sarrow_forward12 Suppose that you know that a data set is skewed left, and you know that the two measures of center are 19 and 38. Which figure is the mean and which is the median?arrow_forwardy of 45 home- televisions u find that 010020 le own one, ee, and 1 owns y histogram of 4 Suppose that you have a loaded die. You roll it several times and record the outcomes, which are shown in the following figure. Histogram for Loaded Die 444% 34.00 48% 6% 2% Frequency 20 20 15 155 10 5- ம 0 1 2 3 4 Outcome 5 6 a. Make a relative frequency histogram of these results. b. You can make a relative frequency histo- gram from a frequency histogram; can you go the other direction?arrow_forward
- Big Ideas Math A Bridge To Success Algebra 1: Stu...AlgebraISBN:9781680331141Author:HOUGHTON MIFFLIN HARCOURTPublisher:Houghton Mifflin HarcourtGlencoe Algebra 1, Student Edition, 9780079039897...AlgebraISBN:9780079039897Author:CarterPublisher:McGraw HillHolt Mcdougal Larson Pre-algebra: Student Edition...AlgebraISBN:9780547587776Author:HOLT MCDOUGALPublisher:HOLT MCDOUGAL