SlideShare une entreprise Scribd logo
1  sur  45
1. T-test: Difference in means
to test the statistical significance in the difference in
means
ex. income by gender, the num. of years at work by gender
2. T-test: Difference in proportions
to test the statistical significance in the difference in
proportions
ex. the proportion employed in government jobs by gender
3. Contingency Table/Chi-Square Analysis
to test whether all categories contain the same proportion
of values or not by comparing expected and actual values.
ex. the proportion employed in government jobs by gender
Hypothesis Testing
1. A Research Question
2. The Null Hypothesis
usually assumes NO difference 2 tailed-test
3. Select Cases
4. T-test or Contingency/Chi-Square Analysis
5. Interpret Test Results
t-score, significance level, confidence interval,
likelihood ratio (for Chi-Square Analysis)
6. “Reject” or “Not reject” the null hypothesis
Hypothesis Testing Procedure
• Research Question: Are there differences in income
between male and female graduates and if so, what factors
might explain this difference?
1. Is there a difference in average income between male
and female graduates?
2. Is there a significant difference in average length of
time on the job, between male and female graduates?
3. Is there a difference in the proportion employed in
government jobs between males and females?
Hypothesis Testing
Research Question:
Is there a difference in average income
between male and female graduates?
H0: There is NO difference in average income
between male and female graduates
Note: Limit the data to full-time employees or self-
employed with income more than $20,000 and
less than $400,000.
1. T-test: Difference in Means
Step 1: Data/Select Cases
• Select Data/Select Cases
Data/Select Cases
• In a Select Cases dialogue
box, you specify logical
expressions to select
cases.
– Select the “If condition is
satisfied” option
– Click on the If… button
Data/Select Cases
Specifying fullself and income range
Type logical expression:
fullself = 1 & income > 20000 & income < 400000
to limit cases to alumni who work full-time or are self-employed and make
more than $20,000 and less than $400,000.
Data/Select Cases
Data/Select Cases
Step 2: Independent T-Test
Analyze/Compare Means/Independent-Samples T-Test
Step 2: Independent T-Test
income
gender(? ?)
Step 2: Independent T-Test
Group 1: 1 for Female
Group 2: 2 for male
Note: The grouping variable can only have two categories.
Step 2: Independent T-Test
gender(1 2)
T-test: Results
Using the Unequal Variance model, we REJECT H0 and
conclude that there is a significant difference in average income
between male and female graduates.
Group Statistics
128 79868.22 35165.875 3108.254
137 98606.49 47980.995 4099.293
Gender
Female
Male
Income
N Mean Std. Deviation
Std. Error
Mean
Independent Samples Test
10.443 .001 -3.605 263 .000 -18738.270 5197.537 -28972.4 -8504.190
-3.642 249.145 .000 -18738.270 5144.458 -28870.4 -8606.100
Equal variances
assumed
Equal variances
not assumed
Income
F Sig.
Levene's Test for
Equality of Variances
t df Sig. (2-tailed)
Mean
Difference
Std. Error
Difference Lower Upper
95% Confidence
Interval of the
Difference
t-test for Equality of Means
>-1.96 < 0.05 -18,738 Doesn’t include 0
Possible explanation for the difference in income:
Male income is higher because men have been
on the job longer than women.
Research Question:
Is there a difference in average length of time on
the job (YEARS) between male and female
graduates?
H0: There is NO difference in length of time on the
job between male and female graduates
1-2. T-test: Difference in Means
Step 2: Independent T-Test
Analyze/Compare Means/Independent-Samples T-Test
Step 2: Independent T-Test
Years at Current Position [years]
gender(1 2)
T-test: Results
Using the Unequal Variance model, we REJECT H0 and conclude
that there is a significant difference in average length of time on
the job between male and female graduates.
Group Statistics
128 4.15 4.315 .381
137 5.90 5.764 .492
Gender
Female
Male
Years at Current Position
N Mean Std. Deviation
Std. Error
Mean
Independent Samples Test
13.386 .000 -2.786 263 .006 -1.752 .629 -2.991 -.514
-2.813 251.276 .005 -1.752 .623 -2.979 -.525
Equal variances
assumed
Equal variances
not assumed
Years at Current Position
F Sig.
Levene's Test for
Equality of Variances
t df Sig. (2-tailed)
Mean
Difference
Std. Error
Difference Lower Upper
95% Confidence
Interval of the
Difference
t-test for Equality of Means
Does not
include 0
>-1.96 < 0.05 -1.752
Possible explanation for the difference in income:
Male income is higher because more females work
for government than males.
Research Question:
Is there a difference in the proportion employed in
government jobs between male and female
graduates?
H0: There is NO difference in the proportion
employed in government jobs between male
and female graduates
2. T-test: Difference in Proportions
• Create a new variable GOV that
– has the value 1 if the EMPLOYER (1-6) indicates the
alumnus works for a government organization.
– has the value 0 if the EMPLOYER is not 1-6.
1. Use Transform/Compute to convert the EMPLOYER
variable into a new categorical variable GOV.
2. Use Transform/Recode/Into Different Variables to
create a new categorical variable GOV.
Step 1: Create a new variable (GOV)
OUTPUT:
Analyze/Descriptive Statistics/Frequencies
Employer
8 2.9 2.9 2.9
12 4.3 4.3 7.2
13 4.7 4.7 11.9
45 16.2 16.2 28.2
17 6.1 6.1 34.3
3 1.1 1.1 35.4
5 1.8 1.8 37.2
5 1.8 1.8 39.0
20 7.2 7.2 46.2
11 4.0 4.0 50.2
47 16.9 17.0 67.1
51 18.3 18.4 85.6
4 1.4 1.4 87.0
25 9.0 9.0 96.0
11 4.0 4.0 100.0
277 99.6 100.0
1 .4
278 100.0
Gov: Federal
Gov: State
Gov: County
Gov: City
Gov: Special Agency
Gov: Non U.S.
Private: Single Person
Private: 2-4 Persons
Private: 5-19 Persons
Private: 20-49 Persons
Private: >= 50 Persons
Non-Profit (U.S.)
International Org.
Educational Inst.
Other
Total
Valid
SystemMissing
Total
Frequency Percent Valid Percent
Cumulative
Percent
7-11 Private
Missing Values
1-6 Government
Transform/Recode/
Into Different Variables
Transform/Recode/
Into Different Variables
Select the income variable, type “GOV”, click the “Change”
button, click the “Old and New Values” button…
Transform/Recode/
Into Different Variables
Transform/Recode/
Into Different Variables
Transform/Recode/
Into Different Variables
Transform/Recode/
Into Different Variables
Transform/Recode/
Into Different Variables
Save the
data file!!
• Analyze/Descriptive Statistics/Frequencies
Step 2: Create a frequency table for GOV
Thirty five percent of the graduates employed full time or
self-employed and making more than $20,000 and less than $400,000
work in government jobs.
Government Job
179 64.4 64.6 64.6
98 35.3 35.4 100.0
277 99.6 100.0
1 .4
278 100.0
No
Yes
Total
Valid
SystemMissing
Total
Frequency Percent Valid Percent
Cumulative
Percent
Step 2: Independent T-Test
Analyze/Compare Means/Independent-Samples T-Test
Step 2: Independent T-Test
gov
gender(1 2)
T-test: Results
Using the Unequal Variance model, we CANNOT REJECT H0
and cannot conclude that there is a significant difference
between male and female graduates with respect to the
proportion working in the government sector.
Group Statistics
127 .3543 .48020 .04261
137 .3650 .48319 .04128
Gender
Female
Male
Government Job
N Mean Std. Deviation
Std. Error
Mean
Independent Samples Test
.129 .720 -.179 262 .858 -.01063 .05934 -.12748 .10622
-.179 260.726 .858 -.01063 .05933 -.12746 .10619
Equal variances
assumed
Equal variances
not assumed
Government Job
F Sig.
Levene's Test for
Equality of Variances
t df Sig. (2-tailed)
Mean
Difference
Std. Error
Difference Lower Upper
95% Confidence
Interval of the
Difference
t-test for Equality of Means
<-1.96 > 0.05 Includes 0
3. Contingency Table/
Chi-Square Analysis
The same question can be analyzed by a contingency
table with GOV and GENDER and testing using
the Chi-Square statistic.
H0: There is NO relationship between employment
sector and gender.
Analyze/Descriptive statistics/Crosstabs
Analyze/Descriptive statistics/Crosstabs
Counts : Observed
Percentages : Row
Column
Select “gov” for “Row” & “Gender” for “column.”
Contingency table
Analyze/Descriptive statistics/Crosstabs
Government Job * Gender Crosstabulation
82 87 169
48.5% 51.5% 100.0%
64.6% 63.5% 64.0%
45 50 95
47.4% 52.6% 100.0%
35.4% 36.5% 36.0%
127 137 264
48.1% 51.9% 100.0%
100.0% 100.0% 100.0%
Count
% within Government Job
% within Gender
Count
% within Government Job
% within Gender
Count
% within Government Job
% within Gender
No
Yes
Government
Job
Total
Female Male
Gender
Total
Contingency table
Analyze/Descriptive statistics/Crosstabs
Chi-Square value = 0.032 < 3.84 (1.962
= Cutoff value at 95%
confidence level at 1 df).
We CANNOT REJECT the null hypothesis and cannot conclude
there is a statistically significant relationship between gender and
whether or not a person works for the government.
> 0.05
Chi-Square Tests
.032b 1 .857
.003 1 .959
.032 1 .857
.898 .480
264
Pearson Chi-Square
Continuity Correctiona
Likelihood Ratio
Fisher's Exact Test
N of Valid Cases
Value df
Asymp. Sig.
(2-sided)
Exact Sig.
(2-sided)
Exact Sig.
(1-sided)
Computed only for a 2x2 tablea.
0 cells (.0%) have expected count less than 5. The minimum expected count is 45.
70.
b.
< 3.84 > 0.05
OUTPUT:
Analyze/Descriptive Statistics/Frequencies
Missing Values
Employer
8 2.9 2.9 2.9
12 4.3 4.3 7.2
13 4.7 4.7 11.9
45 16.2 16.2 28.2
17 6.1 6.1 34.3
3 1.1 1.1 35.4
5 1.8 1.8 37.2
5 1.8 1.8 39.0
20 7.2 7.2 46.2
11 4.0 4.0 50.2
47 16.9 17.0 67.1
51 18.3 18.4 85.6
4 1.4 1.4 87.0
25 9.0 9.0 96.0
11 4.0 4.0 100.0
277 99.6 100.0
1 .4
278 100.0
Gov: Federal
Gov: State
Gov: County
Gov: City
Gov: Special Agency
Gov: Non U.S.
Private: Single Person
Private: 2-4 Persons
Private: 5-19 Persons
Private: 20-49 Persons
Private: >= 50 Persons
Non-Profit (U.S.)
International Org.
Educational Inst.
Other
Total
Valid
SystemMissing
Total
Frequency Percent Valid Percent
Cumulative
Percent
7-11. Private
3-2. Contingency Table/
Chi-Square Analysis
How about analyzing the difference in the proportion
of males and females in the private sector by a
contingency table with PRIVATE and GENDER.
H0: There is NO relationship between employment
sector and gender.
• Create a new variable PRIVATE that
– has the value 1 if the EMPLOYER (7-11) indicates the
alumnus works for a government organization.
– has the value 0 if the EMPLOYER is not 7-11 (else).
Method 2.
Use Transform/Recode/Into Different Variables to
create a new categorical variable PRIVATE.
Step1: Create a new variable
(PRIVATE)
Analyze/Descriptive statistics/Crosstabs
Counts: Observed
Percentages: Row
Column
Select “private” for “Row” & “Gender” for “column.”
Contingency table
Analyze/Descriptive statistics/Crosstabs
Private Sector Job * Gender Crosstabulation
92 87 179
51.4% 48.6% 100.0%
72.4% 63.5% 67.8%
35 50 85
41.2% 58.8% 100.0%
27.6% 36.5% 32.2%
127 137 264
48.1% 51.9% 100.0%
100.0% 100.0% 100.0%
Count
% within Private
Sector Job
% within Gender
Count
% within Private
Sector Job
% within Gender
Count
% within Private
Sector Job
% within Gender
.00
1.00
Private Sector
Job
Total
Female Male
Gender
Total
Contingency table
Analyze/Descriptive statistics/Crosstabs
Chi-Square value = 2.411 < 3.84 (1.962
).
We CANNOT REJECT the null hypothesis and cannot conclude
that the difference in the proportion of males and females in the
private sector is statistically significant.
Chi-Square Tests
2.411b 1 .120
2.019 1 .155
2.422 1 .120
.147 .077
264
Pearson Chi-Square
Continuity Correctiona
Likelihood Ratio
Fisher's Exact Test
N of Valid Cases
Value df
Asymp. Sig.
(2-sided)
Exact Sig.
(2-sided)
Exact Sig.
(1-sided)
Computed only for a 2x2 tablea.
0 cells (.0%) have expected count less than 5. The minimum expected count is 40.
89.
b.
< 3.84 > 0.05
The degrees of freedom in the chi-square test of a contingency table:
d.o.f = (r-1)*(c-1)
where
r & c are the number of rows and columns (or the number of
categories of two variables) in a table.
The number of d.o.f is the number of comparisons between actual and
expected frequencies minus the number of restrictions imposed on
these frequencies.
Since the number of cells in a contingency tables is r*c, there are r*c
actual frequencies to be compared with the corresponding expected
frequencies. Because the sum (total) of the frequencies in each row
and each column are given, there are r+c-1 restrictions.
Therefore, the number of d.o.f is: r*c - (r+c-1) = (r-1)*(c-1).
The degrees of freedom
in the chi-square test
• What other factors may influence income?
• Control for job sector (government, private, non-profit),
and examine a difference in average income between
males and females within each sector.
– Select cases: Data/Select Cases
if STATUS =1 & INCOME >20000 & INCOME > 400000 & GOV = 1
if STATUS =1 & INCOME >20000 & INCOME > 400000 & PRIVATE = 1
– Compare means/Independent Sample T-test
• If we see differences within each sector, other factors
besides job sector are influencing income.
Extensions to the Analysis

Contenu connexe

Tendances

Econometrics project
Econometrics projectEconometrics project
Econometrics projectShubham Joon
 
A study of psychographic variables proposed for segmentation for personal car...
A study of psychographic variables proposed for segmentation for personal car...A study of psychographic variables proposed for segmentation for personal car...
A study of psychographic variables proposed for segmentation for personal car...Alexander Decker
 
Type of data @ web mining discussion
Type of data @ web mining discussionType of data @ web mining discussion
Type of data @ web mining discussionCherryBerry2
 
Consumer behaviour towards buying cars
Consumer behaviour towards buying carsConsumer behaviour towards buying cars
Consumer behaviour towards buying carspiyoosh_09
 
Econometrics Final Project
Econometrics Final ProjectEconometrics Final Project
Econometrics Final ProjectAliaksey Narko
 
Forecasting Stock Market using Multiple Linear Regression
Forecasting Stock Market using Multiple Linear RegressionForecasting Stock Market using Multiple Linear Regression
Forecasting Stock Market using Multiple Linear Regressionijtsrd
 
Job Mobility and Creative Destruction: Flexicurity in the Land of Schumpteter...
Job Mobility and Creative Destruction: Flexicurity in the Land of Schumpteter...Job Mobility and Creative Destruction: Flexicurity in the Land of Schumpteter...
Job Mobility and Creative Destruction: Flexicurity in the Land of Schumpteter...ADEMU_Project
 
What is the Multinomial-Logistic Regression Classification Algorithm and How ...
What is the Multinomial-Logistic Regression Classification Algorithm and How ...What is the Multinomial-Logistic Regression Classification Algorithm and How ...
What is the Multinomial-Logistic Regression Classification Algorithm and How ...Smarten Augmented Analytics
 

Tendances (10)

Econometrics project
Econometrics projectEconometrics project
Econometrics project
 
Asrec arceo
Asrec arceoAsrec arceo
Asrec arceo
 
A study of psychographic variables proposed for segmentation for personal car...
A study of psychographic variables proposed for segmentation for personal car...A study of psychographic variables proposed for segmentation for personal car...
A study of psychographic variables proposed for segmentation for personal car...
 
Type of data @ web mining discussion
Type of data @ web mining discussionType of data @ web mining discussion
Type of data @ web mining discussion
 
Consumer behaviour towards buying cars
Consumer behaviour towards buying carsConsumer behaviour towards buying cars
Consumer behaviour towards buying cars
 
Econometrics Final Project
Econometrics Final ProjectEconometrics Final Project
Econometrics Final Project
 
Forecasting Stock Market using Multiple Linear Regression
Forecasting Stock Market using Multiple Linear RegressionForecasting Stock Market using Multiple Linear Regression
Forecasting Stock Market using Multiple Linear Regression
 
Chapter four
Chapter fourChapter four
Chapter four
 
Job Mobility and Creative Destruction: Flexicurity in the Land of Schumpteter...
Job Mobility and Creative Destruction: Flexicurity in the Land of Schumpteter...Job Mobility and Creative Destruction: Flexicurity in the Land of Schumpteter...
Job Mobility and Creative Destruction: Flexicurity in the Land of Schumpteter...
 
What is the Multinomial-Logistic Regression Classification Algorithm and How ...
What is the Multinomial-Logistic Regression Classification Algorithm and How ...What is the Multinomial-Logistic Regression Classification Algorithm and How ...
What is the Multinomial-Logistic Regression Classification Algorithm and How ...
 

En vedette

En vedette (20)

Chap#9 hypothesis testing (3)
Chap#9 hypothesis testing (3)Chap#9 hypothesis testing (3)
Chap#9 hypothesis testing (3)
 
Hypothesis
HypothesisHypothesis
Hypothesis
 
Correlation & Regression_
Correlation & Regression_Correlation & Regression_
Correlation & Regression_
 
Research hypothesis
Research hypothesisResearch hypothesis
Research hypothesis
 
About testing the hypothesis of equality of two bernoulli
About testing the hypothesis of equality of two bernoulliAbout testing the hypothesis of equality of two bernoulli
About testing the hypothesis of equality of two bernoulli
 
Himani sharma
Himani sharmaHimani sharma
Himani sharma
 
Hypothesis testing
Hypothesis testingHypothesis testing
Hypothesis testing
 
Supply chain management
Supply chain managementSupply chain management
Supply chain management
 
Hypothesis 2 - copy
Hypothesis 2 - copyHypothesis 2 - copy
Hypothesis 2 - copy
 
Chi square
Chi squareChi square
Chi square
 
Hypothesis testing
Hypothesis testingHypothesis testing
Hypothesis testing
 
8. Correlation
8. Correlation8. Correlation
8. Correlation
 
9. Regression
9. Regression9. Regression
9. Regression
 
Hypothesis testing
Hypothesis testingHypothesis testing
Hypothesis testing
 
Rm 3 Hypothesis
Rm   3   HypothesisRm   3   Hypothesis
Rm 3 Hypothesis
 
Four steps to hypothesis testing
Four steps to hypothesis testingFour steps to hypothesis testing
Four steps to hypothesis testing
 
Introduction to hypothesis testing ppt @ bec doms
Introduction to hypothesis testing ppt @ bec domsIntroduction to hypothesis testing ppt @ bec doms
Introduction to hypothesis testing ppt @ bec doms
 
Correlation
CorrelationCorrelation
Correlation
 
Formulating hypotheses
Formulating hypothesesFormulating hypotheses
Formulating hypotheses
 
Bullying Presentation
Bullying PresentationBullying Presentation
Bullying Presentation
 

Similaire à Hypothesis testng

Employment trends sas project
Employment trends   sas projectEmployment trends   sas project
Employment trends sas projectMohan Babu
 
DataIDSalaryCompaMidpoint AgePerformance RatingServiceGenderRaiseD.docx
DataIDSalaryCompaMidpoint AgePerformance RatingServiceGenderRaiseD.docxDataIDSalaryCompaMidpoint AgePerformance RatingServiceGenderRaiseD.docx
DataIDSalaryCompaMidpoint AgePerformance RatingServiceGenderRaiseD.docxsimonithomas47935
 
Final Exam Due Friday, Week EightInstructions  Each response is.docx
Final Exam Due Friday, Week EightInstructions  Each response is.docxFinal Exam Due Friday, Week EightInstructions  Each response is.docx
Final Exam Due Friday, Week EightInstructions  Each response is.docxmydrynan
 
Chi-square tests are great to show if distributions differ or i.docx
 Chi-square tests are great to show if distributions differ or i.docx Chi-square tests are great to show if distributions differ or i.docx
Chi-square tests are great to show if distributions differ or i.docxMARRY7
 
DataIDSalaryCompaMidpoint AgePerformance RatingServiceGenderRaiseD.docx
DataIDSalaryCompaMidpoint AgePerformance RatingServiceGenderRaiseD.docxDataIDSalaryCompaMidpoint AgePerformance RatingServiceGenderRaiseD.docx
DataIDSalaryCompaMidpoint AgePerformance RatingServiceGenderRaiseD.docxtheodorelove43763
 
Data Analysis for Graduate Studies Summary
Data Analysis for Graduate Studies SummaryData Analysis for Graduate Studies Summary
Data Analysis for Graduate Studies SummaryKelvinNMhina
 
MARKETING MANAGEMENT PHILOSOPHIESCHAPTER 1 - ASSIGNMENTQuest.docx
MARKETING MANAGEMENT PHILOSOPHIESCHAPTER 1 - ASSIGNMENTQuest.docxMARKETING MANAGEMENT PHILOSOPHIESCHAPTER 1 - ASSIGNMENTQuest.docx
MARKETING MANAGEMENT PHILOSOPHIESCHAPTER 1 - ASSIGNMENTQuest.docxinfantsuk
 
Running head Organization behaviorOrganization behavior 2.docx
Running head Organization behaviorOrganization behavior 2.docxRunning head Organization behaviorOrganization behavior 2.docx
Running head Organization behaviorOrganization behavior 2.docxtoltonkendal
 
Casual modelling in sociology carmine gelormini
Casual modelling in sociology   carmine gelorminiCasual modelling in sociology   carmine gelormini
Casual modelling in sociology carmine gelorminiCarmineGelormini
 
Descriptive StatsDescriptive statistics# 1 count26 mean0.4131 samp.docx
Descriptive StatsDescriptive statistics# 1 count26 mean0.4131 samp.docxDescriptive StatsDescriptive statistics# 1 count26 mean0.4131 samp.docx
Descriptive StatsDescriptive statistics# 1 count26 mean0.4131 samp.docxtheodorelove43763
 
Running Head Response .docx
Running Head Response                                        .docxRunning Head Response                                        .docx
Running Head Response .docxtoltonkendal
 
BUSI 620Questions for Critical Thinking 3Salvatore’s Chapter.docx
BUSI 620Questions for Critical Thinking 3Salvatore’s Chapter.docxBUSI 620Questions for Critical Thinking 3Salvatore’s Chapter.docx
BUSI 620Questions for Critical Thinking 3Salvatore’s Chapter.docxhumphrieskalyn
 
1Running Head NURSING PROFESSIONALISM2NURSING PROFESSIONALI.docx
1Running Head NURSING PROFESSIONALISM2NURSING PROFESSIONALI.docx1Running Head NURSING PROFESSIONALISM2NURSING PROFESSIONALI.docx
1Running Head NURSING PROFESSIONALISM2NURSING PROFESSIONALI.docxfelicidaddinwoodie
 
MBA 506 Project Hajiran_Regression Analysis
MBA 506 Project Hajiran_Regression AnalysisMBA 506 Project Hajiran_Regression Analysis
MBA 506 Project Hajiran_Regression AnalysisJarred Riccadonna, MBA
 
What is the Independent Samples T Test Method of Analysis and How Can it Bene...
What is the Independent Samples T Test Method of Analysis and How Can it Bene...What is the Independent Samples T Test Method of Analysis and How Can it Bene...
What is the Independent Samples T Test Method of Analysis and How Can it Bene...Smarten Augmented Analytics
 
Excel Files AssingmentsCopy of Student_Assignment_File.11.01..docx
Excel Files AssingmentsCopy of Student_Assignment_File.11.01..docxExcel Files AssingmentsCopy of Student_Assignment_File.11.01..docx
Excel Files AssingmentsCopy of Student_Assignment_File.11.01..docxSANSKAR20
 
Ash bus 308 week 2 problem set new
Ash bus 308 week 2 problem set newAsh bus 308 week 2 problem set new
Ash bus 308 week 2 problem set newrhettwhitee
 
Ash bus 308 week 2 problem set new
Ash bus 308 week 2 problem set newAsh bus 308 week 2 problem set new
Ash bus 308 week 2 problem set newkingrani623
 

Similaire à Hypothesis testng (20)

Employment trends sas project
Employment trends   sas projectEmployment trends   sas project
Employment trends sas project
 
DataIDSalaryCompaMidpoint AgePerformance RatingServiceGenderRaiseD.docx
DataIDSalaryCompaMidpoint AgePerformance RatingServiceGenderRaiseD.docxDataIDSalaryCompaMidpoint AgePerformance RatingServiceGenderRaiseD.docx
DataIDSalaryCompaMidpoint AgePerformance RatingServiceGenderRaiseD.docx
 
Final Exam Due Friday, Week EightInstructions  Each response is.docx
Final Exam Due Friday, Week EightInstructions  Each response is.docxFinal Exam Due Friday, Week EightInstructions  Each response is.docx
Final Exam Due Friday, Week EightInstructions  Each response is.docx
 
Chi-square tests are great to show if distributions differ or i.docx
 Chi-square tests are great to show if distributions differ or i.docx Chi-square tests are great to show if distributions differ or i.docx
Chi-square tests are great to show if distributions differ or i.docx
 
DataIDSalaryCompaMidpoint AgePerformance RatingServiceGenderRaiseD.docx
DataIDSalaryCompaMidpoint AgePerformance RatingServiceGenderRaiseD.docxDataIDSalaryCompaMidpoint AgePerformance RatingServiceGenderRaiseD.docx
DataIDSalaryCompaMidpoint AgePerformance RatingServiceGenderRaiseD.docx
 
Data Analysis for Graduate Studies Summary
Data Analysis for Graduate Studies SummaryData Analysis for Graduate Studies Summary
Data Analysis for Graduate Studies Summary
 
MARKETING MANAGEMENT PHILOSOPHIESCHAPTER 1 - ASSIGNMENTQuest.docx
MARKETING MANAGEMENT PHILOSOPHIESCHAPTER 1 - ASSIGNMENTQuest.docxMARKETING MANAGEMENT PHILOSOPHIESCHAPTER 1 - ASSIGNMENTQuest.docx
MARKETING MANAGEMENT PHILOSOPHIESCHAPTER 1 - ASSIGNMENTQuest.docx
 
Running head Organization behaviorOrganization behavior 2.docx
Running head Organization behaviorOrganization behavior 2.docxRunning head Organization behaviorOrganization behavior 2.docx
Running head Organization behaviorOrganization behavior 2.docx
 
Casual modelling in sociology carmine gelormini
Casual modelling in sociology   carmine gelorminiCasual modelling in sociology   carmine gelormini
Casual modelling in sociology carmine gelormini
 
Descriptive StatsDescriptive statistics# 1 count26 mean0.4131 samp.docx
Descriptive StatsDescriptive statistics# 1 count26 mean0.4131 samp.docxDescriptive StatsDescriptive statistics# 1 count26 mean0.4131 samp.docx
Descriptive StatsDescriptive statistics# 1 count26 mean0.4131 samp.docx
 
Running Head Response .docx
Running Head Response                                        .docxRunning Head Response                                        .docx
Running Head Response .docx
 
SDM Mini Project Group F
SDM Mini Project Group FSDM Mini Project Group F
SDM Mini Project Group F
 
BUSI 620Questions for Critical Thinking 3Salvatore’s Chapter.docx
BUSI 620Questions for Critical Thinking 3Salvatore’s Chapter.docxBUSI 620Questions for Critical Thinking 3Salvatore’s Chapter.docx
BUSI 620Questions for Critical Thinking 3Salvatore’s Chapter.docx
 
1Running Head NURSING PROFESSIONALISM2NURSING PROFESSIONALI.docx
1Running Head NURSING PROFESSIONALISM2NURSING PROFESSIONALI.docx1Running Head NURSING PROFESSIONALISM2NURSING PROFESSIONALI.docx
1Running Head NURSING PROFESSIONALISM2NURSING PROFESSIONALI.docx
 
Seawell_Exam
Seawell_ExamSeawell_Exam
Seawell_Exam
 
MBA 506 Project Hajiran_Regression Analysis
MBA 506 Project Hajiran_Regression AnalysisMBA 506 Project Hajiran_Regression Analysis
MBA 506 Project Hajiran_Regression Analysis
 
What is the Independent Samples T Test Method of Analysis and How Can it Bene...
What is the Independent Samples T Test Method of Analysis and How Can it Bene...What is the Independent Samples T Test Method of Analysis and How Can it Bene...
What is the Independent Samples T Test Method of Analysis and How Can it Bene...
 
Excel Files AssingmentsCopy of Student_Assignment_File.11.01..docx
Excel Files AssingmentsCopy of Student_Assignment_File.11.01..docxExcel Files AssingmentsCopy of Student_Assignment_File.11.01..docx
Excel Files AssingmentsCopy of Student_Assignment_File.11.01..docx
 
Ash bus 308 week 2 problem set new
Ash bus 308 week 2 problem set newAsh bus 308 week 2 problem set new
Ash bus 308 week 2 problem set new
 
Ash bus 308 week 2 problem set new
Ash bus 308 week 2 problem set newAsh bus 308 week 2 problem set new
Ash bus 308 week 2 problem set new
 

Plus de Omar (TUBBS 128) Ventura VII (8)

Sampling and Inference_Political_Science
Sampling and Inference_Political_ScienceSampling and Inference_Political_Science
Sampling and Inference_Political_Science
 
The New Fair Property Assessment Plan
The New Fair Property Assessment PlanThe New Fair Property Assessment Plan
The New Fair Property Assessment Plan
 
The fair assessmetn_plan_spring_2006_cory_cook_ca_pol
The fair assessmetn_plan_spring_2006_cory_cook_ca_polThe fair assessmetn_plan_spring_2006_cory_cook_ca_pol
The fair assessmetn_plan_spring_2006_cory_cook_ca_pol
 
Normal_Curves_z-scores
Normal_Curves_z-scoresNormal_Curves_z-scores
Normal_Curves_z-scores
 
Explanations and hypotheses ch 2
Explanations and hypotheses ch 2Explanations and hypotheses ch 2
Explanations and hypotheses ch 2
 
Examining relationships m2
Examining relationships m2Examining relationships m2
Examining relationships m2
 
Ch 7 regression_lab_outpu1
Ch 7 regression_lab_outpu1Ch 7 regression_lab_outpu1
Ch 7 regression_lab_outpu1
 
Ch 7 correlation_and_linear_regression
Ch 7 correlation_and_linear_regressionCh 7 correlation_and_linear_regression
Ch 7 correlation_and_linear_regression
 

Dernier

Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Shubhangi Sonawane
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDThiyagu K
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...Nguyen Thanh Tu Collection
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.MaryamAhmad92
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxAreebaZafar22
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxnegromaestrong
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxRamakrishna Reddy Bijjam
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...christianmathematics
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptxMaritesTamaniVerdade
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin ClassesCeline George
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701bronxfugly43
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfPoh-Sun Goh
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhikauryashika82
 

Dernier (20)

Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Asian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptxAsian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptx
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 

