Question: Test 4 variables in the data set using the chi-square Goodness of Fit test. Assume an equal chance of all categories for each variable. Compute
- Test 4 variables in the data set using the chi-square Goodness of Fit test. Assume an equal chance of all categories for each variable.
- Compute and report effect size.
- Report all results (significant and non-significant) in paragraph style.
Proportion Test (N Outcomes) #1
| Proportions - Cancer_Diagnosis | ||||
|---|---|---|---|---|
| Level | Count | Proportion | ||
| No | Observed | 77 | 0.706 | |
| Expected | 54.5 | 0.500 | ||
| Yes | Observed | 32 | 0.294 | |
| Expected | 54.5 | 0.500 | ||
| Goodness of Fit | ||
|---|---|---|
| df | p | |
| 18.6 | 1 | <.001 |
Proportion Test (N Outcomes) #2
| Proportions - Weight | |||
|---|---|---|---|
| Level | Count | Proportion | |
| Underweight | Observed | 15 | 0.138 |
| Expected | 27.3 | 0.250 | |
| Normal Weight | Observed | 31 | 0.284 |
| Expected | 27.3 | 0.250 | |
| Overweight | Observed | 17 | 0.156 |
| Expected | 27.3 | 0.250 | |
| Obese | Observed | 46 | 0.422 |
| Expected | 27.3 | 0.250 | |
| Goodness of Fit | ||
|---|---|---|
| df | p | |
| 22.8 | 3 | <.001 |
Proportion Test (N Outcomes) #3
| Proportions - Relationship | |||
|---|---|---|---|
| Level | Count | Proportion | |
| Single | Observed | 29 | 0.266 |
| Expected | 36.3 | 0.333 | |
| Married | Observed | 60 | 0.550 |
| Expected | 36.3 | 0.333 | |
| Divorced | Observed | 20 | 0.183 |
| Expected | 36.3 | 0.333 | |
| Goodness of Fit | ||
|---|---|---|
| df | p | |
| 24.2 | 2 | <.001 |
Proportion Test (N Outcomes) #4
| Proportions - Smoker | ||||
|---|---|---|---|---|
| Level | Count | Proportion | ||
| No | Observed | 47 | 0.431 | |
| Expected | 54.5 | 0.500 | ||
| Yes | Observed | 62 | 0.569 | |
| Expected | 54.5 | 0.500 | ||
| Goodness of Fit | ||
|---|---|---|
| df | p | |
| 2.06 | 1 | 0.151 |
- Using a test of independent/association:
- Test if smoking status is independent of sex at birth.
- Test if diabetes diagnosis is independent of sex at birth.
- Test if cancer diagnosis is independent of relationship type.
- Test if sex at birth is independent of relationship type.
- Calculate the effect size for each test.
Contingency Tables #1 Test if smoking status is independent of sex at birth.
| Contingency Tables | ||||
|---|---|---|---|---|
| Sex | ||||
| Smoker | Female | Male | Total | |
| No | Observed | 10 | 37 | 47 |
| Expected | 22.4 | 24.6 | 47.0 | |
| % within row | 21.3% | 78.7% | 100.0% | |
| % within column | 19.2% | 64.9% | 43.1% | |
| % of total | 9.2% | 33.9% | 43.1% | |
| Yes | Observed | 42 | 20 | 62 |
| Expected | 29.6 | 32.4 | 62.0 | |
| % within row | 67.7% | 32.3% | 100.0% | |
| % within column | 80.8% | 35.1% | 56.9% | |
| % of total | 38.5% | 18.3% | 56.9% | |
| Total | Observed | 52 | 57 | 109 |
| Expected | 52.0 | 57.0 | 109.0 | |
| % within row | 47.7% | 52.3% | 100.0% | |
| % within column | 100.0% | 100.0% | 100.0% | |
| % of total | 47.7% | 52.3% | 100.0% | |
| Tests | |||||
|---|---|---|---|---|---|
| Value | df | p | |||
| 23.1 | 1 | <.001 | |||
| N | 109 | ||||
| Nominal | |
|---|---|
| Value | |
| Phi-coefficient | 0.461 |
| Cramer's V | 0.461 |
Contingency Tables #2Test if diabetes diagnosis is independent of sex at birth.
| Contingency Tables | ||||
|---|---|---|---|---|
| Sex | ||||
| Diabetic | Female | Male | Total | |
| No | Observed | 28 | 17 | 45 |
| Expected | 21.5 | 23.5 | 45.0 | |
| % within row | 62.2% | 37.8% | 100.0% | |
| % within column | 53.8% | 29.8% | 41.3% | |
| % of total | 25.7% | 15.6% | 41.3% | |
| Yes | Observed | 24 | 40 | 64 |
| Expected | 30.5 | 33.5 | 64.0 | |
| % within row | 37.5% | 62.5% | 100.0% | |
| % within column | 46.2% | 70.2% | 58.7% | |
| % of total | 22.0% | 36.7% | 58.7% | |
| Total | Observed | 52 | 57 | 109 |
| Expected | 52.0 | 57.0 | 109.0 | |
| % within row | 47.7% | 52.3% | 100.0% | |
| % within column | 100.0% | 100.0% | 100.0% | |
| % of total | 47.7% | 52.3% | 100.0% | |
| Tests | |||||
|---|---|---|---|---|---|
| Value | df | p | |||
| 6.47 | 1 | 0.011 | |||
| N | 109 | ||||
| Nominal | |
|---|---|
| Value | |
| Phi-coefficient | 0.244 |
| Cramer's V | 0.244 |
Contingency Tables #3 Test if cancer diagnosis is independent of relationship type.
| Contingency Tables | |||||
|---|---|---|---|---|---|
| Relationship | |||||
| Cancer_Diagnosis | Single | Married | Divorced | Total | |
| No | Observed | 22 | 50 | 5 | 77 |
| Expected | 20.49 | 42.4 | 14.13 | 77.0 | |
| % within row | 28.6% | 64.9% | 6.5% | 100.0% | |
| % within column | 75.9% | 83.3% | 25.0% | 70.6% | |
| % of total | 20.2% | 45.9% | 4.6% | 70.6% | |
| Yes | Observed | 7 | 10 | 15 | 32 |
| Expected | 8.51 | 17.6 | 5.87 | 32.0 | |
| % within row | 21.9% | 31.3% | 46.9% | 100.0% | |
| % within column | 24.1% | 16.7% | 75.0% | 29.4% | |
| % of total | 6.4% | 9.2% | 13.8% | 29.4% | |
| Total | Observed | 29 | 60 | 20 | 109 |
| Expected | 29.00 | 60.0 | 20.00 | 109.0 | |
| % within row | 26.6% | 55.0% | 18.3% | 100.0% | |
| % within column | 100.0% | 100.0% | 100.0% | 100.0% | |
| % of total | 26.6% | 55.0% | 18.3% | 100.0% | |
| Tests | |||||
|---|---|---|---|---|---|
| Value | df | p | |||
| 25.1 | 2 | <.001 | |||
| N | 109 | ||||
| Nominal | |
|---|---|
| Value | |
| Phi-coefficient | NaN |
| Cramer's V | 0.480 |
Contingency Tables #4 Test if sex at birth is independent of relationship type.
| Contingency Tables | |||||
|---|---|---|---|---|---|
| Relationship | |||||
| Sex | Single | Married | Divorced | Total | |
| Female | Observed | 10 | 29 | 13 | 52 |
| Expected | 13.8 | 28.6 | 9.54 | 52.0 | |
| % within row | 19.2% | 55.8% | 25.0% | 100.0% | |
| % within column | 34.5% | 48.3% | 65.0% | 47.7% | |
| % of total | 9.2% | 26.6% | 11.9% | 47.7% | |
| Male | Observed | 19 | 31 | 7 | 57 |
| Expected | 15.2 | 31.4 | 10.46 | 57.0 | |
| % within row | 33.3% | 54.4% | 12.3% | 100.0% | |
| % within column | 65.5% | 51.7% | 35.0% | 52.3% | |
| % of total | 17.4% | 28.4% | 6.4% | 52.3% | |
| Total | Observed | 29 | 60 | 20 | 109 |
| Expected | 29.0 | 60.0 | 20.00 | 109.0 | |
| % within row | 26.6% | 55.0% | 18.3% | 100.0% | |
| % within column | 100.0% | 100.0% | 100.0% | 100.0% | |
| % of total | 26.6% | 55.0% | 18.3% | 100.0% | |
| Tests | |||||
|---|---|---|---|---|---|
| Value | df | p | |||
| 4.44 | 2 | 0.109 | |||
| N | 109 | ||||
| Nominal | |
|---|---|
| Value | |
| Phi-coefficient | NaN |
| Cramer's V | 0.202 |
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
