SlideShare a Scribd company logo
1 of 27
Download to read offline
Quantitative
Methods
for
Lawyers
Chi Square ( ) Distribution
Class #12
χ 2
( ad - bc)2 (a + b + c +d)
( a + b) (c +d) (b +d) ( a + c)
Chi Square ( ) Testχ 2
@ computational
computationallegalstudies.com
professor daniel martin katz danielmartinkatz.com
lexpredict.com slideshare.net/DanielKatz
Generally - Two types of random variables
numerical and categorical
“What was your college major ?” or “Do you own a bike?” are categorical because
they yield data such as “Economics” or “no.”
Categorical versus
Numerical Data
categorical variables yield data in categories
numerical variables yield data in numerical form
Categorical variables
“How tall are you?” or “What is your G.P.A.?” are numerical. Numerical data
can be either discrete or continuous.
Numerical variables
A chi square (χ 2
) statistic is used to investigate whether
distributions of categorical variables differ from one another
Chi Square ( ) Statisticχ 2
The Chi Square statistic compares the tallies or counts of
categorical responses between two (or more) independent
groups.
(note: Chi square tests can only be used on actual numbers
and not on percentages, proportions, means, etc.)
There are several types of chi square tests depending on the
way the data was collected and the hypothesis being tested.
Imagine the simplest case of a 2 x 2 contingency table
If we set the 2 x 2 table to the general notation shown below
in Table 1, using the letters a, b, c, and d to denote the
contents of the cells:
Variable 2 Data Type 1 Data Type 2 Totals
Category 1 a b a + b
Category 2 c d c + d
Total a + c b + d a+b+c+d =N
Chi Square ( ) Statisticχ 2
Variable 2 Data Type 1 Data Type 2 Totals
Category 1 a b a + b
Category 2 c d c + d
Total a + c b + d a+b+c+d =N
χ 2 = ( ad - bc)2 (a + b + c +d)
( a + b) (c +d) (b +d) ( a + c)
Note: notice that the four components of the
denominator are the four totals from the table
columns and rows
Chi Square ( ) Statisticχ 2
Male Female Totals
Not Research Asst 319 323 642
Research Assistant 60 34 94
Total 379 357 736
In Our Prior Class We Discussed Hypothesis Testing and
that is the approach we would like to use here
Chi Square is a technique to consider whether the
observed gender disparity in RA positions is too large to
be result of chance
Chi Square ( ) Statisticχ 2
Male Female Totals
Not Research Asst 319 323 642
Research Assistant 60 34 94
Total 379 357 736
Ho is the Null Hypothesis
H1 is the Alternative Hypothesis
In this Case, Please Describe Each of these in simple words
Chi Square ( ) Statisticχ 2
Male Female Totals
Not Research Asst 319 323 642
Research Assistant 60 34 94
Total 379 357 736
Ho: Gender Does Not Affect Probability of Being RA
Chi Square ( ) Statisticχ 2
Male Female Totals
Not Research Asst 319 323 642
Research Assistant 60 34 94
Total 379 357 736
We need to understand the Expected Value for this
question as it sets our baseline expectations
Chi Square ( ) Statisticχ 2
Male Female Totals
Not Research Asst 319 323 642
Research Assistant 60 34 94
Total 379 357 736
Male Female Totals
Not Research Asst 330.6 311.4 642
Research Assistant 48.4 45.6 94
Total 379 357 736
Chi Square ( ) Statisticχ 2
We need to understand the Expected Value for this
question as it sets our baseline expectations
Chi Square is all about comparing expected
values to the observed/actual values
Male Female Totals
Not Research Asst 319 323 642
Research Assistant 60 34 94
Total 379 357 736
Male Female Totals
Not Research Asst 330.6 311.4 642
Research Assistant 48.4 45.6 94
Total 379 357 736
Chi Square ( ) Statisticχ 2
Male Female
Not Research Asst 0.4 0.4
Research Assistant 2.8 3
Here is the Chi Square Calculation for the
Student Population :
= .4 + .4 + 2.8 + 3.0 = 6.6χ 2
Chi Square ( ) Statisticχ 2
What Does a χ 2
value of 6.6 Tell Us?
Need to Look at the P Value
on Chi Square Table
Here the Degrees of Freedom are =
1 (more on D.F. later)
Thus, there is roughly a 1%
probability that the disparity was
generated by chance
Chi Square ( ) Statisticχ 2
Suppose you conducted a drug trial on a group and you
hypothesize that the group receiving the drug would
survive at a rate higher than those that did not receive the
drug.
Ho: Group survival is independent of drug
treatment
Ha: Group survival is associated with drug
treatment
Chi Square ( ) Statisticχ 2
You conduct the study and
collect the following data:
χ 2 = ( ad - bc)2 (a + b + c +d)
( a + b) (c +d) (b +d) ( a + c)
Chi Square ( ) Statisticχ 2
Applying the formula above we get:
Chi square = 105 [(36)(25) - (14)(30) ]2
/ (50)(55)(39)(66) = 3.418
Chi Square ( ) Statisticχ 2
How Do We Determine How Many Degrees of Freedom?
Before we can proceed we need to know how many degrees of
freedom we have. When a comparison is made between one sample
and another, a simple rule is that the degrees of freedom equal
(number of columns minus one) x (number of rows minus one) not
counting the totals for rows or columns.
For our data this gives (2-1) x (2-1) = 1.
Chi Square ( ) Statisticχ 2
We now have our chi square statistic
(x2 = 3.418), our predetermined alpha level of significance
(0.05), and our degrees of freedom (df =1).
Entering the Chi square distribution table with 1 degree of
freedom and reading along the row we find our value of x2
(3.418) lies between 2.706 and 3.841.
Chi Square ( ) Statisticχ 2
Male,
Citizen
Female,
Citizen
Male,
Foreign
Female,
Foreign
TOTAL
Research Asst &
Grant
12 9 7 9 37
Grant Only 32 62 22 44 160
Research Asst
Only
33 11 8 5 57
No Grant & No
Research Asst
199 112 66 105 482
TOTAL 276 194 103 163 736
Here We Have Additional Category - Foreign v. Citizen
Suppose You Learn that School Offers Student Grant and that
Professor Consider this Before Hiring
Further Assume that Various Immigration Laws Make it more
difficult for foreign students to get RA positions
Raw Data Expected Value
Chi Square Calculation
χ 2 = 41.2
χ 2
= 41.2
How Many Degrees
of Freedom?
Rule of Thumb is Subtract 1 from # of Rows
& Subtract 1 from # of Columns.
Then, Multiply the Result
(4 -1 ) x ( 4 - 1) = 9
χ 2
= 41.2
How Many Degrees
of Freedom?
Rule of Thumb is Subtract 1 from # of Rows
& Subtract 1 from # of Columns.
Then, Multiply the Result
(4 -1 ) x ( 4 - 1) = 9
41.2 > 27.88
χ 2
= 41.2
How Many Degrees
of Freedom?
Rule of Thumb is Subtract 1 from # of Rows
& Subtract 1 from # of Columns.
Then, Multiply the Result
(4 -1 ) x ( 4 - 1) = 9
http://sites.stat.psu.edu/~mga/401/tables/Chi-square-table.pdf
Access the Chi Squared Table
http://www.quantpsy.org/chisq/chisq.htm
Calculating the Chi-Square Test
Daniel Martin Katz
@ computational
computationallegalstudies.com
lexpredict.com
danielmartinkatz.com
illinois tech - chicago kent college of law@

