Docsity

Statistical Analysis of Two-Sample t-Tests: Questions and Solutions - Prof. Peter Balint, Study notes of Introduction to Public Administration

Toggle sidebar
bg1
PUAD 611/GOVT 711, Fall 08
Here are three sample questions on two-sample t-tests from previous exams. The
questions are given without solutions on the first page. The questions include links to the
required datasets and readings. I give suggested solutions on the pages that follow.
QUESTIONS WITHOUT SOLUTIONS
General instructions: Each question on this part requires you to conduct a statistical test.
In answering each question, please follow these steps: (1) identify the unit of analysis, the
null hypothesis, the dependent variable, and the independent variable; (2) present
separate descriptive statistics in both tabular and graphical form for each variable that
you include in the test; (3) conduct the appropriate test; (4) identify and interpret means
and p-values; (5) tell whether you reject or fail to reject H0, and (6) briefly summarize
your findings in plain language.
1. For this question, use the “mortfirm.sav” dataset. For all people included in the
dataset, do men on average earn significantly more than women? If so, how does the
gap compare to the general average difference reported in the first clause of the first
sentence of the Associated Press article? Also do your results demonstrate that this
firm discriminates against women in determining salaries?
2. For this question, use the “murder.sav” dataset. Is there a relationship between a
state’s murder rate and whether state law allows the death penalty?
3. For this question, use the “renal.sav” dataset. Does the number of preoperative risk
factors for cardiac surgery patients differ by gender?
1
pf3
pf4
pf5

Partial preview of the text

Download Statistical Analysis of Two-Sample t-Tests: Questions and Solutions - Prof. Peter Balint and more Study notes Introduction to Public Administration in PDF only on Docsity!

PUAD 611/GOVT 711, Fall 08

Here are three sample questions on two-sample t-tests from previous exams. The questions are given without solutions on the first page. The questions include links to the required datasets and readings. I give suggested solutions on the pages that follow.

QUESTIONS WITHOUT SOLUTIONS

General instructions: Each question on this part requires you to conduct a statistical test. In answering each question, please follow these steps: (1) identify the unit of analysis, the null hypothesis, the dependent variable, and the independent variable; (2) present separate descriptive statistics in both tabular and graphical form for each variable that you include in the test; (3) conduct the appropriate test; (4) identify and interpret means and p-values; (5) tell whether you reject or fail to reject H 0 , and (6) briefly summarize your findings in plain language.

  1. For this question, use the “mortfirm.sav” dataset. For all people included in the dataset, do men on average earn significantly more than women? If so, how does the gap compare to the general average difference reported in the first clause of the first sentence of the Associated Press article? Also do your results demonstrate that this firm discriminates against women in determining salaries?
  2. For this question, use the “murder.sav” dataset. Is there a relationship between a state’s murder rate and whether state law allows the death penalty?
  3. For this question, use the “renal.sav” dataset. Does the number of preoperative risk factors for cardiac surgery patients differ by gender?

QUESTIONS WITH SUGGESTED SOLUTIONS

  1. For this question, use the “mortfirm.sav” dataset. For all people included in the dataset, do men on average earn significantly more than women? If so, how does the gap compare to the general average difference reported in the first clause of the first sentence of the Associated Press article? Also do your results demonstrate that this firm discriminates against women in determining salaries? Unit of analysis: employees H 0 : No difference in average salaries between men and women Dependent variable: salary Independent variable: gender Descriptive statistics are presented in tabular and graphical form below: mean, standard deviation, minimum, and maximum, with a histogram for salary (a continuous variable) and percentages and a bar chart for gender (a categorical variable).

Descriptive Statistics

474 28250 145000 45506.07 16511. 474

Current salary Valid N (listwise)

N Minimum Maximum Mean Std. Deviation

20000 40000 60000 80000 100000 120000 140000 Current salary

140

120

100

80

60

40

20

0

Frequency

Std. Dev. =16511.006^ Mean =45506.07 N =

Gender

236 49.8 49.8 49. 238 50.2 50.2 100. 474 100.0 100.

Female Male Total

Valid

Frequency Percent Valid Percent

Cumulative Percent

Dependent variable: Murder rate. Independent variable: Death penalty allowed (yes/no). Descriptive statistics: Percentages and bar chart for the categorical variable; mean, standard deviation, minimum, maximum, and histogram for the continuous variable.

Death penalty permitted under the law

13 26.0 26.0 26. 37 74.0 74.0 100. 50 100.0 100.

No Yes Total

Valid

Frequency Percent Valid Percent

Cumulative Percent

Death penalty permitted under the law

No Yes

Percent

80

60

40

20

0

74%

26%

US States

About three-quarters of US states permit the death penalty. Statistics Murders per 100,000 people 2006 50 0

Valid Missing

N Mean Std. Deviation Minimum Maximum

Murders per 100,000 people 2006

0.0 2.0 4.0 6.0 8.0 10.0 12.

Frequency

10

8

6

4

2

0

Murder rate by state

Std. Dev. =2.577^ Mean =4.77 N =

The average murder rate is about 5 murders per year per 100,000 people (there is one outlier on high side—Louisiana).

The appropriate test is an independent samples t-test. Group Statistics

13 3.123 1.7451. 37 5.349 2.5879.

Death penalty permitted under the law No Yes

Murders per 100, people 2006

N Mean Std. Deviation Std. Error Mean

Independent Samples Test

2.292 .137 -2.870 48 .006 -2.2256 .7754 -3.7846 -. -3.454 31.450 .002 -2.2256 .6444 -3.5391 -.

Equal variances assumed Equal variances not assumed

Murders per 100, people 2006

F Sig.

Equality of Variances^ Levene's Test for

t df Sig. (2-tailed) Mean Difference Std. Error Difference Lower Upper

95% Confidence Interval of theDifference

t-test for Equality of Means

The average murder rate for states with the death penalty is 5.3 murders per 100,000 people; for states with no death penalty, the rate is 3.1. Reading the top row (because the p-value on the F-test > 0.05, we find that the difference is statistically significant: p=0.006 (<0.05). Reject H 0. But in a surprising result, states with the death penalty actually have higher murder rates. Note that this does not imply that the death penalty leads to higher murder rates. The test does not account for many possible confounding variables.

  1. For this question, use the “renal.sav” dataset. Does the number of preoperative risk factors for cardiac surgery patients differ by gender? Unit of analysis: Cardiac surgery patients. H 0 : No difference in average number of preoperative risk factors for males and females. Dependent variable: Preoperative risk factors. Independent variable: Gender (“gender”). Descriptive statistics: Gender is a categorical variable, so a bar chart is appropriate. Preoperative risk factors is a continuous variable, so a histogram is appropriate.

gender male female

Percent

60

40

20

0

68%

32%

gender