applied data analysis in criminal justice
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 PresentationTRANSCRIPT
![Page 1: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE](https://reader036.vdocuments.us/reader036/viewer/2022062322/568143ab550346895db034d5/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://reader036.vdocuments.us/reader036/viewer/2022062322/568143ab550346895db034d5/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://reader036.vdocuments.us/reader036/viewer/2022062322/568143ab550346895db034d5/html5/thumbnails/3.jpg)
Lecture 6
Comparing Group MeansBivariate Analysis
![Page 4: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE](https://reader036.vdocuments.us/reader036/viewer/2022062322/568143ab550346895db034d5/html5/thumbnails/4.jpg)
Relationships between categorical and numerical variables ANOVA:
Compares group means Test for significance
Bar Charts and Box Plots Tests for Differences in means
![Page 5: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE](https://reader036.vdocuments.us/reader036/viewer/2022062322/568143ab550346895db034d5/html5/thumbnails/5.jpg)
One Way ANOVA
How much the Mean Values of a Numerical Variable differ among the categories of a categorical variable
![Page 6: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE](https://reader036.vdocuments.us/reader036/viewer/2022062322/568143ab550346895db034d5/html5/thumbnails/6.jpg)
One Way ANOVA
Example: Relationship between television viewing and marital status in GSS98 dataset TVHOURS: numerical variable –
number of hours spent watching TV per day
MARITAL: categorical variable – married, widowed, divorced, separated and never married
![Page 7: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE](https://reader036.vdocuments.us/reader036/viewer/2022062322/568143ab550346895db034d5/html5/thumbnails/7.jpg)
One Way ANOVA
Null Hypothesis: No relationship - People in all
groups watch, on average, the same amount of television
Alternate Hypothesis: There is a relationship – At least 2
of the categories differ in the number of hours of television watched
![Page 8: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE](https://reader036.vdocuments.us/reader036/viewer/2022062322/568143ab550346895db034d5/html5/thumbnails/8.jpg)
Analysis Of Variance
![Page 9: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE](https://reader036.vdocuments.us/reader036/viewer/2022062322/568143ab550346895db034d5/html5/thumbnails/9.jpg)
Analysis Of Variance
![Page 10: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE](https://reader036.vdocuments.us/reader036/viewer/2022062322/568143ab550346895db034d5/html5/thumbnails/10.jpg)
Analysis Of Variance
![Page 11: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE](https://reader036.vdocuments.us/reader036/viewer/2022062322/568143ab550346895db034d5/html5/thumbnails/11.jpg)
Analysis Of Variance
![Page 12: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE](https://reader036.vdocuments.us/reader036/viewer/2022062322/568143ab550346895db034d5/html5/thumbnails/12.jpg)
Analysis Of Variance
![Page 13: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE](https://reader036.vdocuments.us/reader036/viewer/2022062322/568143ab550346895db034d5/html5/thumbnails/13.jpg)
Analysis Of Variance
![Page 14: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE](https://reader036.vdocuments.us/reader036/viewer/2022062322/568143ab550346895db034d5/html5/thumbnails/14.jpg)
Analysis Of Variance
![Page 15: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE](https://reader036.vdocuments.us/reader036/viewer/2022062322/568143ab550346895db034d5/html5/thumbnails/15.jpg)
Analysis Of Variance
![Page 16: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE](https://reader036.vdocuments.us/reader036/viewer/2022062322/568143ab550346895db034d5/html5/thumbnails/16.jpg)
Analysis Of Variance
![Page 17: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE](https://reader036.vdocuments.us/reader036/viewer/2022062322/568143ab550346895db034d5/html5/thumbnails/17.jpg)
Analysis Of Variance
![Page 18: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE](https://reader036.vdocuments.us/reader036/viewer/2022062322/568143ab550346895db034d5/html5/thumbnails/18.jpg)
Analysis Of Variance
![Page 19: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE](https://reader036.vdocuments.us/reader036/viewer/2022062322/568143ab550346895db034d5/html5/thumbnails/19.jpg)
Analysis Of Variance
The differences in the Mean values for these groups are so large that are not likely due to chance: There is a significant relationship
between marital status and television viewing
![Page 20: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE](https://reader036.vdocuments.us/reader036/viewer/2022062322/568143ab550346895db034d5/html5/thumbnails/20.jpg)
Graphing ANOVA Results
Bar charts Used to present data to general
people or to people not well versed in statistics
Box Plots Show both the central tendencies and
the distributions of each category
![Page 21: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE](https://reader036.vdocuments.us/reader036/viewer/2022062322/568143ab550346895db034d5/html5/thumbnails/21.jpg)
Bar Chart
![Page 22: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE](https://reader036.vdocuments.us/reader036/viewer/2022062322/568143ab550346895db034d5/html5/thumbnails/22.jpg)
Bar Chart
![Page 23: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE](https://reader036.vdocuments.us/reader036/viewer/2022062322/568143ab550346895db034d5/html5/thumbnails/23.jpg)
Bar Chart
![Page 24: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE](https://reader036.vdocuments.us/reader036/viewer/2022062322/568143ab550346895db034d5/html5/thumbnails/24.jpg)
Bar Chart
![Page 25: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE](https://reader036.vdocuments.us/reader036/viewer/2022062322/568143ab550346895db034d5/html5/thumbnails/25.jpg)
Bar Chart
![Page 26: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE](https://reader036.vdocuments.us/reader036/viewer/2022062322/568143ab550346895db034d5/html5/thumbnails/26.jpg)
Bar Chart
![Page 27: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE](https://reader036.vdocuments.us/reader036/viewer/2022062322/568143ab550346895db034d5/html5/thumbnails/27.jpg)
Bar Charts- Results
Separated and widowed people watch more TV, on the average, than the other categories of people
![Page 28: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE](https://reader036.vdocuments.us/reader036/viewer/2022062322/568143ab550346895db034d5/html5/thumbnails/28.jpg)
Box Plots
Depict differences in both the spread and center among groups of means.
By placing box plots side by side, it is easy to compare distributions
![Page 29: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE](https://reader036.vdocuments.us/reader036/viewer/2022062322/568143ab550346895db034d5/html5/thumbnails/29.jpg)
Box Plots
![Page 30: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE](https://reader036.vdocuments.us/reader036/viewer/2022062322/568143ab550346895db034d5/html5/thumbnails/30.jpg)
Box Plots
![Page 31: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE](https://reader036.vdocuments.us/reader036/viewer/2022062322/568143ab550346895db034d5/html5/thumbnails/31.jpg)
Box Plots
![Page 32: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE](https://reader036.vdocuments.us/reader036/viewer/2022062322/568143ab550346895db034d5/html5/thumbnails/32.jpg)
Box Plots
![Page 33: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE](https://reader036.vdocuments.us/reader036/viewer/2022062322/568143ab550346895db034d5/html5/thumbnails/33.jpg)
Box Plots
![Page 34: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE](https://reader036.vdocuments.us/reader036/viewer/2022062322/568143ab550346895db034d5/html5/thumbnails/34.jpg)
Box Plots
![Page 35: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE](https://reader036.vdocuments.us/reader036/viewer/2022062322/568143ab550346895db034d5/html5/thumbnails/35.jpg)
Post-hoc Tests ANOVA found significant differences
among means with respect to TV viewing
Are only 2 means significantly different?
Are all of them are significantly different?
Or anything in between?. Post-hoc tests tell us this
![Page 36: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE](https://reader036.vdocuments.us/reader036/viewer/2022062322/568143ab550346895db034d5/html5/thumbnails/36.jpg)
Post-hoc Tests
![Page 37: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE](https://reader036.vdocuments.us/reader036/viewer/2022062322/568143ab550346895db034d5/html5/thumbnails/37.jpg)
Post-hoc Tests
![Page 38: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE](https://reader036.vdocuments.us/reader036/viewer/2022062322/568143ab550346895db034d5/html5/thumbnails/38.jpg)
Post-hoc Tests
![Page 39: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE](https://reader036.vdocuments.us/reader036/viewer/2022062322/568143ab550346895db034d5/html5/thumbnails/39.jpg)
Post-hoc Tests
![Page 40: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE](https://reader036.vdocuments.us/reader036/viewer/2022062322/568143ab550346895db034d5/html5/thumbnails/40.jpg)
Post-hoc Tests
![Page 41: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE](https://reader036.vdocuments.us/reader036/viewer/2022062322/568143ab550346895db034d5/html5/thumbnails/41.jpg)
Post-hoc Tests
![Page 42: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE](https://reader036.vdocuments.us/reader036/viewer/2022062322/568143ab550346895db034d5/html5/thumbnails/42.jpg)
Post-hoc Tests
![Page 43: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE](https://reader036.vdocuments.us/reader036/viewer/2022062322/568143ab550346895db034d5/html5/thumbnails/43.jpg)
Post-hoc Tests
![Page 44: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE](https://reader036.vdocuments.us/reader036/viewer/2022062322/568143ab550346895db034d5/html5/thumbnails/44.jpg)
Post-hoc Tests
![Page 45: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE](https://reader036.vdocuments.us/reader036/viewer/2022062322/568143ab550346895db034d5/html5/thumbnails/45.jpg)
Assumptions in ANOVA Within each sample, the values are
independent, and identically normally distributed (same mean and variance).
The samples are independent of each other. The different samples are all assumed to come
from populations with the same variance, allowing for a pooled estimate of the variance.
For a multiple comparisons test of the sample means to be meaningful, the populations are viewed as fixed, so that the populations in the experiment include all those of interest.
![Page 46: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE](https://reader036.vdocuments.us/reader036/viewer/2022062322/568143ab550346895db034d5/html5/thumbnails/46.jpg)
Assumptions of ANOVA Distributions are normal:
The one-way ANOVA's F test is not affected much if the population distributions are skewed unless the sample sizes are seriously unbalanced.
If the sample sizes are balanced, the F test will not be seriously affected by light-tailedness or heavy-tailedness, unless the sample sizes are small (less than 5), or the departure from normality is extreme (kurtosis less than -1 or greater than 2).
In cases of nonnormality, a nonparametric test or employing a transformation may result in a more powerful test.
![Page 47: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE](https://reader036.vdocuments.us/reader036/viewer/2022062322/568143ab550346895db034d5/html5/thumbnails/47.jpg)
Assumptions of ANOVA Samples are Independent
A lack of independence within a sample is often caused by the existence of an implicit factor in the data.
Values collected over time may be serially correlated (here time is the implicit factor).
If the data are in a particular order, consider the possibility of dependence. (If the row order of the data reflect the order in which the data were collected, an index plot of the data [data value plotted against row number] can reveal patterns in the plot that could suggest possible time effects.)
![Page 48: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE](https://reader036.vdocuments.us/reader036/viewer/2022062322/568143ab550346895db034d5/html5/thumbnails/48.jpg)
Assumptions of ANOVA Variances are homogeneous:
Assessed by examination of the relative size of the sample variances, either informally (including graphically), or by a robust variance test such as Levene's test.
The risk of having unequal sample variances is incorrectly reporting a significant difference in the means when none exists. The risk is higher with greater differences between variances, particularly if there is one sample variance very much larger than the others.
![Page 49: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE](https://reader036.vdocuments.us/reader036/viewer/2022062322/568143ab550346895db034d5/html5/thumbnails/49.jpg)
Assumptions of ANOVA Variances are homogeneous (continued)
The F test is fairly robust against inequality of variances if the sample sizes are equal
If both nonnormality and unequal variances are present, use a transformation
A nonparametric test like the Kruskal-Wallis test still assumes that the population
variances are comparable.
![Page 50: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE](https://reader036.vdocuments.us/reader036/viewer/2022062322/568143ab550346895db034d5/html5/thumbnails/50.jpg)
Assumptions - Normality
![Page 51: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE](https://reader036.vdocuments.us/reader036/viewer/2022062322/568143ab550346895db034d5/html5/thumbnails/51.jpg)
Assumptions - Normality
![Page 52: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE](https://reader036.vdocuments.us/reader036/viewer/2022062322/568143ab550346895db034d5/html5/thumbnails/52.jpg)
Assumptions - Normality
![Page 53: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE](https://reader036.vdocuments.us/reader036/viewer/2022062322/568143ab550346895db034d5/html5/thumbnails/53.jpg)
Variance Homogeneity
![Page 54: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE](https://reader036.vdocuments.us/reader036/viewer/2022062322/568143ab550346895db034d5/html5/thumbnails/54.jpg)
Variance Homogeneity
![Page 55: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE](https://reader036.vdocuments.us/reader036/viewer/2022062322/568143ab550346895db034d5/html5/thumbnails/55.jpg)
Variance Homogeneity
![Page 56: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE](https://reader036.vdocuments.us/reader036/viewer/2022062322/568143ab550346895db034d5/html5/thumbnails/56.jpg)
Variance Homogeneity
![Page 57: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE](https://reader036.vdocuments.us/reader036/viewer/2022062322/568143ab550346895db034d5/html5/thumbnails/57.jpg)
t Tests
Compares the means of 2 groups Independent samples Paired Samples
![Page 58: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE](https://reader036.vdocuments.us/reader036/viewer/2022062322/568143ab550346895db034d5/html5/thumbnails/58.jpg)
t Test - Independent
![Page 59: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE](https://reader036.vdocuments.us/reader036/viewer/2022062322/568143ab550346895db034d5/html5/thumbnails/59.jpg)
t Test - Independent
![Page 60: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE](https://reader036.vdocuments.us/reader036/viewer/2022062322/568143ab550346895db034d5/html5/thumbnails/60.jpg)
t Test - Independent
![Page 61: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE](https://reader036.vdocuments.us/reader036/viewer/2022062322/568143ab550346895db034d5/html5/thumbnails/61.jpg)
t Test - Independent
![Page 62: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE](https://reader036.vdocuments.us/reader036/viewer/2022062322/568143ab550346895db034d5/html5/thumbnails/62.jpg)
t Test - Independent
![Page 63: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE](https://reader036.vdocuments.us/reader036/viewer/2022062322/568143ab550346895db034d5/html5/thumbnails/63.jpg)
t Test - Paired
Categories are related Are rates of incarceration the same
for black (PRC61) and whites (PRC58) in the states dataset?
Assumption is that states with high incarceration rates will tend to have high rates for blacks and whites
![Page 64: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE](https://reader036.vdocuments.us/reader036/viewer/2022062322/568143ab550346895db034d5/html5/thumbnails/64.jpg)
t Test - Paired
![Page 65: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE](https://reader036.vdocuments.us/reader036/viewer/2022062322/568143ab550346895db034d5/html5/thumbnails/65.jpg)
t Test - Paired
![Page 66: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE](https://reader036.vdocuments.us/reader036/viewer/2022062322/568143ab550346895db034d5/html5/thumbnails/66.jpg)
t Test - Paired
![Page 67: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE](https://reader036.vdocuments.us/reader036/viewer/2022062322/568143ab550346895db034d5/html5/thumbnails/67.jpg)
t Test - Paired
![Page 68: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE](https://reader036.vdocuments.us/reader036/viewer/2022062322/568143ab550346895db034d5/html5/thumbnails/68.jpg)
t Test - Paired
![Page 69: APPLIED DATA ANALYSIS IN CRIMINAL JUSTICE](https://reader036.vdocuments.us/reader036/viewer/2022062322/568143ab550346895db034d5/html5/thumbnails/69.jpg)
t Test - Paired