More Related Content

What's hot

What's hot (20)

Types of Probability Distributions - Statistics II
Types of Probability Distributions - Statistics IITypes of Probability Distributions - Statistics II
Types of Probability Distributions - Statistics II
 
Sec 3.1 measures of center
Sec 3.1 measures of center  Sec 3.1 measures of center
Sec 3.1 measures of center
 
Business Statistics Chapter 8
Business Statistics Chapter 8Business Statistics Chapter 8
Business Statistics Chapter 8
 
Applied Statistics In Business
Applied Statistics In BusinessApplied Statistics In Business
Applied Statistics In Business
 
Logistic regression
Logistic regressionLogistic regression
Logistic regression
 
Business Statistics Chapter 6
Business Statistics Chapter 6Business Statistics Chapter 6
Business Statistics Chapter 6
 
Descriptive statistics and graphs
Descriptive statistics and graphsDescriptive statistics and graphs
Descriptive statistics and graphs
 
Inferences about Two Proportions
 Inferences about Two Proportions Inferences about Two Proportions
Inferences about Two Proportions
 
Chapter08
Chapter08Chapter08
Chapter08
 
Assessing Normality
Assessing NormalityAssessing Normality
Assessing Normality
 
Chapter9
Chapter9Chapter9
Chapter9
 
Measures of Variation
Measures of Variation Measures of Variation
Measures of Variation
 
Chapter3
Chapter3Chapter3
Chapter3
 
14 ch ken black solution
14 ch ken black solution14 ch ken black solution
14 ch ken black solution
 
Probability Distribution
Probability DistributionProbability Distribution
Probability Distribution
 
Variance & standard deviation
Variance & standard deviationVariance & standard deviation
Variance & standard deviation
 
Chapter04
Chapter04Chapter04
Chapter04
 
Chapter12
Chapter12Chapter12
Chapter12
 
Testing a Claim About a Mean
Testing a Claim About a MeanTesting a Claim About a Mean
Testing a Claim About a Mean
 
Testing a Claim About a Standard Deviation or Variance
Testing a Claim About a Standard Deviation or VarianceTesting a Claim About a Standard Deviation or Variance
Testing a Claim About a Standard Deviation or Variance
 

Viewers also liked

Chi square goodness of fit test
Chi square goodness of fit testChi square goodness of fit test
Chi square goodness of fit testamylute
 
Quantitative Methods for Lawyers - Class #16 - More T Stat, ANOVA, F Stat - P...
Quantitative Methods for Lawyers - Class #16 - More T Stat, ANOVA, F Stat - P...Quantitative Methods for Lawyers - Class #16 - More T Stat, ANOVA, F Stat - P...
Quantitative Methods for Lawyers - Class #16 - More T Stat, ANOVA, F Stat - P...Daniel Katz
 
Quantitative Methods for Lawyers - Class #13 - Students "t" Distribution - Pr...
Quantitative Methods for Lawyers - Class #13 - Students "t" Distribution - Pr...Quantitative Methods for Lawyers - Class #13 - Students "t" Distribution - Pr...
Quantitative Methods for Lawyers - Class #13 - Students "t" Distribution - Pr...Daniel Katz
 
Quantitative Methods for Lawyers - Class #4 - Research Design Part IV - Profe...
Quantitative Methods for Lawyers - Class #4 - Research Design Part IV - Profe...Quantitative Methods for Lawyers - Class #4 - Research Design Part IV - Profe...
Quantitative Methods for Lawyers - Class #4 - Research Design Part IV - Profe...Daniel Katz
 
Quantitative Methods for Lawyers - Class #1 - Why Quantitative Methods + Res...
Quantitative Methods for Lawyers - Class #1 -  Why Quantitative Methods + Res...Quantitative Methods for Lawyers - Class #1 -  Why Quantitative Methods + Res...
Quantitative Methods for Lawyers - Class #1 - Why Quantitative Methods + Res...Daniel Katz
 
Stat 130 chi-square goodnes-of-fit test
Stat 130   chi-square goodnes-of-fit testStat 130   chi-square goodnes-of-fit test
Stat 130 chi-square goodnes-of-fit testAldrin Lozano
 
The Chi-Square Statistic: Tests for Goodness of Fit and Independence
The Chi-Square Statistic: Tests for Goodness of Fit and IndependenceThe Chi-Square Statistic: Tests for Goodness of Fit and Independence
The Chi-Square Statistic: Tests for Goodness of Fit and Independencejasondroesch
 
Legal Analytics - Introduction to the Course - Professor Daniel Martin Katz +...
Legal Analytics - Introduction to the Course - Professor Daniel Martin Katz +...Legal Analytics - Introduction to the Course - Professor Daniel Martin Katz +...
Legal Analytics - Introduction to the Course - Professor Daniel Martin Katz +...Daniel Katz
 
AWS re:Invent 2016: Blockchain on AWS: Disrupting the Norm (GPST301)
AWS re:Invent 2016: Blockchain on AWS: Disrupting the Norm (GPST301)AWS re:Invent 2016: Blockchain on AWS: Disrupting the Norm (GPST301)
AWS re:Invent 2016: Blockchain on AWS: Disrupting the Norm (GPST301)Amazon Web Services
 
Artificial Intelligence and Law - 
A Primer
Artificial Intelligence and Law - 
A Primer Artificial Intelligence and Law - 
A Primer
Artificial Intelligence and Law - 
A Primer Daniel Katz
 
Law + Complexity & Prediction: Toward a Characterization of Legal Systems as ...
Law + Complexity & Prediction: Toward a Characterization of Legal Systems as ...Law + Complexity & Prediction: Toward a Characterization of Legal Systems as ...
Law + Complexity & Prediction: Toward a Characterization of Legal Systems as ...Daniel Katz
 

Viewers also liked (11)

Chi square goodness of fit test
Chi square goodness of fit testChi square goodness of fit test
Chi square goodness of fit test
 
Quantitative Methods for Lawyers - Class #16 - More T Stat, ANOVA, F Stat - P...
Quantitative Methods for Lawyers - Class #16 - More T Stat, ANOVA, F Stat - P...Quantitative Methods for Lawyers - Class #16 - More T Stat, ANOVA, F Stat - P...
Quantitative Methods for Lawyers - Class #16 - More T Stat, ANOVA, F Stat - P...
 
Quantitative Methods for Lawyers - Class #13 - Students "t" Distribution - Pr...
Quantitative Methods for Lawyers - Class #13 - Students "t" Distribution - Pr...Quantitative Methods for Lawyers - Class #13 - Students "t" Distribution - Pr...
Quantitative Methods for Lawyers - Class #13 - Students "t" Distribution - Pr...
 
