Question

In: Statistics and Probability

Use the following data to create the contingency tables. AGE Male           16        17        17       

Use the following data to create the contingency tables.

AGE

Male

          16        17        17        19        19        19        18        17        18        17                                16        19            19        19        17        16        17        16        19        19                                24        31        23        44            21        42        23        43        43        33                                30        41        35        40        24        43            22        30        25        32

            43        51        55        80        61        58        65        52        67        75                                90        63            71        74

Female

             17        16        17        19        19        18        17        19        16        18                                19        17            19        17        18        19        19        16        33        23                                46        46        23        21            46        47        48        47        48        30                                35        24        48        49        47        25            84        54        77        63                                51        72        90        57        69        81

1. In the first table, use gender (male and female) as your row variable and age (<20, 20-50, and >50) for

     your column variable. Run a Chi-square test of independence and find the test statistic, p-value, and

     degrees of freedom.

2. In the second table, use gender (male and female) as your row variable and age (<18, 18-25, 26-45,    

     and >45) for your column variable. Run a Chi-square test of independence and find the test statistic,  

     p-value, and degrees of freedom.

3. Compare the results and comment on problems that may occur when categorizing continuous   

     variables

Solutions

Expert Solution

1)

The Chi-Square test of independence is used to determine if there is a significant relationship between two factors.

For variables Gender and Age

The Chi-Square test of independence is performed in following steps,

Step 1: The hypothesis is defined as,

Null hypothesis, Ho:There is no association between two variables.

Alternative hypothesis, Ha There is an association present between the two variables.

Step 2: The significance level for the test is,

Step 3: The Chi-Square test statistic is obtained as follow,

The observed values are,

<20 20-50 >50 Total
Male 20 21 13 54
Female 18 18 10 46
Total 38 39 23 100

Step 4: The expected values are obtained using the formula,

The expected values are,

<20 20-50 >50 Total
Male 20.52 21.06 12.42 54
Female 17.48 17.94 10.58 46
Total 38 39 23 100

Step 5: Now the Chi-Square Value is obtained using the formula,

Observed, Expected,
20 20.52 -0.5200 0.2704 0.0132
21 21.06 -0.0600 0.0036 0.0002
13 12.42 0.5800 0.3364 0.0271
18 17.48 0.5200 0.2704 0.0155
18 17.94 0.0600 0.0036 0.0002
10 10.58 -0.5800 0.3364 0.0318
Sum 0.0879

The P-value is obtained from chi square distribution table for degree of freedom = (r-1)(c-1)=(2-1)(3-1)=2

Since the P-value is greater than 0.05 at 5% significance level, the null hypothesis is not rejected.

2)

The Chi-Square test statistic is obtained as follow,

The observed values are,

<18 18-25 26-45 >45 Total
Male 10 17 14 13 54
Female 8 15 3 20 46
Total 18 32 17 33 100

the expected values are obtained using the formula,

The expected values are,

<18 18-25 26-45 >45 Total
Male 9.6364 17.1313 9.1010 17.6667 53
Female 8.3636 14.8687 7.8990 15.3333 46
Total 18 32 17 33 100

Now the Chi-Square Value is obtained using the formula,

Observed, Expected,
10 9.72 0.2800 0.0784 0.0081
17 17.28 -0.2800 0.0784 0.0045
14 9.18 4.8200 23.2324 2.5308
13 17.82 -4.8200 23.2324 1.3037
8 8.28 -0.2800 0.0784 0.0095
15 14.72 0.2800 0.0784 0.0053
3 7.82 -4.8200 23.2324 2.9709
20 15.18 4.8200 23.2324 1.5305
Sum 8.3632

The P-value is obtained from chi square distribution table for degree of freedom = (r-1)(c-1)=(2-1)(4-1)=3

Since the P-value is less than 0.05 at 5% significance level, the null hypothesis is rejected.

3)

The null hypothesis is not rejected in first part while null hypothesis is rejected in second part of the problem. The main cause of this happen was due to change in the age categorization.

The main problem with the categorization is to choosing the number of cut points in for the continuous variable.

.


Related Solutions

