1 Instructions

  • This is an individual assignment. Submit your .Rmd and “knitted”.html files through Collab.

  • Upload your html file on RPubs and include the link when you submit your submission files on Collab.

  • Please don’t use ggplot2 for this assignment. We’ll use ggplot2 almost all the times after this assignment.

2 Part 1

  • Use the occupational experience variable (“oexp”) of the income_example dataset and plot

    • a histogram,
    • a kernel density estimate,
    • a boxplot of “oexp”,
    • a set of boxplots showing the distribution of “oexp” by sex crossed with occupational status (“occ”).
  • You can either produce four separate but small plots, or you can use par(mfrow = c(2, 2)) to create a plotting region consisting of four subplots.

  • Briefly describe the distributions of occupational experience in words (also include your plots and the R syntax).

[“Play” with the hist() and density() functions; for instance, by choosing a different number of bins or different break points for the hist() function, or different bandwidths using the adjust argument in density(). See also the corresponding help files and the examples given there. Only include the histogram and density estimate you find most informative. Also, add useful axis-labels and a title using the following arguments inside the plotting functions: xlab, ylab, main. Use the help ?par() for the description of many more plotting parameter.]

[That’s how the plots could look like – but you have to do it with your group;-)]

library(foreign)
incex <- read.table("income_exmpl.dat", header = T, sep = "\t")
incex$occ <- factor(incex$occ, levels = c('low', 'med.', 'high'))
incex$edu <- factor(incex$edu, levels = c('low', 'med.', 'high'))
incex$sex <- factor(incex$sex, levels = c('m', 'f'), labels = c('male', 'female'))
attach(incex)
mfrow = c(2,2)
hist(oexp, seq(0, 48, 2), xlab = "Occ. Experience (in years)", main = "Histogram of Occ. Experience")

kden <- function(x, h, x.val = seq(min(x)-2*h, max(x)+2*h, length = 200)) {
  x.val <- sort(unique(x.val))
  n <- length(x)  
  dens.f <- function(x.v) {
    z <- (x.v - x) / h
    d <- ifelse(z > -1 & z < 1, .5, 0)
    sum(d) / n / h
  }
  dens <- sapply(x.val, dens.f)
  data.frame(x = x.val, y = dens)
}
den <- kden(incex$oexp, h = 1)
den$x <- den$x - 100
plot(den, type = "s", lwd = 3, xlab = "Occ. Experience (in years)", ylab = "Density", main = "Density Estimate of Occ. Experience")

boxplot(oexp, horizontal = T, xlab = "Occ. Experience (in years)", main = "Boxplot of Occ. Experience")

boxplot(oexp ~ sex + occ, col = rep(c("blue", "red"), each = 3), ylab = "Occ. Experience (in years)", names = c("male\nlow", "female\nlow", "male\nmed.", "female\nmed.", "male\nhigh", "female\nhigh"), main = "Occ. Experience by Sex and Occ. Status") 

levels(sex)
## [1] "male"   "female"

From the histogram and density estimates, it is evident through the plots’ even distribution that a uniform distribution is present for the variable Occupational Experience (oexp).

As already discussed, the histogram and kernel density plots show the frequency and density of the variable oexp, respectively. The boxplot reveals the spread of the variable and the plot with multiple boxplots show the spread of the variable subsetted by sex and occupational status.

3 Part 2

  • Download the SCS Data set from Collab (there you also find a separate file containing a brief description of variables). Then investigate the relationship between the mathematics achievement score (“mathpre”) and the math anxiety score (“mars”) by plotting the data and the path of means.
  1. Produce a scatterplot between “mathpre” and “mars”. You might consider using jitter() or alpha() for avoiding overlying points.
scs <- read.spss("SCS_QE.sav", to.data.frame = TRUE)
## re-encoding from CP1252
## Warning in read.spss("SCS_QE.sav", to.data.frame = TRUE): Undeclared level(s) 0
## added in variable: married
plot(jitter(scs$mathpre, factor = 3), jitter(scs$mars, factor = 3), xlab = "Mathematics Achievement Score", ylab = "Math Anxiety Score")

  1. Draw a conditioning plot for female and male students (variable “male”). Include “| male” in your first argument to create a conditioning plot.
coplot(mars ~ mathpre | male, data = scs)

scs2 <- scs[which(scs$male == "female"),]
scs3 <- scs[which(scs$male == "male"),]
mean(scs$mars)
## [1] 58.02679
mean(scs2$mars)
## [1] 61.55215
mean(scs3$mars)
## [1] 47.03595
  1. Describe in words the relation between math scores and math anxiety. Do you find evidence of Simpson’s Paradox?

There is a noticeable negative correlation between math scores and math anxiety. When subset by sex, both plots still demonstrate a negative correlation, meaning that the relationship between math scores and math anxiety is consistent and thus no evidence of Simpson’s Paradox is found.

describe your plots. As noted, above is a scatterplot showing the relationship between math scores and math anxiety as well as a conditioning plot demonstrating this relationship for male and female students.