Quantitative Methods for Lawyers - Class #4 - Research Design Part IV - Profe...
Quantitative Methods for Lawyers - Class #4 - Research Design Part IV - Profe...Quantitative Methods for Lawyers - Class #4 - Research Design Part IV - Profe...
Quantitative Methods for Lawyers - Class #4 - Research Design Part IV - Profe...
 
Quantitative Methods for Lawyers - Class #1 - Why Quantitative Methods + Res...
Quantitative Methods for Lawyers - Class #1 -  Why Quantitative Methods + Res...Quantitative Methods for Lawyers - Class #1 -  Why Quantitative Methods + Res...
Quantitative Methods for Lawyers - Class #1 - Why Quantitative Methods + Res...
 
Stat 130 chi-square goodnes-of-fit test
Stat 130   chi-square goodnes-of-fit testStat 130   chi-square goodnes-of-fit test
Stat 130 chi-square goodnes-of-fit test
 
The Chi-Square Statistic: Tests for Goodness of Fit and Independence
The Chi-Square Statistic: Tests for Goodness of Fit and IndependenceThe Chi-Square Statistic: Tests for Goodness of Fit and Independence
The Chi-Square Statistic: Tests for Goodness of Fit and Independence
 
Legal Analytics - Introduction to the Course - Professor Daniel Martin Katz +...
Legal Analytics - Introduction to the Course - Professor Daniel Martin Katz +...Legal Analytics - Introduction to the Course - Professor Daniel Martin Katz +...
Legal Analytics - Introduction to the Course - Professor Daniel Martin Katz +...
 
AWS re:Invent 2016: Blockchain on AWS: Disrupting the Norm (GPST301)
AWS re:Invent 2016: Blockchain on AWS: Disrupting the Norm (GPST301)AWS re:Invent 2016: Blockchain on AWS: Disrupting the Norm (GPST301)
AWS re:Invent 2016: Blockchain on AWS: Disrupting the Norm (GPST301)
 
Artificial Intelligence and Law - 
A Primer
Artificial Intelligence and Law - 
A Primer Artificial Intelligence and Law - 
A Primer
Artificial Intelligence and Law - 
A Primer
 
Law + Complexity & Prediction: Toward a Characterization of Legal Systems as ...
Law + Complexity & Prediction: Toward a Characterization of Legal Systems as ...Law + Complexity & Prediction: Toward a Characterization of Legal Systems as ...
Law + Complexity & Prediction: Toward a Characterization of Legal Systems as ...
 

Similar to Quantitative Methods for Lawyers - Class #12 - Chi Square Distribution and Chi Square Test - Professor Daniel Martin Katz

Quantitative Methods for Lawyers - Class #15 - Chi Square Distribution and Ch...
Quantitative Methods for Lawyers - Class #15 - Chi Square Distribution and Ch...Quantitative Methods for Lawyers - Class #15 - Chi Square Distribution and Ch...
Quantitative Methods for Lawyers - Class #15 - Chi Square Distribution and Ch...Daniel Katz
 
6Categorical data analysis presentation.pdf
6Categorical data analysis presentation.pdf6Categorical data analysis presentation.pdf
6Categorical data analysis presentation.pdfMitikuTeka1
 
From Data to Decisions, a Mixed Path of Data Visualization and Machine Learning
From Data to Decisions, a Mixed Path of Data Visualization and Machine LearningFrom Data to Decisions, a Mixed Path of Data Visualization and Machine Learning
From Data to Decisions, a Mixed Path of Data Visualization and Machine LearningQianwen Wang
 
Lesson 27 using statistical techniques in analyzing data
Lesson 27 using statistical techniques in analyzing dataLesson 27 using statistical techniques in analyzing data
Lesson 27 using statistical techniques in analyzing datamjlobetos
 
Regression analysis presentation
Regression analysis presentationRegression analysis presentation
Regression analysis presentationMuhammadFaisal733
 
Statistics+-+11th+Elite+(1).pdf
Statistics+-+11th+Elite+(1).pdfStatistics+-+11th+Elite+(1).pdf
Statistics+-+11th+Elite+(1).pdfayushkatiyar276
 
Applied Math 40S March 12, 2008
Applied Math 40S March 12, 2008Applied Math 40S March 12, 2008
Applied Math 40S March 12, 2008Darren Kuropatwa
 
Statistics assignment
Statistics assignmentStatistics assignment
Statistics assignmentBrian Miles
 
Pre-Assessment-Activity.pdf
Pre-Assessment-Activity.pdfPre-Assessment-Activity.pdf
Pre-Assessment-Activity.pdfByronSmith46
 
Experimental design data analysis
Experimental design data analysisExperimental design data analysis
Experimental design data analysismetalkid132
 
JKN 10 Inference 2 Populations.Consider the following set of d.docx
JKN 10 Inference 2 Populations.Consider the following set of d.docxJKN 10 Inference 2 Populations.Consider the following set of d.docx
JKN 10 Inference 2 Populations.Consider the following set of d.docxchristiandean12115
 
T Test Presentation.pptx
T Test Presentation.pptxT Test Presentation.pptx
T Test Presentation.pptxVishal Doke
 
Math 533 ( applied managerial statistics ) entire course
Math 533 ( applied managerial statistics ) entire courseMath 533 ( applied managerial statistics ) entire course
Math 533 ( applied managerial statistics ) entire coursePatrickrasacs
 

Similar to Quantitative Methods for Lawyers - Class #12 - Chi Square Distribution and Chi Square Test - Professor Daniel Martin Katz (20)

Quantitative Methods for Lawyers - Class #15 - Chi Square Distribution and Ch...
Quantitative Methods for Lawyers - Class #15 - Chi Square Distribution and Ch...Quantitative Methods for Lawyers - Class #15 - Chi Square Distribution and Ch...
Quantitative Methods for Lawyers - Class #15 - Chi Square Distribution and Ch...
 
6Categorical data analysis presentation.pdf
6Categorical data analysis presentation.pdf6Categorical data analysis presentation.pdf
6Categorical data analysis presentation.pdf
 
From Data to Decisions, a Mixed Path of Data Visualization and Machine Learning
From Data to Decisions, a Mixed Path of Data Visualization and Machine LearningFrom Data to Decisions, a Mixed Path of Data Visualization and Machine Learning
From Data to Decisions, a Mixed Path of Data Visualization and Machine Learning
 
Regression
RegressionRegression
Regression
 
Regression
Regression  Regression
Regression
 
Lesson 27 using statistical techniques in analyzing data
Lesson 27 using statistical techniques in analyzing dataLesson 27 using statistical techniques in analyzing data
Lesson 27 using statistical techniques in analyzing data
 
Regression analysis presentation
Regression analysis presentationRegression analysis presentation
Regression analysis presentation
 
