Download - APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE
![Page 1: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE](https://reader035.vdocuments.net/reader035/viewer/2022062518/56814109550346895daccfd3/html5/thumbnails/1.jpg)
APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE
CJ 525 MONMOUTH UNIVERSITY
Juan P. Rodriguez
![Page 2: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE](https://reader035.vdocuments.net/reader035/viewer/2022062518/56814109550346895daccfd3/html5/thumbnails/2.jpg)
Perspective Research Techniques Accessing, Examining and Saving Data Univariate Analysis – Descriptive Statistics Constructing (Manipulating) Variables Association – Bivariate Analysis Association – Multivariate Analysis Comparing Group Means – Bivariate Multivariate Analysis - Regression
![Page 3: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE](https://reader035.vdocuments.net/reader035/viewer/2022062518/56814109550346895daccfd3/html5/thumbnails/3.jpg)
Lecture 8
Multivariate AnalysisWith Logistic Regression
![Page 4: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE](https://reader035.vdocuments.net/reader035/viewer/2022062518/56814109550346895daccfd3/html5/thumbnails/4.jpg)
Logistic Regression Analyzes relationships of multiple
independent variables to one dependent variable
Unlike in linear regression, the dependent variable must be binary, a categorical variable with 2 categories If the variable is not binary, it can be
recoded to a binary form It estimates the probability that an
event will occur
![Page 5: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE](https://reader035.vdocuments.net/reader035/viewer/2022062518/56814109550346895daccfd3/html5/thumbnails/5.jpg)
A Bivariate Example
Relationship between political orientation and gun ownership
Use the GSS98 dataset
![Page 6: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE](https://reader035.vdocuments.net/reader035/viewer/2022062518/56814109550346895daccfd3/html5/thumbnails/6.jpg)
A Bivariate Example
First Step: Examine the structure of the
dependent and independent variables. Ensure that:
The dependent variable, OWNGUN, is binary
The independent variable, POLVIEWS, is numerical
![Page 7: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE](https://reader035.vdocuments.net/reader035/viewer/2022062518/56814109550346895daccfd3/html5/thumbnails/7.jpg)
A Bivariate Example
![Page 8: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE](https://reader035.vdocuments.net/reader035/viewer/2022062518/56814109550346895daccfd3/html5/thumbnails/8.jpg)
A Bivariate Example
![Page 9: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE](https://reader035.vdocuments.net/reader035/viewer/2022062518/56814109550346895daccfd3/html5/thumbnails/9.jpg)
A Bivariate Example
![Page 10: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE](https://reader035.vdocuments.net/reader035/viewer/2022062518/56814109550346895daccfd3/html5/thumbnails/10.jpg)
A Bivariate Example
•OWNGUN is a categorical variable with 2 values: NO & YES
•The remaining values are coded as missing
![Page 11: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE](https://reader035.vdocuments.net/reader035/viewer/2022062518/56814109550346895daccfd3/html5/thumbnails/11.jpg)
A Bivariate Example
•POLVIEWS should be numerical
•It is really an ordinal variable but it can be considered numeric
![Page 12: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE](https://reader035.vdocuments.net/reader035/viewer/2022062518/56814109550346895daccfd3/html5/thumbnails/12.jpg)
A Bivariate Example
Second Step: Test the relationship Analyze
Regression Binary Logistic
Dependent: OWNGUN Covariates: POLVIEWS OK
![Page 13: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE](https://reader035.vdocuments.net/reader035/viewer/2022062518/56814109550346895daccfd3/html5/thumbnails/13.jpg)
A Bivariate Example
![Page 14: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE](https://reader035.vdocuments.net/reader035/viewer/2022062518/56814109550346895daccfd3/html5/thumbnails/14.jpg)
A Bivariate Example
![Page 15: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE](https://reader035.vdocuments.net/reader035/viewer/2022062518/56814109550346895daccfd3/html5/thumbnails/15.jpg)
A Bivariate Example
![Page 16: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE](https://reader035.vdocuments.net/reader035/viewer/2022062518/56814109550346895daccfd3/html5/thumbnails/16.jpg)
A Bivariate Example
The logistic regression coefficients (B) indicate the direction and strength of the relationship
They represent the effect of a one unit change in the level of POLVIEWS on the log-odds of OWNGUN. The relationship is positive (0.19): the more conservative a person is, the more likely he/she will own a gun
The odds ratio (Exp(B)) is how many times higher the odds of occurrence are for each one-unit increase in POLVIEWS: 1.21
![Page 17: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE](https://reader035.vdocuments.net/reader035/viewer/2022062518/56814109550346895daccfd3/html5/thumbnails/17.jpg)
Making Predictions What is the probability of gun ownership for
someone extremely conservative (POLVIEWS=7)? Log-odds = A + B(X) Odds = Exp(A + B(X)) But Probability = Odss/1 + Odds Probability = (Exp(A+b(X))/1+Exp(A+B(X)) Probability = (Exp(-1.379+0.19(7))/(1+Exp(-
1.379+0.19(7)) = 0.95/1.95 = 0.49
![Page 18: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE](https://reader035.vdocuments.net/reader035/viewer/2022062518/56814109550346895daccfd3/html5/thumbnails/18.jpg)
Graphing the Regression line
Find the predicted probabilities for different values of the independent variable
Plot the values
![Page 19: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE](https://reader035.vdocuments.net/reader035/viewer/2022062518/56814109550346895daccfd3/html5/thumbnails/19.jpg)
Graphing the Regression line
![Page 20: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE](https://reader035.vdocuments.net/reader035/viewer/2022062518/56814109550346895daccfd3/html5/thumbnails/20.jpg)
Graphing the Regression line
![Page 21: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE](https://reader035.vdocuments.net/reader035/viewer/2022062518/56814109550346895daccfd3/html5/thumbnails/21.jpg)
Graphing the Regression line
![Page 22: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE](https://reader035.vdocuments.net/reader035/viewer/2022062518/56814109550346895daccfd3/html5/thumbnails/22.jpg)
Graphing the Regression line
![Page 23: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE](https://reader035.vdocuments.net/reader035/viewer/2022062518/56814109550346895daccfd3/html5/thumbnails/23.jpg)
Graphing the Regression line
![Page 24: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE](https://reader035.vdocuments.net/reader035/viewer/2022062518/56814109550346895daccfd3/html5/thumbnails/24.jpg)
Graphing the Regression line
![Page 25: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE](https://reader035.vdocuments.net/reader035/viewer/2022062518/56814109550346895daccfd3/html5/thumbnails/25.jpg)
Graphing the Regression line
![Page 26: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE](https://reader035.vdocuments.net/reader035/viewer/2022062518/56814109550346895daccfd3/html5/thumbnails/26.jpg)
Graphing the Regression line
![Page 27: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE](https://reader035.vdocuments.net/reader035/viewer/2022062518/56814109550346895daccfd3/html5/thumbnails/27.jpg)
Graphing the Regression line
![Page 28: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE](https://reader035.vdocuments.net/reader035/viewer/2022062518/56814109550346895daccfd3/html5/thumbnails/28.jpg)
Graphing the Regression line
Graph is central portion of sigmoid curve: probability of 0.2 to 0.5
![Page 29: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE](https://reader035.vdocuments.net/reader035/viewer/2022062518/56814109550346895daccfd3/html5/thumbnails/29.jpg)
Graphing the Regression line
The model Chi Square tests if the model predicts occurrence better than simple chance: P<0.001
![Page 30: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE](https://reader035.vdocuments.net/reader035/viewer/2022062518/56814109550346895daccfd3/html5/thumbnails/30.jpg)
Multivariate Logistic Regression
Ensure all variables are structured correctly
![Page 31: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE](https://reader035.vdocuments.net/reader035/viewer/2022062518/56814109550346895daccfd3/html5/thumbnails/31.jpg)
Multivariate Logistic Regression
![Page 32: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE](https://reader035.vdocuments.net/reader035/viewer/2022062518/56814109550346895daccfd3/html5/thumbnails/32.jpg)
Multivariate Logistic Regression
![Page 33: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE](https://reader035.vdocuments.net/reader035/viewer/2022062518/56814109550346895daccfd3/html5/thumbnails/33.jpg)
Multivariate Logistic Regression
![Page 34: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE](https://reader035.vdocuments.net/reader035/viewer/2022062518/56814109550346895daccfd3/html5/thumbnails/34.jpg)
Multivariate Logistic Regression
![Page 35: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE](https://reader035.vdocuments.net/reader035/viewer/2022062518/56814109550346895daccfd3/html5/thumbnails/35.jpg)
Multivariate Logistic Regression
Childs is the number of children in the family
We want to know if having ANY children influences gun ownership
CHILDS needs to be recoded
![Page 36: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE](https://reader035.vdocuments.net/reader035/viewer/2022062518/56814109550346895daccfd3/html5/thumbnails/36.jpg)
Recoding CHILDS
![Page 37: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE](https://reader035.vdocuments.net/reader035/viewer/2022062518/56814109550346895daccfd3/html5/thumbnails/37.jpg)
Recoding CHILDS
![Page 38: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE](https://reader035.vdocuments.net/reader035/viewer/2022062518/56814109550346895daccfd3/html5/thumbnails/38.jpg)
Recoding CHILDS
![Page 39: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE](https://reader035.vdocuments.net/reader035/viewer/2022062518/56814109550346895daccfd3/html5/thumbnails/39.jpg)
Recoding CHILDS
![Page 40: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE](https://reader035.vdocuments.net/reader035/viewer/2022062518/56814109550346895daccfd3/html5/thumbnails/40.jpg)
Recoding CHILDS
![Page 41: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE](https://reader035.vdocuments.net/reader035/viewer/2022062518/56814109550346895daccfd3/html5/thumbnails/41.jpg)
Recoding CHILDS
![Page 42: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE](https://reader035.vdocuments.net/reader035/viewer/2022062518/56814109550346895daccfd3/html5/thumbnails/42.jpg)
Recoding CHILDS
![Page 43: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE](https://reader035.vdocuments.net/reader035/viewer/2022062518/56814109550346895daccfd3/html5/thumbnails/43.jpg)
Multivariate Logistic Regression
![Page 44: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE](https://reader035.vdocuments.net/reader035/viewer/2022062518/56814109550346895daccfd3/html5/thumbnails/44.jpg)
Multivariate Logistic Regression
![Page 45: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE](https://reader035.vdocuments.net/reader035/viewer/2022062518/56814109550346895daccfd3/html5/thumbnails/45.jpg)
Multivariate Logistic Regression
![Page 46: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE](https://reader035.vdocuments.net/reader035/viewer/2022062518/56814109550346895daccfd3/html5/thumbnails/46.jpg)
Multivariate Logistic Regression
![Page 47: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE](https://reader035.vdocuments.net/reader035/viewer/2022062518/56814109550346895daccfd3/html5/thumbnails/47.jpg)
Multivariate Logistic Regression
![Page 48: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE](https://reader035.vdocuments.net/reader035/viewer/2022062518/56814109550346895daccfd3/html5/thumbnails/48.jpg)
Multivariate Logistic Regression
![Page 49: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE](https://reader035.vdocuments.net/reader035/viewer/2022062518/56814109550346895daccfd3/html5/thumbnails/49.jpg)
Multivariate Logistic Regression
![Page 50: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE](https://reader035.vdocuments.net/reader035/viewer/2022062518/56814109550346895daccfd3/html5/thumbnails/50.jpg)
Multivariate Logistic Regression
Many variables are statistically significant:
•Conservative values increase likelihood of owning a gun
•Having children increases the probability of having a gun
![Page 51: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE](https://reader035.vdocuments.net/reader035/viewer/2022062518/56814109550346895daccfd3/html5/thumbnails/51.jpg)
Making Predictions
![Page 52: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE](https://reader035.vdocuments.net/reader035/viewer/2022062518/56814109550346895daccfd3/html5/thumbnails/52.jpg)
Making Predictions
![Page 53: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE](https://reader035.vdocuments.net/reader035/viewer/2022062518/56814109550346895daccfd3/html5/thumbnails/53.jpg)
Making Predictions
![Page 54: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE](https://reader035.vdocuments.net/reader035/viewer/2022062518/56814109550346895daccfd3/html5/thumbnails/54.jpg)
Making Predictions
![Page 55: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE](https://reader035.vdocuments.net/reader035/viewer/2022062518/56814109550346895daccfd3/html5/thumbnails/55.jpg)
Making Predictions
![Page 56: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE](https://reader035.vdocuments.net/reader035/viewer/2022062518/56814109550346895daccfd3/html5/thumbnails/56.jpg)
Making Predictions
![Page 57: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE](https://reader035.vdocuments.net/reader035/viewer/2022062518/56814109550346895daccfd3/html5/thumbnails/57.jpg)
Graphing the equation
![Page 58: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE](https://reader035.vdocuments.net/reader035/viewer/2022062518/56814109550346895daccfd3/html5/thumbnails/58.jpg)
Graphing the equation
![Page 59: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE](https://reader035.vdocuments.net/reader035/viewer/2022062518/56814109550346895daccfd3/html5/thumbnails/59.jpg)
Graphing the equation
![Page 60: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE](https://reader035.vdocuments.net/reader035/viewer/2022062518/56814109550346895daccfd3/html5/thumbnails/60.jpg)
Graphing the equation
![Page 61: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE](https://reader035.vdocuments.net/reader035/viewer/2022062518/56814109550346895daccfd3/html5/thumbnails/61.jpg)
Multivariate Logistic Regression