Question: R problem NoU
R problem
NoU <- read.csv("http://stat.umn.edu/~wuxxx725/data/Getting2NoUS2020.csv", header = T)
attach(NoU)
Suppose we randomly select a student from the class of STAT 3011 and letXdenote the number of traffic tickets he/she had in the past.
(a)What type of random variable isX?
(b)Draw a table to provide the probability distribution ofX. You many find the results of following
commands useful.
table(traffic.tickets)
nrow(NoU)
(c)Find the mean and the standard deviation ofX
(d)Find the probability that the student has at least three tickets.
The result of the R is
table(traffic.tickets)
traffic.tickets
0 1 2 3 4 5
228 42 14 7 3 3
nrow(NoU)
[1] 297
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