Statistics+-+11th+Elite+(1).pdf
Statistics+-+11th+Elite+(1).pdfStatistics+-+11th+Elite+(1).pdf
Statistics+-+11th+Elite+(1).pdf
 
Binomial Theorem 5
Binomial Theorem 5Binomial Theorem 5
Binomial Theorem 5
 
Applied Math 40S March 12, 2008
Applied Math 40S March 12, 2008Applied Math 40S March 12, 2008
Applied Math 40S March 12, 2008
 
Statistics assignment
Statistics assignmentStatistics assignment
Statistics assignment
 
qm2CHAP12.ppt
qm2CHAP12.pptqm2CHAP12.ppt
qm2CHAP12.ppt
 
Pre-Assessment-Activity.pdf
Pre-Assessment-Activity.pdfPre-Assessment-Activity.pdf
Pre-Assessment-Activity.pdf
 
Experimental design data analysis
Experimental design data analysisExperimental design data analysis
Experimental design data analysis
 
Chi square test
Chi square test Chi square test
Chi square test
 
JKN 10 Inference 2 Populations.Consider the following set of d.docx
JKN 10 Inference 2 Populations.Consider the following set of d.docxJKN 10 Inference 2 Populations.Consider the following set of d.docx
JKN 10 Inference 2 Populations.Consider the following set of d.docx
 
Statistics
StatisticsStatistics
Statistics
 
T Test Presentation.pptx
T Test Presentation.pptxT Test Presentation.pptx
T Test Presentation.pptx
 
ML MODULE 2.pdf
ML MODULE 2.pdfML MODULE 2.pdf
ML MODULE 2.pdf
 
Math 533 ( applied managerial statistics ) entire course
Math 533 ( applied managerial statistics ) entire courseMath 533 ( applied managerial statistics ) entire course
Math 533 ( applied managerial statistics ) entire course
 

More from Daniel Katz

Legal Analytics versus Empirical Legal Studies - or - Causal Inference vs Pre...
Legal Analytics versus Empirical Legal Studies - or - Causal Inference vs Pre...Legal Analytics versus Empirical Legal Studies - or - Causal Inference vs Pre...
Legal Analytics versus Empirical Legal Studies - or - Causal Inference vs Pre...Daniel Katz
 
Can Law Librarians Help Law Become More Data Driven ? An Open Question in Ne...
Can Law Librarians Help Law Become More Data Driven ?  An Open Question in Ne...Can Law Librarians Help Law Become More Data Driven ?  An Open Question in Ne...
Can Law Librarians Help Law Become More Data Driven ? An Open Question in Ne...Daniel Katz
 
Why We Are Open Sourcing ContraxSuite and Some Thoughts About Legal Tech and ...
Why We Are Open Sourcing ContraxSuite and Some Thoughts About Legal Tech and ...Why We Are Open Sourcing ContraxSuite and Some Thoughts About Legal Tech and ...
Why We Are Open Sourcing ContraxSuite and Some Thoughts About Legal Tech and ...Daniel Katz
 