Hypothesis testng

  • 1. 1. T-test: Difference in means to test the statistical significance in the difference in means ex. income by gender, the num. of years at work by gender 2. T-test: Difference in proportions to test the statistical significance in the difference in proportions ex. the proportion employed in government jobs by gender 3. Contingency Table/Chi-Square Analysis to test whether all categories contain the same proportion of values or not by comparing expected and actual values. ex. the proportion employed in government jobs by gender Hypothesis Testing
  • 2. 1. A Research Question 2. The Null Hypothesis usually assumes NO difference 2 tailed-test 3. Select Cases 4. T-test or Contingency/Chi-Square Analysis 5. Interpret Test Results t-score, significance level, confidence interval, likelihood ratio (for Chi-Square Analysis) 6. “Reject” or “Not reject” the null hypothesis Hypothesis Testing Procedure
  • 3. • Research Question: Are there differences in income between male and female graduates and if so, what factors might explain this difference? 1. Is there a difference in average income between male and female graduates? 2. Is there a significant difference in average length of time on the job, between male and female graduates? 3. Is there a difference in the proportion employed in government jobs between males and females? Hypothesis Testing
  • 4. Research Question: Is there a difference in average income between male and female graduates? H0: There is NO difference in average income between male and female graduates Note: Limit the data to full-time employees or self- employed with income more than $20,000 and less than $400,000. 1. T-test: Difference in Means
  • 5. Step 1: Data/Select Cases • Select Data/Select Cases
  • 6. Data/Select Cases • In a Select Cases dialogue box, you specify logical expressions to select cases. – Select the “If condition is satisfied” option – Click on the If… button
  • 7. Data/Select Cases Specifying fullself and income range Type logical expression: fullself = 1 & income > 20000 & income < 400000 to limit cases to alumni who work full-time or are self-employed and make more than $20,000 and less than $400,000.
  • 10. Step 2: Independent T-Test Analyze/Compare Means/Independent-Samples T-Test
  • 11. Step 2: Independent T-Test income gender(? ?)
  • 12. Step 2: Independent T-Test Group 1: 1 for Female Group 2: 2 for male Note: The grouping variable can only have two categories.
  • 13. Step 2: Independent T-Test gender(1 2)
  • 14. T-test: Results Using the Unequal Variance model, we REJECT H0 and conclude that there is a significant difference in average income between male and female graduates. Group Statistics 128 79868.22 35165.875 3108.254 137 98606.49 47980.995 4099.293 Gender Female Male Income N Mean Std. Deviation Std. Error Mean Independent Samples Test 10.443 .001 -3.605 263 .000 -18738.270 5197.537 -28972.4 -8504.190 -3.642 249.145 .000 -18738.270 5144.458 -28870.4 -8606.100 Equal variances assumed Equal variances not assumed Income F Sig. Levene's Test for Equality of Variances t df Sig. (2-tailed) Mean Difference Std. Error Difference Lower Upper 95% Confidence Interval of the Difference t-test for Equality of Means >-1.96 < 0.05 -18,738 Doesn’t include 0
  • 15. Possible explanation for the difference in income: Male income is higher because men have been on the job longer than women. Research Question: Is there a difference in average length of time on the job (YEARS) between male and female graduates? H0: There is NO difference in length of time on the job between male and female graduates 1-2. T-test: Difference in Means
  • 16. Step 2: Independent T-Test Analyze/Compare Means/Independent-Samples T-Test
  • 17. Step 2: Independent T-Test Years at Current Position [years] gender(1 2)
  • 18. T-test: Results Using the Unequal Variance model, we REJECT H0 and conclude that there is a significant difference in average length of time on the job between male and female graduates. Group Statistics 128 4.15 4.315 .381 137 5.90 5.764 .492 Gender Female Male Years at Current Position N Mean Std. Deviation Std. Error Mean Independent Samples Test 13.386 .000 -2.786 263 .006 -1.752 .629 -2.991 -.514 -2.813 251.276 .005 -1.752 .623 -2.979 -.525 Equal variances assumed Equal variances not assumed Years at Current Position F Sig. Levene's Test for Equality of Variances t df Sig. (2-tailed) Mean Difference Std. Error Difference Lower Upper 95% Confidence Interval of the Difference t-test for Equality of Means Does not include 0 >-1.96 < 0.05 -1.752
  • 19. Possible explanation for the difference in income: Male income is higher because more females work for government than males. Research Question: Is there a difference in the proportion employed in government jobs between male and female graduates? H0: There is NO difference in the proportion employed in government jobs between male and female graduates 2. T-test: Difference in Proportions
  • 20. • Create a new variable GOV that – has the value 1 if the EMPLOYER (1-6) indicates the alumnus works for a government organization. – has the value 0 if the EMPLOYER is not 1-6. 1. Use Transform/Compute to convert the EMPLOYER variable into a new categorical variable GOV. 2. Use Transform/Recode/Into Different Variables to create a new categorical variable GOV. Step 1: Create a new variable (GOV)
  • 21. OUTPUT: Analyze/Descriptive Statistics/Frequencies Employer 8 2.9 2.9 2.9 12 4.3 4.3 7.2 13 4.7 4.7 11.9 45 16.2 16.2 28.2 17 6.1 6.1 34.3 3 1.1 1.1 35.4 5 1.8 1.8 37.2 5 1.8 1.8 39.0 20 7.2 7.2 46.2 11 4.0 4.0 50.2 47 16.9 17.0 67.1 51 18.3 18.4 85.6 4 1.4 1.4 87.0 25 9.0 9.0 96.0 11 4.0 4.0 100.0 277 99.6 100.0 1 .4 278 100.0 Gov: Federal Gov: State Gov: County Gov: City Gov: Special Agency Gov: Non U.S. Private: Single Person Private: 2-4 Persons Private: 5-19 Persons Private: 20-49 Persons Private: >= 50 Persons Non-Profit (U.S.) International Org. Educational Inst. Other Total Valid SystemMissing Total Frequency Percent Valid Percent Cumulative Percent 7-11 Private Missing Values 1-6 Government
  • 23. Transform/Recode/ Into Different Variables Select the income variable, type “GOV”, click the “Change” button, click the “Old and New Values” button…
  • 29. • Analyze/Descriptive Statistics/Frequencies Step 2: Create a frequency table for GOV Thirty five percent of the graduates employed full time or self-employed and making more than $20,000 and less than $400,000 work in government jobs. Government Job 179 64.4 64.6 64.6 98 35.3 35.4 100.0 277 99.6 100.0 1 .4 278 100.0 No Yes Total Valid SystemMissing Total Frequency Percent Valid Percent Cumulative Percent
  • 30. Step 2: Independent T-Test Analyze/Compare Means/Independent-Samples T-Test
  • 31. Step 2: Independent T-Test gov gender(1 2)
  • 32. T-test: Results Using the Unequal Variance model, we CANNOT REJECT H0 and cannot conclude that there is a significant difference between male and female graduates with respect to the proportion working in the government sector. Group Statistics 127 .3543 .48020 .04261 137 .3650 .48319 .04128 Gender Female Male Government Job N Mean Std. Deviation Std. Error Mean Independent Samples Test .129 .720 -.179 262 .858 -.01063 .05934 -.12748 .10622 -.179 260.726 .858 -.01063 .05933 -.12746 .10619 Equal variances assumed Equal variances not assumed Government Job F Sig. Levene's Test for Equality of Variances t df Sig. (2-tailed) Mean Difference Std. Error Difference Lower Upper 95% Confidence Interval of the Difference t-test for Equality of Means <-1.96 > 0.05 Includes 0
  • 33. 3. Contingency Table/ Chi-Square Analysis The same question can be analyzed by a contingency table with GOV and GENDER and testing using the Chi-Square statistic. H0: There is NO relationship between employment sector and gender.
  • 35. Analyze/Descriptive statistics/Crosstabs Counts : Observed Percentages : Row Column Select “gov” for “Row” & “Gender” for “column.”
  • 36. Contingency table Analyze/Descriptive statistics/Crosstabs Government Job * Gender Crosstabulation 82 87 169 48.5% 51.5% 100.0% 64.6% 63.5% 64.0% 45 50 95 47.4% 52.6% 100.0% 35.4% 36.5% 36.0% 127 137 264 48.1% 51.9% 100.0% 100.0% 100.0% 100.0% Count % within Government Job % within Gender Count % within Government Job % within Gender Count % within Government Job % within Gender No Yes Government Job Total Female Male Gender Total
  • 37. Contingency table Analyze/Descriptive statistics/Crosstabs Chi-Square value = 0.032 < 3.84 (1.962 = Cutoff value at 95% confidence level at 1 df). We CANNOT REJECT the null hypothesis and cannot conclude there is a statistically significant relationship between gender and whether or not a person works for the government. > 0.05 Chi-Square Tests .032b 1 .857 .003 1 .959 .032 1 .857 .898 .480 264 Pearson Chi-Square Continuity Correctiona Likelihood Ratio Fisher's Exact Test N of Valid Cases Value df Asymp. Sig. (2-sided) Exact Sig. (2-sided) Exact Sig. (1-sided) Computed only for a 2x2 tablea. 0 cells (.0%) have expected count less than 5. The minimum expected count is 45. 70. b. < 3.84 > 0.05
  • 38. OUTPUT: Analyze/Descriptive Statistics/Frequencies Missing Values Employer 8 2.9 2.9 2.9 12 4.3 4.3 7.2 13 4.7 4.7 11.9 45 16.2 16.2 28.2 17 6.1 6.1 34.3 3 1.1 1.1 35.4 5 1.8 1.8 37.2 5 1.8 1.8 39.0 20 7.2 7.2 46.2 11 4.0 4.0 50.2 47 16.9 17.0 67.1 51 18.3 18.4 85.6 4 1.4 1.4 87.0 25 9.0 9.0 96.0 11 4.0 4.0 100.0 277 99.6 100.0 1 .4 278 100.0 Gov: Federal Gov: State Gov: County Gov: City Gov: Special Agency Gov: Non U.S. Private: Single Person Private: 2-4 Persons Private: 5-19 Persons Private: 20-49 Persons Private: >= 50 Persons Non-Profit (U.S.) International Org. Educational Inst. Other Total Valid SystemMissing Total Frequency Percent Valid Percent Cumulative Percent 7-11. Private
  • 39. 3-2. Contingency Table/ Chi-Square Analysis How about analyzing the difference in the proportion of males and females in the private sector by a contingency table with PRIVATE and GENDER. H0: There is NO relationship between employment sector and gender.
  • 40. • Create a new variable PRIVATE that – has the value 1 if the EMPLOYER (7-11) indicates the alumnus works for a government organization. – has the value 0 if the EMPLOYER is not 7-11 (else). Method 2. Use Transform/Recode/Into Different Variables to create a new categorical variable PRIVATE. Step1: Create a new variable (PRIVATE)
  • 41. Analyze/Descriptive statistics/Crosstabs Counts: Observed Percentages: Row Column Select “private” for “Row” & “Gender” for “column.”
  • 42. Contingency table Analyze/Descriptive statistics/Crosstabs Private Sector Job * Gender Crosstabulation 92 87 179 51.4% 48.6% 100.0% 72.4% 63.5% 67.8% 35 50 85 41.2% 58.8% 100.0% 27.6% 36.5% 32.2% 127 137 264 48.1% 51.9% 100.0% 100.0% 100.0% 100.0% Count % within Private Sector Job % within Gender Count % within Private Sector Job % within Gender Count % within Private Sector Job % within Gender .00 1.00 Private Sector Job Total Female Male Gender Total
  • 43. Contingency table Analyze/Descriptive statistics/Crosstabs Chi-Square value = 2.411 < 3.84 (1.962 ). We CANNOT REJECT the null hypothesis and cannot conclude that the difference in the proportion of males and females in the private sector is statistically significant. Chi-Square Tests 2.411b 1 .120 2.019 1 .155 2.422 1 .120 .147 .077 264 Pearson Chi-Square Continuity Correctiona Likelihood Ratio Fisher's Exact Test N of Valid Cases Value df Asymp. Sig. (2-sided) Exact Sig. (2-sided) Exact Sig. (1-sided) Computed only for a 2x2 tablea. 0 cells (.0%) have expected count less than 5. The minimum expected count is 40. 89. b. < 3.84 > 0.05
  • 44. The degrees of freedom in the chi-square test of a contingency table: d.o.f = (r-1)*(c-1) where r & c are the number of rows and columns (or the number of categories of two variables) in a table. The number of d.o.f is the number of comparisons between actual and expected frequencies minus the number of restrictions imposed on these frequencies. Since the number of cells in a contingency tables is r*c, there are r*c actual frequencies to be compared with the corresponding expected frequencies. Because the sum (total) of the frequencies in each row and each column are given, there are r+c-1 restrictions. Therefore, the number of d.o.f is: r*c - (r+c-1) = (r-1)*(c-1). The degrees of freedom in the chi-square test
  • 45. • What other factors may influence income? • Control for job sector (government, private, non-profit), and examine a difference in average income between males and females within each sector. – Select cases: Data/Select Cases if STATUS =1 & INCOME >20000 & INCOME > 400000 & GOV = 1 if STATUS =1 & INCOME >20000 & INCOME > 400000 & PRIVATE = 1 – Compare means/Independent Sample T-test • If we see differences within each sector, other factors besides job sector are influencing income. Extensions to the Analysis