Use the following data to create the contingency tables. AGE Male           16        17        17       
Use the following data to create the contingency tables. AGE Male           16        17        17        19        19        19        18        17        18        17                                16        19            19        19        17        16        17        16        19        19                                24        31        23        44            21        42        23        43        43        33                                30        41        35        40        24        43            22        30        25        32             43        51        55        80        61        58        65        52        67        75                                90        63            71        74 Female              17        16        17        19        19        18        17        19        16        18                                19       ...
1. Collect annual data to create data tables and graphs of the following: a. growth rates...
1. Collect annual data to create data tables and graphs of the following: a. growth rates of NGDP and RGDP for the years 2008-2018 b. CPI-All Urban Consumers (Current Series) and the inflation rate for the years 2008-2018 c. unemployment rate for the years 2008-2018 d. M1 and M2 for the years 2008-2018
You are given the following information. Please use it for the following 31-Dec-16 31-Dec-16 31-dec-17 31-Dec-17...
You are given the following information. Please use it for the following 31-Dec-16 31-Dec-16 31-dec-17 31-Dec-17 stock Price Shares Price Shares w 50$ 10000 25$ 20000 x 40$ 5000 25$ 10000 y 20$ 20000 30$ 20000 z 30$ 15000 40$ 15000 Stocks W and X had 2 for 1 splits on December 31, 2016. The information in the table for 2016 is pre-split. 3.4 Calculate the price weighted series for Dec 31, 2016, prior to the splits. 3.5 Calculate the...
A paper reported that in a representative sample of 291 American teens age 16 to 17,...
A paper reported that in a representative sample of 291 American teens age 16 to 17, there were 79 who indicated that they had sent a text message while driving. For purposes of this exercise, assume that this sample is a random sample of 16- to 17-year-old Americans. Do these data provide convincing evidence that more than a quarter of Americans age 16 to 17 have sent a text message while driving? Test the appropriate hypotheses using a significance level...
Pivot Tables - Please explain how to acheive the following: Using the data below, create a...
Pivot Tables - Please explain how to acheive the following: Using the data below, create a Pivot Table that answers the question “Which salesperson sold the most in any particular month.” A manager wants to click on the Pivot Table and choose a month and have the name of that person appear with his or her amount for that month. Sales Data Salesperson May June July Aug. Sept. Oct. Albertson, Kathy $3,947.00 $557.00 $3,863.00 $1,117.00 $8,237.00 $8,690.00 Allenson, Carol $4,411.00...
Please create a contingency diagram for the following situation: There is a pigeon in an operant...
Please create a contingency diagram for the following situation: There is a pigeon in an operant chamber. He finds a shiny metal thing and pecks it. When the pigeon pecks it, a food pellet comes out of the wall of the chamber which the pigeon eats. The pigeon continues pecking the shiny metal thing more and more.
The following contingency table represents the relationship between the age of a young adult and the...
The following contingency table represents the relationship between the age of a young adult and the type of movie preference                                18-23 yr 24-29 yr 30-35 yr                                                                            Science Fiction 14 9 8 Comedy 7 10 12 At the 0.05 level of significance, test the claim that the adult age and movie preference are independent (no relationship). H0:              H1: Test Statistic: Critical Region/Critical Value: Decision about H0:
Use the data below to compute 2014 FCF (Free Cash Flow): 2014 2013 Cash 16 17...
Use the data below to compute 2014 FCF (Free Cash Flow): 2014 2013 Cash 16 17 Short-term investments 5 67 Accounts receivable 365 319 Inventories 555 415 Property, plant & equipment (net) 925 874 Accounts payable 47 30 Short-term debt 95 64 Accrued liabilities 148 130 Long-term debt 658 582 Common stock 130 130 Retained earnings 770 711 Net revenue 3147 2850 Depreciation expense 110 94 Interest 92 63 Taxes 82 81 Net income 256 123 (Round to the nearest...
Use the following information to answer questions 16 and 17: You sell short 100 shares of...
Use the following information to answer questions 16 and 17: You sell short 100 shares of Doggie Treats Inc. that are currently selling at $40 per share. You post the 50% margin required on the short sale. Your broker requires a 30% maintenance margin. 16) If the price falls to $30 short position in stocks and equity amounts are _______and_______, respectively. a. $3,000, $4,000 b. $2,000, $4,000 c. $3,000, $3,000 d. $4,000, $2,000 17) You will get a margin call...
For questions 16 & 17, please use the following information: Samuel Industries had EBIT of $100,000...
For questions 16 & 17, please use the following information: Samuel Industries had EBIT of $100,000 in 2015. The firm has $200,000 in outstanding bonds with an interest rate of 5%. The tax rate is 35%. The firm has 10,000 shares outstanding and paid $5,000 in dividends in ’15. 16. Calculate Samuel Industries’ EPS (Earnings per Share) for 2015. 17. Calculate Samuel Industries’ DPS (Dividends per Share) for 2015.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT