+ All Categories
Home > Documents > APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE

APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE

Date post: 10-Jan-2016
Category:
Upload: wallis
View: 36 times
Download: 0 times
Share this document with a friend
Description:
APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE. CJ 525 MONMOUTH UNIVERSITY Juan P. Rodriguez. Perspective. Research Techniques Accessing, Examining and Saving Data Univariate Analysis – Descriptive Statistics Constructing (Manipulating) Variables Association – Bivariate Analysis - PowerPoint PPT Presentation
Popular Tags:
61
APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE CJ 525 MONMOUTH UNIVERSITY Juan P. Rodriguez
Transcript
Page 1: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE

APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE

CJ 525 MONMOUTH UNIVERSITY

Juan P. Rodriguez

Page 2: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE

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

Lecture 8

Multivariate AnalysisWith Logistic Regression

Page 4: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE

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

A Bivariate Example

Relationship between political orientation and gun ownership

Use the GSS98 dataset

Page 6: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE

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

A Bivariate Example

Page 8: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE

A Bivariate Example

Page 9: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE

A Bivariate Example

Page 10: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE

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

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

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

A Bivariate Example

Page 14: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE

A Bivariate Example

Page 15: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE

A Bivariate Example

Page 16: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE

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

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

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

Graphing the Regression line

Page 20: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE

Graphing the Regression line

Page 21: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE

Graphing the Regression line

Page 22: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE

Graphing the Regression line

Page 23: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE

Graphing the Regression line

Page 24: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE

Graphing the Regression line

Page 25: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE

Graphing the Regression line

Page 26: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE

Graphing the Regression line

Page 27: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE

Graphing the Regression line

Page 28: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE

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

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

Multivariate Logistic Regression

Ensure all variables are structured correctly

Page 31: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE

Multivariate Logistic Regression

Page 32: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE

Multivariate Logistic Regression

Page 33: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE

Multivariate Logistic Regression

Page 34: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE

Multivariate Logistic Regression

Page 35: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE

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

Recoding CHILDS

Page 37: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE

Recoding CHILDS

Page 38: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE

Recoding CHILDS

Page 39: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE

Recoding CHILDS

Page 40: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE

Recoding CHILDS

Page 41: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE

Recoding CHILDS

Page 42: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE

Recoding CHILDS

Page 43: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE

Multivariate Logistic Regression

Page 44: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE

Multivariate Logistic Regression

Page 45: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE

Multivariate Logistic Regression

Page 46: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE

Multivariate Logistic Regression

Page 47: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE

Multivariate Logistic Regression

Page 48: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE

Multivariate Logistic Regression

Page 49: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE

Multivariate Logistic Regression

Page 50: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE

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

Making Predictions

Page 52: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE

Making Predictions

Page 53: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE

Making Predictions

Page 54: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE

Making Predictions

Page 55: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE

Making Predictions

Page 56: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE

Making Predictions

Page 57: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE

Graphing the equation

Page 58: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE

Graphing the equation

Page 59: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE

Graphing the equation

Page 60: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE

Graphing the equation

Page 61: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE

Multivariate Logistic Regression


Recommended