4 Part 3

  • Use a dataset that is available in data repositories (e.g., kaggle)

  • Briefly describe the dataset you’re using (e.g., means to access data, context, sample, variables, etc…)

    • This data contains over 65,000 incidences of traffic-related violations and is categorized by time and date of violation, demographic information about the violator (age, race, gender, etc.), and details of the incident (whether the person was arrested, result of violation).
  • Re-do Part 2, i.e.,

    • produce a scatterplot between “A” and “B”. You might consider using jitter() or alpha() for avoiding overlying points.
    • draw a scatterplot plot conditioning on variable “C”. Include “| C” in your first argument to create a conditioning plot.
    • describe in words the relation between “A” and “B.” Do you find evidence of Simpson’s Paradox?
trafficViolations <- read.csv(file = "traffic_violaions.csv")
trafficViolations$stop_time <- as.integer(gsub(":", "", trafficViolations$stop_time))
plot(jitter(trafficViolations$driver_age, factor = 9), jitter(trafficViolations$stop_time, factor = 9), xlab = "Age of Driver", ylab = "Time of Stop")

coplot(stop_time ~ driver_age | driver_gender, data = trafficViolations)

## 
##  Missing rows: 26, 30, 53, 111, 125, 147, 151, 206, 282, 315, 319, 332, 397, 415, 456, 586, 639, 640, 641, 649, 700, 720, 728, 731, 749, 836, 871, 894, 936, 970, 1006, 1039, 1040, 1090, 1181, 1201, 1309, 1313, 1349, 1376, 1377, 1386, 1416, 1418, 1480, 1484, 1507, 1560, 1741, 1753, 1754, 1761, 1776, 1790, 1831, 1903, 1921, 1925, 2041, 2169, 2273, 2279, 2305, 2339, 2374, 2378, 2430, 2513, 2594, 2610, 2655, 2659, 2678, 2695, 2709, 2820, 2879, 2943, 2946, 2993, 2996, 3005, 3076, 3110, 3127, 3143, 3153, 3272, 3314, 3344, 3364, 3367, 3368, 3381, 3386, 3393, 3408, 3409, 3431, 3527, 3544, 3580, 3589, 3590, 3594, 3597, 3630, 3683, 3688, 3708, 3730, 3737, 3738, 3759, 3777, 3833, 3851, 3865, 3876, 3891, 3919, 3923, 3985, 3992, 4066, 4078, 4122, 4169, 4218, 4240, 4242, 4254, 4279, 4280, 4313, 4331, 4334, 4343, 4351, 4368, 4375, 4398, 4486, 4493, 4510, 4524, 4550, 4612, 4632, 4656, 4660, 4662, 4674, 4682, 4686, 4717, 4718, 4733, 4754, 4766, 4769, 4775, 4797, 4885, 4911, 5000, 5021, 5022, 5030, 5036, 5055, 5057, 5070, 5072, 5090, 5105, 5129, 5133, 5151, 5169, 5184, 5195, 5201, 5256, 5268, 5353, 5358, 5445, 5455, 5467, 5539, 5581, 5640, 5647, 5703, 5730, 5733, 5756, 5759, 5794, 5807, 5808, 5809, 5864, 5872, 5907, 5955, 5983, 6002, 6017, 6035, 6074, 6094, 6130, 6150, 6160, 6181, 6192, 6193, 6204, 6211, 6212, 6230, 6251, 6284, 6292, 6295, 6357, 6386, 6400, 6401, 6461, 6464, 6482, 6493, 6512, 6528, 6529, 6532, 6546, 6553, 6556, 6589, 6591, 6614, 6615, 6666, 6674, 6692, 6722, 6729, 6747, 6751, 6778, 6788, 6799, 6802, 6811, 6812, 6832, 6835, 6861, 6883, 6886, 6913, 6914, 6925, 6955, 6956, 6977, 6986, 7024, 7038, 7046, 7051, 7059, 7079, 7081, 7100, 7111, 7116, 7119, 7130, 7162, 7191, 7198, 7224, 7248, 7251, 7253, 7258, 7302, 7313, 7314, 7319, 7323, 7365, 7393, 7398, 7413, 7426, 7428, 7433, 7452, 7474, 7492, 7499, 7519, 7527, 7553, 7554, 7569, 7570, 7575, 7610, 7619, 7628, 7633, 7658, 7675, 7685, 7708, 7739, 7743, 7759, 7761, 7765, 7773, 7774, 7808, 7818, 7830, 7836, 7844, 7849, 7890, 7891, 7894, 7897, 7903, 7950, 7953, 7961, 7998, 8005, 8013, 8023, 8058, 8062, 8064, 8065, 8097, 8102, 8179, 8234, 8236, 8258, 8261, 8284, 8307, 8325, 8364, 8374, 8380, 8382, 8386, 8409, 8416, 8417, 8446, 8447, 8457, 8513, 8524, 8556, 8605, 8616, 8618, 8619, 8643, 8657, 8665, 8673, 8679, 8681, 8687, 8713, 8762, 8767, 8770, 8813, 8827, 8846, 8867, 8896, 8900, 8922, 8928, 8945, 8949, 8952, 8960, 8964, 8974, 8975, 8990, 9000, 9027, 9060, 9070, 9086, 9147, 9192, 9200, 9229, 9231, 9244, 9249, 9266, 9292, 9301, 9329, 9335, 9360, 9370, 9372, 9395, 9420, 9421, 9424, 9446, 9519, 9520, 9521, 9525, 9541, 9629, 9631, 9637, 9657, 9722, 9743, 9813, 9823, 9889, 9902, 10002, 10024, 10034, 10085, 10087, 10094, 10096, 10102, 10107, 10170, 10172, 10196, 10218, 10231, 10242, 10244, 10269, 10273, 10302, 10314, 10328, 10358, 10372, 10373, 10384, 10391, 10409, 10415, 10425, 10456, 10470, 10472, 10479, 10512, 10529, 10548, 10554, 10631, 10632, 10659, 10673, 10697, 10734, 10776, 10797, 10827, 10828, 10857, 10886, 10899, 10905, 10940, 10958, 10972, 10979, 11001, 11028, 11039, 11040, 11059, 11119, 11147, 11183, 11190, 11221, 11223, 11226, 11231, 11240, 11254, 11258, 11259, 11264, 11310, 11336, 11344, 11366, 11371, 11379, 11388, 11407, 11413, 11414, 11422, 11424, 11429, 11459, 11588, 11615, 11629, 11642, 11655, 11681, 11736, 11737, 11738, 11742, 11754, 11785, 11786, 11831, 11891, 11971, 11993, 11997, 12001, 12002, 12021, 12028, 12029, 12060, 12095, 12097, 12146, 12188, 12192, 12197, 12224, 12276, 12282, 12286, 12289, 12306, 12329, 12331, 12389, 12424, 12492, 12522, 12563, 12587, 12642, 12663, 12672, 12694, 12707, 12775, 12785, 12790, 12805, 12855, 12903, 12925, 12930, 12949, 12973, 12991, 13022, 13033, 13036, 13058, 13059, 13131, 13138, 13166, 13195, 13204, 13227, 13343, 13348, 13351, 13367, 13396, 13423, 13426, 13439, 13511, 13528, 13537, 13589, 13596, 13599, 13626, 13631, 13641, 13711, 13726, 13732, 13743, 13744, 13745, 13754, 13760, 13827, 13855, 13883, 13905, 13937, 13961, 13967, 13989, 13990, 13993, 14000, 14026, 14060, 14069, 14120, 14137, 14171, 14181, 14200, 14209, 14221, 14237, 14251, 14314, 14337, 14343, 14365, 14371, 14393, 14457, 14464, 14497, 14505, 14518, 14546, 14547, 14559, 14586, 14605, 14628, 14639, 14655, 14691, 14710, 14712, 14744, 14749, 14775, 14776, 14789, 14826, 14856, 14863, 14864, 14881, 14891, 14902, 14915, 14921, 14924, 14927, 14944, 14993, 15079, 15158, 15168, 15184, 15201, 15216, 15224, 15250, 15258, 15262, 15271, 15274, 15284, 15293, 15336, 15361, 15386, 15428, 15444, 15452, 15458, 15466, 15493, 15529, 15600, 15656, 15685, 15707, 15709, 15740, 15757, 15827, 15829, 15884, 15888, 15913, 16030, 16037, 16046, 16052, 16065, 16082, 16118, 16121, 16141, 16183, 16184, 16190, 16191, 16194, 16215, 16220, 16225, 16230, 16241, 16247, 16272, 16323, 16363, 16416, 16434, 16442, 16447, 16452, 16464, 16483, 16498, 16526, 16547, 16555, 16558, 16590, 16598, 16632, 16641, 16643, 16665, 16668, 16691, 16701, 16734, 16750, 16796, 16802, 16809, 16821, 16822, 16842, 16846, 16856, 16865, 16867, 16881, 16905, 16907, 16933, 16973, 17016, 17019, 17061, 17103, 17155, 17161, 17165, 17166, 17172, 17213, 17282, 17319, 17386, 17404, 17417, 17422, 17429, 17445, 17471, 17479, 17512, 17580, 17581, 17582, 17585, 17588, 17589, 17593, 17610, 17619, 17621, 17626, 17628, 17632, 17636, 17637, 17651, 17654, 17664, 17669, 17673, 17682, 17705, 17720, 17722, 17730, 17769, 17779, 17796, 17812, 17831, 17895, 17962, 17965, 17970, 17994, 18045, 18047, 18071, 18092, 18118, 18130, 18132, 18144, 18148, 18150, 18191, 18195, 18211, 18220, 18264, 18291, 18293, 18304, 18309, 18336, 18359, 18380, 18399, 18406, 18408, 18418, 18421, 18426, 18431, 18440, 18452, 18454, 18461, 18475, 18480, 18494, 18503, 18532, 18533, 18534, 18535, 18536, 18538, 18552, 18554, 18575, 18576, 18594, 18602, 18619, 18640, 18648, 18651, 18652, 18654, 18663, 18700, 18719, 18731, 18765, 18769, 18778, 18799, 18800, 18805, 18806, 18816, 18818, 18819, 18848, 18850, 18895, 18940, 18973, 18978, 18983, 19003, 19004, 19030, 19043, 19055, 19080, 19113, 19114, 19177, 19181, 19190, 19254, 19292, 19296, 19300, 19308, 19309, 19311, 19328, 19329, 19345, 19350, 19352, 19367, 19381, 19382, 19387, 19392, 19414, 19415, 19419, 19428, 19431, 19442, 19451, 19493, 19497, 19513, 19514, 19521, 19525, 19528, 19557, 19562, 19569, 19620, 19629, 19684, 19700, 19705, 19730, 19733, 19738, 19755, 19772, 19783, 19847, 19848, 19877, 19883, 19886, 19895, 19922, 19933, 19936, 19937, 19938, 19943, 19957, 19963, 19982, 19988, 20008, 20032, 20046, 20055, 20089, 20098, 20100, 20109, 20157, 20193, 20210, 20219, 20244, 20256, 20274, 20282, 20284, 20350, 20385, 20390, 20403, 20433, 20454, 20458, 20459, 20475, 20527, 20555, 20583, 20585, 20609, 20621, 20640, 20647, 20668, 20701, 20702, 20710, 20732, 20733, 20739, 20769, 20820, 20839, 20866, 20879, 20892, 20924, 20926, 20937, 20989, 21017, 21026, 21029, 21030, 21045, 21058, 21072, 21099, 21101, 21113, 21122, 21127, 21139, 21150, 21152, 21173, 21222, 21223, 21224, 21225, 21252, 21260, 21274, 21275, 21306, 21342, 21373, 21384, 21388, 21408, 21432, 21473, 21503, 21504, 21507, 21534, 21537, 21556, 21564, 21567, 21569, 21570, 21589, 21625, 21643, 21644, 21671, 21672, 21682, 21683, 21695, 21696, 21704, 21705, 21706, 21711, 21718, 21730, 21731, 21735, 21749, 21782, 21783, 21801, 21844, 21853, 21870, 21874, 21892, 21893, 21894, 21898, 21906, 21913, 21926, 21927, 21930, 21948, 21955, 21969, 21971, 21973, 21993, 22038, 22044, 22049, 22065, 22093, 22095, 22096, 22120, 22136, 22138, 22158, 22162, 22166, 22167, 22170, 22171, 22174, 22180, 22209, 22211, 22235, 22239, 22241, 22243, 22244, 22245, 22265, 22269, 22272, 22280, 22283, 22292, 22293, 22329, 22335, 22339, 22350, 22361, 22362, 22363, 22384, 22386, 22390, 22409, 22413, 22417, 22420, 22431, 22435, 22438, 22445, 22456, 22516, 22546, 22563, 22614, 22615, 22617, 22618, 22660, 22668, 22671, 22679, 22680, 22681, 22691, 22710, 22711, 22712, 22716, 22717, 22728, 22731, 22737, 22757, 22759, 22777, 22797, 22841, 22842, 22846, 22865, 22872, 22876, 22878, 22895, 22903, 22920, 22926, 22928, 22930, 22940, 22951, 22956, 22957, 22962, 22981, 22991, 22999, 23008, 23044, 23051, 23057, 23073, 23087, 23107, 23133, 23145, 23166, 23169, 23217, 23244, 23245, 23249, 23263, 23272, 23278, 23309, 23320, 23328, 23329, 23355, 23364, 23366, 23370, 23414, 23429, 23449, 23452, 23456, 23470, 23488, 23521, 23525, 23546, 23550, 23575, 23589, 23609, 23621, 23643, 23651, 23679, 23686, 23710, 23743, 23754, 23762, 23795, 23801, 23805, 23820, 23823, 23827, 23838, 23842, 23843, 23847, 23862, 23865, 23894, 23900, 23928, 23929, 23942, 23947, 23967, 23971, 23991, 23993, 24010, 24026, 24046, 24053, 24087, 24104, 24111, 24112, 24119, 24120, 24129, 24132, 24140, 24152, 24153, 24164, 24182, 24184, 24194, 24195, 24196, 24221, 24225, 24229, 24236, 24237, 24238, 24247, 24250, 24255, 24270, 24272, 24282, 24304, 24328, 24358, 24385, 24402, 24403, 24404, 24420, 24428, 24429, 24435, 24439, 24440, 24471, 24510, 24524, 24525, 24530, 24541, 24550, 24562, 24593, 24616, 24621, 24627, 24649, 24651, 24693, 24700, 24701, 24702, 24703, 24713, 24729, 24763, 24774, 24781, 24790, 24791, 24820, 24837, 24846, 24869, 24874, 24875, 24884, 24891, 24921, 24923, 24936, 24945, 24946, 24967, 24971, 24994, 25046, 25047, 25050, 25104, 25108, 25145, 25170, 25184, 25195, 25197, 25199, 25200, 25208, 25229, 25236, 25283, 25285, 25286, 25291, 25296, 25303, 25326, 25327, 25330, 25349, 25371, 25372, 25378, 25385, 25434, 25462, 25519, 25524, 25527, 25548, 25581, 25584, 25585, 25614, 25616, 25627, 25635, 25641, 25656, 25657, 25658, 25661, 25670, 25673, 25689, 25731, 25736, 25737, 25783, 25790, 25804, 25809, 25814, 25815, 25828, 25858, 25859, 25903, 25910, 25919, 25931, 25936, 25938, 25951, 25970, 25979, 25981, 25991, 26007, 26051, 26064, 26087, 26113, 26120, 26126, 26141, 26151, 26167, 26180, 26196, 26214, 26230, 26231, 26238, 26240, 26244, 26256, 26264, 26297, 26303, 26358, 26361, 26365, 26366, 26377, 26379, 26386, 26388, 26414, 26432, 26438, 26477, 26482, 26508, 26534, 26556, 26558, 26628, 26630, 26641, 26642, 26726, 26744, 26759, 26761, 26763, 26764, 26767, 26770, 26786, 26803, 26806, 26817, 26845, 26875, 26902, 26912, 26925, 26926, 26928, 26933, 26962, 27034, 27037, 27043, 27056, 27057, 27058, 27081, 27082, 27099, 27141, 27145, 27185, 27188, 27226, 27233, 27240, 27242, 27250, 27254, 27271, 27280, 27284, 27297, 27298, 27312, 27315, 27334, 27354, 27390, 27431, 27450, 27455, 27460, 27461, 27476, 27483, 27508, 27516, 27524, 27538, 27551, 27552, 27569, 27579, 27583, 27601, 27633, 27640, 27696, 27698, 27699, 27722, 27724, 27731, 27743, 27744, 27777, 27793, 27805, 27814, 27836, 27838, 27857, 27884, 27891, 27907, 27908, 27913, 27919, 27925, 27926, 27927, 27928, 27963, 27967, 27973, 27974, 27988, 27993, 28002, 28037, 28048, 28094, 28105, 28108, 28160, 28164, 28223, 28234, 28248, 28255, 28259, 28266, 28275, 28279, 28288, 28309, 28315, 28316, 28329, 28361, 28364, 28387, 28409, 28421, 28424, 28435, 28440, 28462, 28473, 28476, 28477, 28481, 28487, 28512, 28513, 28524, 28532, 28536, 28543, 28569, 28570, 28577, 28586, 28631, 28646, 28649, 28662, 28686, 28688, 28697, 28709, 28713, 28724, 28727, 28730, 28739, 28740, 28752, 28757, 28779, 28817, 28822, 28832, 28841, 28861, 28864, 28872, 28873, 28894, 28895, 28924, 28939, 28944, 28954, 28957, 28979, 28991, 29012, 29015, 29016, 29049, 29057, 29085, 29088, 29090, 29094, 29108, 29133, 29148, 29158, 29160, 29165, 29171, 29174, 29203, 29218, 29229, 29230, 29239, 29242, 29247, 29267, 29268, 29280, 29281, 29293, 29315, 29355, 29370, 29380, 29400, 29408, 29412, 29418, 29426, 29429, 29437, 29446, 29453, 29460, 29464, 29514, 29562, 29563, 29596, 29613, 29619, 29631, 29646, 29649, 29659, 29669, 29674, 29675, 29720, 29764, 29765, 29811, 29815, 29865, 29871, 29889, 29899, 29918, 29919, 29922, 29934, 29945, 29954, 29968, 29987, 29991, 30001, 30034, 30075, 30079, 30167, 30182, 30189, 30205, 30217, 30221, 30223, 30229, 30232, 30237, 30251, 30253, 30286, 30297, 30316, 30333, 30343, 30347, 30348, 30349, 30351, 30368, 30395, 30404, 30405, 30408, 30410, 30419, 30443, 30444, 30452, 30455, 30457, 30471, 30476, 30485, 30507, 30510, 30511, 30560, 30572, 30574, 30613, 30617, 30620, 30647, 30671, 30674, 30714, 30717, 30750, 30765, 30788, 30800, 30805, 30834, 30875, 30879, 30880, 30882, 30886, 30892, 30918, 30927, 30962, 30971, 30978, 30985, 30989, 31011, 31017, 31020, 31035, 31040, 31049, 31056, 31058, 31059, 31072, 31082, 31104, 31106, 31125, 31160, 31196, 31217, 31227, 31228, 31229, 31233, 31245, 31256, 31275, 31297, 31305, 31330, 31340, 31354, 31359, 31378, 31379, 31380, 31392, 31409, 31416, 31428, 31429, 31434, 31445, 31449, 31454, 31480, 31492, 31500, 31501, 31505, 31514, 31530, 31543, 31549, 31563, 31570, 31589, 31607, 31625, 31635, 31643, 31656, 31661, 31688, 31697, 31712, 31731, 31733, 31742, 31743, 31744, 31753, 31755, 31757, 31765, 31815, 31831, 31837, 31838, 31841, 31842, 31845, 31849, 31850, 31858, 31884, 31897, 31903, 31923, 31924, 31944, 31945, 31954, 31964, 31986, 32016, 32063, 32102, 32105, 32114, 32117, 32135, 32144, 32166, 32184, 32186, 32195, 32243, 32246, 32269, 32276, 32285, 32303, 32326, 32341, 32396, 32398, 32401, 32421, 32423, 32437, 32439, 32470, 32471, 32479, 32488, 32499, 32502, 32513, 32540, 32549, 32551, 32585, 32614, 32617, 32619, 32624, 32635, 32644, 32645, 32648, 32650, 32689, 32709, 32711, 32724, 32738, 32743, 32745, 32778, 32780, 32797, 32802, 32811, 32823, 32829, 32831, 32832, 32852, 32865, 32875, 32880, 32897, 32911, 32928, 32929, 32936, 32955, 32968, 32977, 32991, 32998, 33006, 33015, 33033, 33053, 33055, 33059, 33063, 33074, 33095, 33127, 33137, 33142, 33144, 33160, 33171, 33179, 33221, 33231, 33236, 33238, 33247, 33249, 33250, 33258, 33273, 33300, 33303, 33313, 33320, 33326, 33328, 33348, 33353, 33376, 33377, 33378, 33379, 33406, 33412, 33424, 33438, 33451, 33471, 33472, 33484, 33501, 33523, 33550, 33584, 33593, 33602, 33611, 33622, 33623, 33634, 33635, 33638, 33639, 33649, 33652, 33668, 33671, 33709, 33715, 33718, 33739, 33756, 33770, 33778, 33806, 33836, 33852, 33875, 33877, 33897, 33909, 33916, 33925, 33929, 33932, 33938, 33941, 33996, 33999, 34000, 34021, 34023, 34030, 34034, 34039, 34061, 34070, 34075, 34084, 34085, 34099, 34111, 34114, 34125, 34142, 34160, 34209, 34210, 34218, 34222, 34232, 34243, 34267, 34272, 34274, 34277, 34291, 34294, 34322, 34359, 34375, 34384, 34386, 34421, 34435, 34455, 34461, 34467, 34494, 34517, 34519, 34545, 34547, 34562, 34577, 34609, 34616, 34620, 34630, 34650, 34651, 34672, 34673, 34695, 34721, 34736, 34739, 34746, 34749, 34754, 34795, 34815, 34855, 34857, 34863, 34866, 34875, 34899, 34914, 34956, 34959, 34965, 34983, 34991, 35003, 35016, 35044, 35051, 35059, 35072, 35093, 35108, 35125, 35126, 35143, 35150, 35156, 35158, 35159, 35177, 35184, 35194, 35203, 35213, 35226, 35230, 35243, 35288, 35313, 35332, 35362, 35380, 35400, 35406, 35419, 35435, 35440, 35446, 35458, 35467, 35470, 35496, 35502, 35505, 35517, 35543, 35546, 35554, 35557, 35567, 35569, 35576, 35630, 35634, 35679, 35692, 35702, 35722, 35726, 35732, 35748, 35754, 35756, 35759, 35769, 35777, 35779, 35798, 35812, 35816, 35827, 35828, 35831, 35905, 35916, 35928, 35929, 35934, 35948, 35956, 35957, 36015, 36057, 36067, 36074, 36085, 36100, 36105, 36119, 36120, 36131, 36133, 36134, 36163, 36164, 36175, 36207, 36234, 36245, 36246, 36256, 36287, 36323, 36327, 36328, 36329, 36336, 36337, 36384, 36387, 36403, 36411, 36414, 36427, 36432, 36445, 36449, 36489, 36491, 36501, 36509, 36537, 36550, 36551, 36559, 36560, 36563, 36565, 36566, 36571, 36582, 36592, 36606, 36619, 36620, 36621, 36622, 36640, 36642, 36665, 36666, 36677, 36697, 36704, 36718, 36720, 36743, 36749, 36794, 36801, 36804, 36811, 36827, 36852, 36856, 36857, 36861, 36876, 36877, 36917, 36918, 36922, 36927, 36939, 36941, 36945, 36948, 36962, 36964, 36996, 36999, 37009, 37012, 37017, 37026, 37032, 37033, 37065, 37069, 37075, 37085, 37102, 37132, 37133, 37134, 37135, 37153, 37157, 37178, 37185, 37196, 37208, 37217, 37218, 37245, 37256, 37266, 37283, 37286, 37288, 37294, 37295, 37321, 37349, 37355, 37361, 37383, 37408, 37446, 37448, 37456, 37460, 37480, 37482, 37492, 37502, 37509, 37515, 37517, 37525, 37526, 37539, 37552, 37559, 37567, 37586, 37593, 37628, 37630, 37637, 37646, 37655, 37660, 37662, 37667, 37668, 37673, 37674, 37677, 37679, 37682, 37683, 37713, 37718, 37726, 37739, 37740, 37757, 37768, 37771, 37780, 37792, 37797, 37799, 37801, 37803, 37819, 37829, 37831, 37837, 37889, 37897, 37899, 37900, 37902, 37915, 37918, 37926, 37927, 37935, 37936, 37943, 37960, 37973, 37977, 38003, 38052, 38063, 38066, 38069, 38073, 38074, 38081, 38082, 38088, 38090, 38092, 38094, 38098, 38140, 38153, 38168, 38170, 38179, 38180, 38182, 38185, 38195, 38203, 38204, 38207, 38216, 38220, 38225, 38226, 38232, 38233, 38237, 38238, 38262, 38285, 38291, 38305, 38307, 38322, 38325, 38343, 38348, 38350, 38376, 38386, 38387, 38392, 38395, 38407, 38415, 38429, 38448, 38453, 38458, 38465, 38472, 38475, 38477, 38490, 38495, 38499, 38507, 38508, 38509, 38515, 38519, 38526, 38527, 38547, 38553, 38556, 38570, 38574, 38578, 38580, 38581, 38615, 38629, 38631, 38637, 38643, 38664, 38674, 38689, 38706, 38707, 38720, 38724, 38727, 38734, 38739, 38753, 38759, 38760, 38769, 38776, 38779, 38786, 38806, 38814, 38824, 38827, 38845, 38850, 38855, 38862, 38886, 38905, 38909, 38925, 38935, 38948, 38995, 38999, 39028, 39048, 39052, 39056, 39078, 39079, 39097, 39105, 39108, 39114, 39115, 39116, 39121, 39123, 39126, 39127, 39133, 39135, 39136, 39141, 39144, 39149, 39157, 39159, 39166, 39167, 39178, 39183, 39205, 39206, 39208, 39219, 39255, 39293, 39296, 39301, 39326, 39346, 39350, 39385, 39390, 39402, 39432, 39438, 39444, 39459, 39464, 39511, 39539, 39553, 39575, 39587, 39588, 39600, 39609, 39624, 39653, 39668, 39677, 39690, 39702, 39709, 39716, 39724, 39732, 39734, 39745, 39750, 39751, 39754, 39759, 39764, 39777, 39787, 39807, 39819, 39820, 39835, 39847, 39881, 39884, 39885, 39894, 39902, 39917, 39918, 39934, 39936, 39959, 39961, 39964, 39994, 40035, 40038, 40039, 40048, 40049, 40050, 40060, 40078, 40091, 40109, 40122, 40151, 40158, 40167, 40175, 40177, 40181, 40200, 40203, 40228, 40240, 40251, 40252, 40261, 40268, 40273, 40281, 40282, 40293, 40295, 40313, 40324, 40326, 40327, 40342, 40343, 40349, 40356, 40384, 40385, 40456, 40458, 40462, 40468, 40475, 40493, 40507, 40514, 40568, 40594, 40606, 40625, 40629, 40633, 40644, 40647, 40652, 40670, 40671, 40688, 40701, 40719, 40736, 40744, 40748, 40751, 40801, 40806, 40807, 40816, 40820, 40821, 40828, 40852, 40892, 40916, 40917, 40918, 40925, 40959, 40968, 40972, 40977, 40991, 41041, 41053, 41054, 41061, 41081, 41094, 41127, 41131, 41133, 41135, 41146, 41166, 41182, 41194, 41195, 41213, 41217, 41222, 41223, 41235, 41254, 41259, 41315, 41322, 41330, 41342, 41348, 41353, 41357, 41376, 41381, 41382, 41397, 41401, 41404, 41413, 41416, 41440, 41451, 41457, 41464, 41482, 41483, 41484, 41492, 41493, 41497, 41506, 41515, 41546, 41550, 41552, 41572, 41574, 41598, 41602, 41629, 41639, 41652, 41654, 41657, 41666, 41668, 41678, 41690, 41691, 41696, 41702, 41716, 41734, 41741, 41747, 41765, 41775, 41781, 41786, 41792, 41807, 41829, 41832, 41835, 41844, 41854, 41888, 41900, 41933, 41934, 41943, 41946, 41957, 41961, 41987, 42018, 42028, 42064, 42078, 42082, 42093, 42112, 42116, 42122, 42126, 42131, 42140, 42141, 42171, 42185, 42210, 42238, 42244, 42252, 42253, 42280, 42285, 42286, 42289, 42301, 42313, 42327, 42332, 42337, 42338, 42342, 42360, 42361, 42370, 42371, 42386, 42398, 42432, 42448, 42505, 42520, 42552, 42578, 42598, 42605, 42610, 42647, 42653, 42667, 42668, 42708, 42717, 42718, 42738, 42742, 42769, 42775, 42789, 42793, 42807, 42810, 42825, 42826, 42827, 42831, 42845, 42846, 42876, 42880, 42920, 42927, 42949, 42963, 42973, 42974, 42978, 42984, 42985, 42986, 43004, 43010, 43011, 43013, 43018, 43027, 43035, 43043, 43056, 43079, 43084, 43086, 43111, 43121, 43128, 43141, 43150, 43153, 43163, 43171, 43189, 43217, 43225, 43230, 43239, 43262, 43271, 43272, 43276, 43288, 43291, 43292, 43307, 43311, 43315, 43323, 43349, 43351, 43363, 43366, 43371, 43383, 43403, 43410, 43446, 43455, 43475, 43479, 43488, 43497, 43527, 43531, 43554, 43574, 43602, 43605, 43609, 43612, 43626, 43648, 43650, 43680, 43693, 43698, 43700, 43702, 43707, 43713, 43720, 43725, 43731, 43735, 43743, 43749, 43764, 43766, 43781, 43788, 43793, 43808, 43809, 43810, 43843, 43853, 43854, 43865, 43903, 43915, 43917, 43918, 43937, 43939, 43971, 43988, 44014, 44029, 44049, 44058, 44071, 44125, 44134, 44162, 44217, 44219, 44230, 44237, 44239, 44242, 44251, 44267, 44288, 44297, 44308, 44309, 44315, 44329, 44352, 44374, 44409, 44467, 44478, 44502, 44506, 44508, 44510, 44511, 44512, 44538, 44547, 44562, 44564, 44578, 44581, 44595, 44605, 44606, 44617, 44642, 44644, 44649, 44660, 44681, 44751, 44778, 44792, 44794, 44817, 44819, 44849, 44918, 44941, 44943, 44951, 44959, 44963, 45025, 45039, 45043, 45057, 45062, 45076, 45090, 45097, 45098, 45114, 45116, 45131, 45144, 45148, 45155, 45176, 45181, 45185, 45199, 45203, 45213, 45216, 45239, 45241, 45265, 45326, 45331, 45338, 45339, 45371, 45376, 45401, 45402, 45416, 45425, 45427, 45449, 45452, 45458, 45474, 45479, 45481, 45508, 45526, 45527, 45528, 45530, 45538, 45561, 45569, 45581, 45605, 45610, 45629, 45648, 45690, 45696, 45699, 45719, 45724, 45732, 45744, 45749, 45759, 45770, 45773, 45782, 45798, 45803, 45819, 45848, 45849, 45859, 45873, 45874, 45914, 45988, 46003, 46021, 46032, 46038, 46049, 46082, 46119, 46138, 46140, 46152, 46154, 46190, 46213, 46261, 46263, 46268, 46289, 46291, 46302, 46331, 46335, 46400, 46401, 46424, 46450, 46454, 46457, 46476, 46484, 46488, 46501, 46512, 46520, 46533, 46553, 46570, 46576, 46584, 46611, 46625, 46629, 46643, 46644, 46658, 46659, 46681, 46684, 46693, 46694, 46695, 46699, 46736, 46740, 46749, 46760, 46761, 46779, 46780, 46799, 46807, 46814, 46816, 46823, 46856, 46862, 46869, 46871, 46896, 46905, 46937, 46967, 46968, 46993, 47015, 47052, 47072, 47095, 47118, 47134, 47135, 47156, 47169, 47180, 47192, 47214, 47217, 47218, 47223, 47244, 47251, 47257, 47302, 47304, 47307, 47314, 47315, 47361, 47373, 47384, 47393, 47394, 47406, 47416, 47460, 47471, 47473, 47478, 47481, 47484, 47495, 47499, 47508, 47510, 47524, 47562, 47575, 47577, 47579, 47588, 47643, 47673, 47680, 47681, 47684, 47686, 47693, 47695, 47696, 47802, 47806, 47816, 47857, 47858, 47874, 47878, 47883, 47892, 47904, 47919, 47927, 47929, 47945, 47951, 48002, 48009, 48034, 48035, 48049, 48057, 48078, 48085, 48087, 48128, 48130, 48148, 48159, 48171, 48172, 48174, 48191, 48192, 48226, 48235, 48238, 48246, 48251, 48252, 48266, 48275, 48303, 48310, 48350, 48358, 48365, 48399, 48402, 48404, 48410, 48416, 48430, 48451, 48460, 48508, 48509, 48545, 48588, 48611, 48613, 48619, 48628, 48636, 48675, 48678, 48690, 48692, 48694, 48730, 48771, 48776, 48811, 48812, 48814, 48815, 48842, 48864, 48879, 48885, 48896, 48907, 48926, 48927, 48950, 48962, 48990, 49020, 49036, 49060, 49064, 49070, 49084, 49087, 49097, 49144, 49193, 49243, 49257, 49263, 49269, 49285, 49289, 49293, 49348, 49349, 49352, 49360, 49375, 49383, 49413, 49442, 49444, 49447, 49458, 49459, 49462, 49468, 49481, 49499, 49514, 49535, 49553, 49561, 49595, 49631, 49643, 49670, 49691, 49706, 49726, 49737, 49761, 49791, 49793, 49802, 49823, 49824, 49843, 49854, 49856, 49874, 49913, 49914, 49923, 49945, 49960, 49995, 49999, 50003, 50010, 50016, 50040, 50056, 50062, 50064, 50075, 50077, 50078, 50101, 50123, 50129, 50133, 50135, 50141, 50148, 50152, 50156, 50157, 50164, 50214, 50228, 50238, 50266, 50284, 50286, 50288, 50292, 50319, 50338, 50344, 50361, 50367, 50383, 50384, 50386, 50392, 50401, 50404, 50407, 50424, 50428, 50432, 50433, 50442, 50462, 50504, 50508, 50524, 50539, 50547, 50571, 50573, 50574, 50579, 50594, 50626, 50635, 50677, 50686, 50706, 50715, 50733, 50747, 50748, 50759, 50761, 50762, 50766, 50798, 50837, 50843, 50859, 50866, 50884, 50885, 50898, 50910, 50917, 50922, 50935, 50938, 50941, 50944, 50951, 50963, 50986, 50989, 50999, 51000, 51004, 51012, 51021, 51044, 51057, 51067, 51068, 51091, 51175, 51178, 51205, 51262, 51267, 51295, 51299, 51300, 51330, 51354, 51364, 51372, 51376, 51384, 51398, 51409, 51422, 51440, 51448, 51451, 51461, 51469, 51472, 51474, 51524, 51527, 51535, 51539, 51550, 51552, 51558, 51567, 51568, 51576, 51590, 51595, 51654, 51667, 51669, 51674, 51686, 51716, 51725, 51756, 51762, 51773, 51775, 51811, 51838, 51840, 51883, 51890, 51911, 51916, 51968, 51972, 51993, 52014, 52043, 52045, 52065, 52076, 52102, 52106, 52133, 52143, 52155, 52176, 52199, 52202, 52203, 52231, 52240, 52243, 52260, 52270, 52314, 52341, 52362, 52367, 52377, 52423, 52432, 52445, 52448, 52453, 52463, 52471, 52472, 52480, 52481, 52482, 52495, 52550, 52584, 52585, 52629, 52672, 52674, 52682, 52690, 52696, 52697, 52700, 52726, 52733, 52752, 52755, 52769, 52772, 52773, 52810, 52814, 52824, 52832, 52864, 52872, 52885, 52940, 52958, 52961, 52962, 52964, 52966

There is no clear relationship between the age of the driver and the time of stop. Therefore, no evidence of Simpson’s Paradox was found.

  • You will present results of Part 3 to your neighbor(s) in class of Jan. 7 (Mon).