Fin (Legal) Tech – Law’s Future from Finance’s Past (Some Thoughts About the ...
Fin (Legal) Tech – Law’s Future from Finance’s Past (Some Thoughts About the ...Fin (Legal) Tech – Law’s Future from Finance’s Past (Some Thoughts About the ...
Fin (Legal) Tech – Law’s Future from Finance’s Past (Some Thoughts About the ...Daniel Katz
 
Exploring the Physical Properties of Regulatory Ecosystems - Professors Danie...
Exploring the Physical Properties of Regulatory Ecosystems - Professors Danie...Exploring the Physical Properties of Regulatory Ecosystems - Professors Danie...
Exploring the Physical Properties of Regulatory Ecosystems - Professors Danie...Daniel Katz
 
Building Your Personal (Legal) Brand - Some Thoughts for Law Students and Oth...
Building Your Personal (Legal) Brand - Some Thoughts for Law Students and Oth...Building Your Personal (Legal) Brand - Some Thoughts for Law Students and Oth...
Building Your Personal (Legal) Brand - Some Thoughts for Law Students and Oth...Daniel Katz
 
Measure Twice, Cut Once - Solving the Legal Profession Biggest Challenges Tog...
Measure Twice, Cut Once - Solving the Legal Profession Biggest Challenges Tog...Measure Twice, Cut Once - Solving the Legal Profession Biggest Challenges Tog...
Measure Twice, Cut Once - Solving the Legal Profession Biggest Challenges Tog...Daniel Katz
 
Machine Learning as a Service: #MLaaS, Open Source and the Future of (Legal) ...
Machine Learning as a Service: #MLaaS, Open Source and the Future of (Legal) ...Machine Learning as a Service: #MLaaS, Open Source and the Future of (Legal) ...
Machine Learning as a Service: #MLaaS, Open Source and the Future of (Legal) ...Daniel Katz
 
Technology, Data and Computation Session @ The World Bank - Law, Justice, and...
Technology, Data and Computation Session @ The World Bank - Law, Justice, and...Technology, Data and Computation Session @ The World Bank - Law, Justice, and...
Technology, Data and Computation Session @ The World Bank - Law, Justice, and...Daniel Katz
 
LexPredict - Empowering the Future of Legal Decision Making
LexPredict - Empowering the Future of Legal Decision MakingLexPredict - Empowering the Future of Legal Decision Making
LexPredict - Empowering the Future of Legal Decision MakingDaniel Katz
 
{Law, Tech, Design, Delivery} Observations Regarding Innovation in the Legal ...
{Law, Tech, Design, Delivery} Observations Regarding Innovation in the Legal ...{Law, Tech, Design, Delivery} Observations Regarding Innovation in the Legal ...
{Law, Tech, Design, Delivery} Observations Regarding Innovation in the Legal ...Daniel Katz
 
Legal Analytics Course - Class 11 - Network Analysis and Law - Professors Dan...
Legal Analytics Course - Class 11 - Network Analysis and Law - Professors Dan...Legal Analytics Course - Class 11 - Network Analysis and Law - Professors Dan...
Legal Analytics Course - Class 11 - Network Analysis and Law - Professors Dan...Daniel Katz
 
Legal Analytics Course - Class 12 - Data Preprocessing using dPlyR - Professo...
Legal Analytics Course - Class 12 - Data Preprocessing using dPlyR - Professo...Legal Analytics Course - Class 12 - Data Preprocessing using dPlyR - Professo...
Legal Analytics Course - Class 12 - Data Preprocessing using dPlyR - Professo...Daniel Katz
 
Legal Analytics Course - Class 10 - Information Visualization + DataViz in R ...
Legal Analytics Course - Class 10 - Information Visualization + DataViz in R ...Legal Analytics Course - Class 10 - Information Visualization + DataViz in R ...
Legal Analytics Course - Class 10 - Information Visualization + DataViz in R ...Daniel Katz
 
Legal Analytics Course - Class #4 - Github and RMarkdown Tutorial - Professor...
Legal Analytics Course - Class #4 - Github and RMarkdown Tutorial - Professor...Legal Analytics Course - Class #4 - Github and RMarkdown Tutorial - Professor...
Legal Analytics Course - Class #4 - Github and RMarkdown Tutorial - Professor...Daniel Katz
 
Legal Analytics Course - Class 9 - Clustering Algorithms (K-Means & Hierarch...
Legal Analytics Course - Class 9 -  Clustering Algorithms (K-Means & Hierarch...Legal Analytics Course - Class 9 -  Clustering Algorithms (K-Means & Hierarch...
Legal Analytics Course - Class 9 - Clustering Algorithms (K-Means & Hierarch...Daniel Katz
 
Legal Analytics Course - Class 8 - Introduction to Random Forests and Ensembl...
Legal Analytics Course - Class 8 - Introduction to Random Forests and Ensembl...Legal Analytics Course - Class 8 - Introduction to Random Forests and Ensembl...
Legal Analytics Course - Class 8 - Introduction to Random Forests and Ensembl...Daniel Katz
 
Legal Analytics Course - Class 7 - Binary Classification with Decision Tree L...
Legal Analytics Course - Class 7 - Binary Classification with Decision Tree L...Legal Analytics Course - Class 7 - Binary Classification with Decision Tree L...
Legal Analytics Course - Class 7 - Binary Classification with Decision Tree L...Daniel Katz
 
Legal Analytics Course - Class 6 - Overfitting, Underfitting, & Cross-Validat...
Legal Analytics Course - Class 6 - Overfitting, Underfitting, & Cross-Validat...Legal Analytics Course - Class 6 - Overfitting, Underfitting, & Cross-Validat...
Legal Analytics Course - Class 6 - Overfitting, Underfitting, & Cross-Validat...Daniel Katz
 
Legal Analytics Course - Class 5 - Quantitative Legal Prediction + Data Drive...
Legal Analytics Course - Class 5 - Quantitative Legal Prediction + Data Drive...Legal Analytics Course - Class 5 - Quantitative Legal Prediction + Data Drive...
Legal Analytics Course - Class 5 - Quantitative Legal Prediction + Data Drive...Daniel Katz
 

More from Daniel Katz (20)

Legal Analytics versus Empirical Legal Studies - or - Causal Inference vs Pre...
Legal Analytics versus Empirical Legal Studies - or - Causal Inference vs Pre...Legal Analytics versus Empirical Legal Studies - or - Causal Inference vs Pre...
Legal Analytics versus Empirical Legal Studies - or - Causal Inference vs Pre...
 
Can Law Librarians Help Law Become More Data Driven ? An Open Question in Ne...
Can Law Librarians Help Law Become More Data Driven ?  An Open Question in Ne...Can Law Librarians Help Law Become More Data Driven ?  An Open Question in Ne...
Can Law Librarians Help Law Become More Data Driven ? An Open Question in Ne...
 
Why We Are Open Sourcing ContraxSuite and Some Thoughts About Legal Tech and ...
Why We Are Open Sourcing ContraxSuite and Some Thoughts About Legal Tech and ...Why We Are Open Sourcing ContraxSuite and Some Thoughts About Legal Tech and ...
Why We Are Open Sourcing ContraxSuite and Some Thoughts About Legal Tech and ...
 
Fin (Legal) Tech – Law’s Future from Finance’s Past (Some Thoughts About the ...
Fin (Legal) Tech – Law’s Future from Finance’s Past (Some Thoughts About the ...Fin (Legal) Tech – Law’s Future from Finance’s Past (Some Thoughts About the ...
Fin (Legal) Tech – Law’s Future from Finance’s Past (Some Thoughts About the ...
 
Exploring the Physical Properties of Regulatory Ecosystems - Professors Danie...
Exploring the Physical Properties of Regulatory Ecosystems - Professors Danie...Exploring the Physical Properties of Regulatory Ecosystems - Professors Danie...
Exploring the Physical Properties of Regulatory Ecosystems - Professors Danie...
 
Building Your Personal (Legal) Brand - Some Thoughts for Law Students and Oth...
Building Your Personal (Legal) Brand - Some Thoughts for Law Students and Oth...Building Your Personal (Legal) Brand - Some Thoughts for Law Students and Oth...
Building Your Personal (Legal) Brand - Some Thoughts for Law Students and Oth...
 
Measure Twice, Cut Once - Solving the Legal Profession Biggest Challenges Tog...
Measure Twice, Cut Once - Solving the Legal Profession Biggest Challenges Tog...Measure Twice, Cut Once - Solving the Legal Profession Biggest Challenges Tog...
Measure Twice, Cut Once - Solving the Legal Profession Biggest Challenges Tog...
 
Machine Learning as a Service: #MLaaS, Open Source and the Future of (Legal) ...
Machine Learning as a Service: #MLaaS, Open Source and the Future of (Legal) ...Machine Learning as a Service: #MLaaS, Open Source and the Future of (Legal) ...
Machine Learning as a Service: #MLaaS, Open Source and the Future of (Legal) ...
 
Technology, Data and Computation Session @ The World Bank - Law, Justice, and...
Technology, Data and Computation Session @ The World Bank - Law, Justice, and...Technology, Data and Computation Session @ The World Bank - Law, Justice, and...
Technology, Data and Computation Session @ The World Bank - Law, Justice, and...
 
LexPredict - Empowering the Future of Legal Decision Making
LexPredict - Empowering the Future of Legal Decision MakingLexPredict - Empowering the Future of Legal Decision Making
LexPredict - Empowering the Future of Legal Decision Making
 
{Law, Tech, Design, Delivery} Observations Regarding Innovation in the Legal ...
{Law, Tech, Design, Delivery} Observations Regarding Innovation in the Legal ...{Law, Tech, Design, Delivery} Observations Regarding Innovation in the Legal ...
{Law, Tech, Design, Delivery} Observations Regarding Innovation in the Legal ...
 
Legal Analytics Course - Class 11 - Network Analysis and Law - Professors Dan...
Legal Analytics Course - Class 11 - Network Analysis and Law - Professors Dan...Legal Analytics Course - Class 11 - Network Analysis and Law - Professors Dan...
Legal Analytics Course - Class 11 - Network Analysis and Law - Professors Dan...
 
Legal Analytics Course - Class 12 - Data Preprocessing using dPlyR - Professo...
Legal Analytics Course - Class 12 - Data Preprocessing using dPlyR - Professo...Legal Analytics Course - Class 12 - Data Preprocessing using dPlyR - Professo...
Legal Analytics Course - Class 12 - Data Preprocessing using dPlyR - Professo...
 
Legal Analytics Course - Class 10 - Information Visualization + DataViz in R ...
Legal Analytics Course - Class 10 - Information Visualization + DataViz in R ...Legal Analytics Course - Class 10 - Information Visualization + DataViz in R ...
Legal Analytics Course - Class 10 - Information Visualization + DataViz in R ...
 
Legal Analytics Course - Class #4 - Github and RMarkdown Tutorial - Professor...
Legal Analytics Course - Class #4 - Github and RMarkdown Tutorial - Professor...Legal Analytics Course - Class #4 - Github and RMarkdown Tutorial - Professor...
Legal Analytics Course - Class #4 - Github and RMarkdown Tutorial - Professor...
 
Legal Analytics Course - Class 9 - Clustering Algorithms (K-Means & Hierarch...
Legal Analytics Course - Class 9 -  Clustering Algorithms (K-Means & Hierarch...Legal Analytics Course - Class 9 -  Clustering Algorithms (K-Means & Hierarch...
Legal Analytics Course - Class 9 - Clustering Algorithms (K-Means & Hierarch...
 
Legal Analytics Course - Class 8 - Introduction to Random Forests and Ensembl...
Legal Analytics Course - Class 8 - Introduction to Random Forests and Ensembl...Legal Analytics Course - Class 8 - Introduction to Random Forests and Ensembl...
Legal Analytics Course - Class 8 - Introduction to Random Forests and Ensembl...
 
Legal Analytics Course - Class 7 - Binary Classification with Decision Tree L...
Legal Analytics Course - Class 7 - Binary Classification with Decision Tree L...Legal Analytics Course - Class 7 - Binary Classification with Decision Tree L...
Legal Analytics Course - Class 7 - Binary Classification with Decision Tree L...
 
Legal Analytics Course - Class 6 - Overfitting, Underfitting, & Cross-Validat...
Legal Analytics Course - Class 6 - Overfitting, Underfitting, & Cross-Validat...Legal Analytics Course - Class 6 - Overfitting, Underfitting, & Cross-Validat...
Legal Analytics Course - Class 6 - Overfitting, Underfitting, & Cross-Validat...
 
Legal Analytics Course - Class 5 - Quantitative Legal Prediction + Data Drive...
Legal Analytics Course - Class 5 - Quantitative Legal Prediction + Data Drive...Legal Analytics Course - Class 5 - Quantitative Legal Prediction + Data Drive...
Legal Analytics Course - Class 5 - Quantitative Legal Prediction + Data Drive...
 

Recently uploaded

IBC (Insolvency and Bankruptcy Code 2016)-IOD - PPT.pptx
IBC (Insolvency and Bankruptcy Code 2016)-IOD - PPT.pptxIBC (Insolvency and Bankruptcy Code 2016)-IOD - PPT.pptx
IBC (Insolvency and Bankruptcy Code 2016)-IOD - PPT.pptxRRR Chambers
 
KEY NOTE- IBC(INSOLVENCY & BANKRUPTCY CODE) DESIGN- PPT.pptx
KEY NOTE- IBC(INSOLVENCY & BANKRUPTCY CODE) DESIGN- PPT.pptxKEY NOTE- IBC(INSOLVENCY & BANKRUPTCY CODE) DESIGN- PPT.pptx
KEY NOTE- IBC(INSOLVENCY & BANKRUPTCY CODE) DESIGN- PPT.pptxRRR Chambers
 
如何办理(MSU文凭证书)密歇根州立大学毕业证学位证书
 如何办理(MSU文凭证书)密歇根州立大学毕业证学位证书 如何办理(MSU文凭证书)密歇根州立大学毕业证学位证书
如何办理(MSU文凭证书)密歇根州立大学毕业证学位证书Sir Lt
 
Legal Risks and Compliance Considerations for Cryptocurrency Exchanges in India
Legal Risks and Compliance Considerations for Cryptocurrency Exchanges in IndiaLegal Risks and Compliance Considerations for Cryptocurrency Exchanges in India
Legal Risks and Compliance Considerations for Cryptocurrency Exchanges in IndiaFinlaw Consultancy Pvt Ltd
 
COPYRIGHTS - PPT 01.12.2023 part- 2.pptx
COPYRIGHTS - PPT 01.12.2023 part- 2.pptxCOPYRIGHTS - PPT 01.12.2023 part- 2.pptx
COPYRIGHTS - PPT 01.12.2023 part- 2.pptxRRR Chambers
 
FINALTRUEENFORCEMENT OF BARANGAY SETTLEMENT.ppt
FINALTRUEENFORCEMENT OF BARANGAY SETTLEMENT.pptFINALTRUEENFORCEMENT OF BARANGAY SETTLEMENT.ppt
FINALTRUEENFORCEMENT OF BARANGAY SETTLEMENT.pptjudeplata
 
Municipal-Council-Ratlam-vs-Vardi-Chand-A-Landmark-Writ-Case.pptx
Municipal-Council-Ratlam-vs-Vardi-Chand-A-Landmark-Writ-Case.pptxMunicipal-Council-Ratlam-vs-Vardi-Chand-A-Landmark-Writ-Case.pptx
Municipal-Council-Ratlam-vs-Vardi-Chand-A-Landmark-Writ-Case.pptxSHIVAMGUPTA671167
 
Negotiable Instruments Act 1881.UNDERSTAND THE LAW OF 1881
Negotiable Instruments Act 1881.UNDERSTAND THE LAW OF 1881Negotiable Instruments Act 1881.UNDERSTAND THE LAW OF 1881
Negotiable Instruments Act 1881.UNDERSTAND THE LAW OF 1881mayurchatre90
 
一比一原版牛津布鲁克斯大学毕业证学位证书
一比一原版牛津布鲁克斯大学毕业证学位证书一比一原版牛津布鲁克斯大学毕业证学位证书
一比一原版牛津布鲁克斯大学毕业证学位证书E LSS
 
Indemnity Guarantee Section 124 125 and 126
Indemnity Guarantee Section 124 125 and 126Indemnity Guarantee Section 124 125 and 126
Indemnity Guarantee Section 124 125 and 126Oishi8
 
LITERAL RULE OF INTERPRETATION - PRIMARY RULE
LITERAL RULE OF INTERPRETATION - PRIMARY RULELITERAL RULE OF INTERPRETATION - PRIMARY RULE
LITERAL RULE OF INTERPRETATION - PRIMARY RULEsreeramsaipranitha
 
一比一原版旧金山州立大学毕业证学位证书
 一比一原版旧金山州立大学毕业证学位证书 一比一原版旧金山州立大学毕业证学位证书
一比一原版旧金山州立大学毕业证学位证书SS A
 
CAFC Chronicles: Costly Tales of Claim Construction Fails
CAFC Chronicles: Costly Tales of Claim Construction FailsCAFC Chronicles: Costly Tales of Claim Construction Fails
CAFC Chronicles: Costly Tales of Claim Construction FailsAurora Consulting
 
INVOLUNTARY TRANSFERS Kenya school of law.pptx
INVOLUNTARY TRANSFERS Kenya school of law.pptxINVOLUNTARY TRANSFERS Kenya school of law.pptx
INVOLUNTARY TRANSFERS Kenya school of law.pptxnyabatejosphat1
 
Chp 1- Contract and its kinds-business law .ppt
Chp 1- Contract and its kinds-business law .pptChp 1- Contract and its kinds-business law .ppt
Chp 1- Contract and its kinds-business law .pptzainabbkhaleeq123
 
如何办理(SFSta文凭证书)美国旧金山州立大学毕业证学位证书
如何办理(SFSta文凭证书)美国旧金山州立大学毕业证学位证书如何办理(SFSta文凭证书)美国旧金山州立大学毕业证学位证书
如何办理(SFSta文凭证书)美国旧金山州立大学毕业证学位证书Fs Las
 
Essentials of a Valid Transfer.pptxmmmmmm
Essentials of a Valid Transfer.pptxmmmmmmEssentials of a Valid Transfer.pptxmmmmmm
Essentials of a Valid Transfer.pptxmmmmmm2020000445musaib
 

Recently uploaded (20)

IBC (Insolvency and Bankruptcy Code 2016)-IOD - PPT.pptx
IBC (Insolvency and Bankruptcy Code 2016)-IOD - PPT.pptxIBC (Insolvency and Bankruptcy Code 2016)-IOD - PPT.pptx
IBC (Insolvency and Bankruptcy Code 2016)-IOD - PPT.pptx
 
KEY NOTE- IBC(INSOLVENCY & BANKRUPTCY CODE) DESIGN- PPT.pptx
KEY NOTE- IBC(INSOLVENCY & BANKRUPTCY CODE) DESIGN- PPT.pptxKEY NOTE- IBC(INSOLVENCY & BANKRUPTCY CODE) DESIGN- PPT.pptx
KEY NOTE- IBC(INSOLVENCY & BANKRUPTCY CODE) DESIGN- PPT.pptx
 
如何办理(MSU文凭证书)密歇根州立大学毕业证学位证书
 如何办理(MSU文凭证书)密歇根州立大学毕业证学位证书 如何办理(MSU文凭证书)密歇根州立大学毕业证学位证书
如何办理(MSU文凭证书)密歇根州立大学毕业证学位证书
 
Legal Risks and Compliance Considerations for Cryptocurrency Exchanges in India
Legal Risks and Compliance Considerations for Cryptocurrency Exchanges in IndiaLegal Risks and Compliance Considerations for Cryptocurrency Exchanges in India
Legal Risks and Compliance Considerations for Cryptocurrency Exchanges in India
 
COPYRIGHTS - PPT 01.12.2023 part- 2.pptx
COPYRIGHTS - PPT 01.12.2023 part- 2.pptxCOPYRIGHTS - PPT 01.12.2023 part- 2.pptx
COPYRIGHTS - PPT 01.12.2023 part- 2.pptx
 
FINALTRUEENFORCEMENT OF BARANGAY SETTLEMENT.ppt
FINALTRUEENFORCEMENT OF BARANGAY SETTLEMENT.pptFINALTRUEENFORCEMENT OF BARANGAY SETTLEMENT.ppt
FINALTRUEENFORCEMENT OF BARANGAY SETTLEMENT.ppt
 
Municipal-Council-Ratlam-vs-Vardi-Chand-A-Landmark-Writ-Case.pptx
Municipal-Council-Ratlam-vs-Vardi-Chand-A-Landmark-Writ-Case.pptxMunicipal-Council-Ratlam-vs-Vardi-Chand-A-Landmark-Writ-Case.pptx
Municipal-Council-Ratlam-vs-Vardi-Chand-A-Landmark-Writ-Case.pptx
 
Negotiable Instruments Act 1881.UNDERSTAND THE LAW OF 1881
Negotiable Instruments Act 1881.UNDERSTAND THE LAW OF 1881Negotiable Instruments Act 1881.UNDERSTAND THE LAW OF 1881
Negotiable Instruments Act 1881.UNDERSTAND THE LAW OF 1881
 
一比一原版牛津布鲁克斯大学毕业证学位证书
一比一原版牛津布鲁克斯大学毕业证学位证书一比一原版牛津布鲁克斯大学毕业证学位证书
一比一原版牛津布鲁克斯大学毕业证学位证书
 
Indemnity Guarantee Section 124 125 and 126
Indemnity Guarantee Section 124 125 and 126Indemnity Guarantee Section 124 125 and 126
Indemnity Guarantee Section 124 125 and 126
 
Russian Call Girls Rohini Sector 7 💓 Delhi 9999965857 @Sabina Modi VVIP MODEL...
Russian Call Girls Rohini Sector 7 💓 Delhi 9999965857 @Sabina Modi VVIP MODEL...Russian Call Girls Rohini Sector 7 💓 Delhi 9999965857 @Sabina Modi VVIP MODEL...
Russian Call Girls Rohini Sector 7 💓 Delhi 9999965857 @Sabina Modi VVIP MODEL...
 
LITERAL RULE OF INTERPRETATION - PRIMARY RULE
LITERAL RULE OF INTERPRETATION - PRIMARY RULELITERAL RULE OF INTERPRETATION - PRIMARY RULE
LITERAL RULE OF INTERPRETATION - PRIMARY RULE
 
一比一原版旧金山州立大学毕业证学位证书
 一比一原版旧金山州立大学毕业证学位证书 一比一原版旧金山州立大学毕业证学位证书
一比一原版旧金山州立大学毕业证学位证书
 
CAFC Chronicles: Costly Tales of Claim Construction Fails
CAFC Chronicles: Costly Tales of Claim Construction FailsCAFC Chronicles: Costly Tales of Claim Construction Fails
CAFC Chronicles: Costly Tales of Claim Construction Fails
 
Rohini Sector 25 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
Rohini Sector 25 Call Girls Delhi 9999965857 @Sabina Saikh No AdvanceRohini Sector 25 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
Rohini Sector 25 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
 
Vip Call Girls Greater Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
Vip Call Girls Greater Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS LiveVip Call Girls Greater Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
Vip Call Girls Greater Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
 
INVOLUNTARY TRANSFERS Kenya school of law.pptx
INVOLUNTARY TRANSFERS Kenya school of law.pptxINVOLUNTARY TRANSFERS Kenya school of law.pptx
INVOLUNTARY TRANSFERS Kenya school of law.pptx
 
Chp 1- Contract and its kinds-business law .ppt
Chp 1- Contract and its kinds-business law .pptChp 1- Contract and its kinds-business law .ppt
Chp 1- Contract and its kinds-business law .ppt
 
如何办理(SFSta文凭证书)美国旧金山州立大学毕业证学位证书
如何办理(SFSta文凭证书)美国旧金山州立大学毕业证学位证书如何办理(SFSta文凭证书)美国旧金山州立大学毕业证学位证书
如何办理(SFSta文凭证书)美国旧金山州立大学毕业证学位证书
 
Essentials of a Valid Transfer.pptxmmmmmm
Essentials of a Valid Transfer.pptxmmmmmmEssentials of a Valid Transfer.pptxmmmmmm
Essentials of a Valid Transfer.pptxmmmmmm
 

Quantitative Methods for Lawyers - Class #12 - Chi Square Distribution and Chi Square Test - Professor Daniel Martin Katz

  • 1. Quantitative Methods for Lawyers Chi Square ( ) Distribution Class #12 χ 2 ( ad - bc)2 (a + b + c +d) ( a + b) (c +d) (b +d) ( a + c) Chi Square ( ) Testχ 2 @ computational computationallegalstudies.com professor daniel martin katz danielmartinkatz.com lexpredict.com slideshare.net/DanielKatz
  • 2. Generally - Two types of random variables numerical and categorical “What was your college major ?” or “Do you own a bike?” are categorical because they yield data such as “Economics” or “no.” Categorical versus Numerical Data categorical variables yield data in categories numerical variables yield data in numerical form Categorical variables “How tall are you?” or “What is your G.P.A.?” are numerical. Numerical data can be either discrete or continuous. Numerical variables
  • 3. A chi square (χ 2 ) statistic is used to investigate whether distributions of categorical variables differ from one another Chi Square ( ) Statisticχ 2 The Chi Square statistic compares the tallies or counts of categorical responses between two (or more) independent groups. (note: Chi square tests can only be used on actual numbers and not on percentages, proportions, means, etc.)
  • 4. There are several types of chi square tests depending on the way the data was collected and the hypothesis being tested. Imagine the simplest case of a 2 x 2 contingency table If we set the 2 x 2 table to the general notation shown below in Table 1, using the letters a, b, c, and d to denote the contents of the cells: Variable 2 Data Type 1 Data Type 2 Totals Category 1 a b a + b Category 2 c d c + d Total a + c b + d a+b+c+d =N Chi Square ( ) Statisticχ 2
  • 5. Variable 2 Data Type 1 Data Type 2 Totals Category 1 a b a + b Category 2 c d c + d Total a + c b + d a+b+c+d =N χ 2 = ( ad - bc)2 (a + b + c +d) ( a + b) (c +d) (b +d) ( a + c) Note: notice that the four components of the denominator are the four totals from the table columns and rows Chi Square ( ) Statisticχ 2
  • 6.
  • 7. Male Female Totals Not Research Asst 319 323 642 Research Assistant 60 34 94 Total 379 357 736 In Our Prior Class We Discussed Hypothesis Testing and that is the approach we would like to use here Chi Square is a technique to consider whether the observed gender disparity in RA positions is too large to be result of chance Chi Square ( ) Statisticχ 2
  • 8. Male Female Totals Not Research Asst 319 323 642 Research Assistant 60 34 94 Total 379 357 736 Ho is the Null Hypothesis H1 is the Alternative Hypothesis In this Case, Please Describe Each of these in simple words Chi Square ( ) Statisticχ 2
  • 9. Male Female Totals Not Research Asst 319 323 642 Research Assistant 60 34 94 Total 379 357 736 Ho: Gender Does Not Affect Probability of Being RA Chi Square ( ) Statisticχ 2
  • 10. Male Female Totals Not Research Asst 319 323 642 Research Assistant 60 34 94 Total 379 357 736 We need to understand the Expected Value for this question as it sets our baseline expectations Chi Square ( ) Statisticχ 2
  • 11. Male Female Totals Not Research Asst 319 323 642 Research Assistant 60 34 94 Total 379 357 736 Male Female Totals Not Research Asst 330.6 311.4 642 Research Assistant 48.4 45.6 94 Total 379 357 736 Chi Square ( ) Statisticχ 2 We need to understand the Expected Value for this question as it sets our baseline expectations
  • 12. Chi Square is all about comparing expected values to the observed/actual values Male Female Totals Not Research Asst 319 323 642 Research Assistant 60 34 94 Total 379 357 736 Male Female Totals Not Research Asst 330.6 311.4 642 Research Assistant 48.4 45.6 94 Total 379 357 736 Chi Square ( ) Statisticχ 2
  • 13. Male Female Not Research Asst 0.4 0.4 Research Assistant 2.8 3 Here is the Chi Square Calculation for the Student Population : = .4 + .4 + 2.8 + 3.0 = 6.6χ 2 Chi Square ( ) Statisticχ 2
  • 14. What Does a χ 2 value of 6.6 Tell Us? Need to Look at the P Value on Chi Square Table Here the Degrees of Freedom are = 1 (more on D.F. later) Thus, there is roughly a 1% probability that the disparity was generated by chance Chi Square ( ) Statisticχ 2
  • 15. Suppose you conducted a drug trial on a group and you hypothesize that the group receiving the drug would survive at a rate higher than those that did not receive the drug. Ho: Group survival is independent of drug treatment Ha: Group survival is associated with drug treatment Chi Square ( ) Statisticχ 2
  • 16. You conduct the study and collect the following data: χ 2 = ( ad - bc)2 (a + b + c +d) ( a + b) (c +d) (b +d) ( a + c) Chi Square ( ) Statisticχ 2
  • 17. Applying the formula above we get: Chi square = 105 [(36)(25) - (14)(30) ]2 / (50)(55)(39)(66) = 3.418 Chi Square ( ) Statisticχ 2
  • 18. How Do We Determine How Many Degrees of Freedom? Before we can proceed we need to know how many degrees of freedom we have. When a comparison is made between one sample and another, a simple rule is that the degrees of freedom equal (number of columns minus one) x (number of rows minus one) not counting the totals for rows or columns. For our data this gives (2-1) x (2-1) = 1. Chi Square ( ) Statisticχ 2
  • 19. We now have our chi square statistic (x2 = 3.418), our predetermined alpha level of significance (0.05), and our degrees of freedom (df =1). Entering the Chi square distribution table with 1 degree of freedom and reading along the row we find our value of x2 (3.418) lies between 2.706 and 3.841. Chi Square ( ) Statisticχ 2
  • 20. Male, Citizen Female, Citizen Male, Foreign Female, Foreign TOTAL Research Asst & Grant 12 9 7 9 37 Grant Only 32 62 22 44 160 Research Asst Only 33 11 8 5 57 No Grant & No Research Asst 199 112 66 105 482 TOTAL 276 194 103 163 736 Here We Have Additional Category - Foreign v. Citizen Suppose You Learn that School Offers Student Grant and that Professor Consider this Before Hiring Further Assume that Various Immigration Laws Make it more difficult for foreign students to get RA positions
  • 21. Raw Data Expected Value Chi Square Calculation χ 2 = 41.2
  • 22. χ 2 = 41.2 How Many Degrees of Freedom? Rule of Thumb is Subtract 1 from # of Rows & Subtract 1 from # of Columns. Then, Multiply the Result (4 -1 ) x ( 4 - 1) = 9
  • 23. χ 2 = 41.2 How Many Degrees of Freedom? Rule of Thumb is Subtract 1 from # of Rows & Subtract 1 from # of Columns. Then, Multiply the Result (4 -1 ) x ( 4 - 1) = 9
  • 24. 41.2 > 27.88 χ 2 = 41.2 How Many Degrees of Freedom? Rule of Thumb is Subtract 1 from # of Rows & Subtract 1 from # of Columns. Then, Multiply the Result (4 -1 ) x ( 4 - 1) = 9
  • 27. Daniel Martin Katz @ computational computationallegalstudies.com lexpredict.com danielmartinkatz.com illinois tech - chicago kent college of law@