tolls <- mutate(tolls, proportion = round(violations / (paid + violations), 4))
tolls
## date day total paid violations proportion
## 1 2012-06-01 Mon 9420 9395 25 0.0027
## 2 2012-06-02 Tues 10351 10325 26 0.0025
## 3 2012-06-03 Wed 9004 8978 26 0.0029
## 4 2012-06-04 Thurs 9940 9916 24 0.0024
## 5 2012-06-05 Fri 9444 9418 26 0.0028
## 6 2012-06-06 Sat 2657 2637 20 0.0075
## 7 2012-06-07 Sun 3766 3736 30 0.0080
## 8 2012-06-08 Mon 9895 9866 29 0.0029
## 9 2012-06-09 Tues 8437 8412 25 0.0030
## 10 2012-06-10 Wed 9236 9213 23 0.0025
## 11 2012-06-11 Thurs 8393 8371 22 0.0026
## 12 2012-06-12 Fri 8065 8045 20 0.0025
## 13 2012-06-13 Sat 6139 6087 52 0.0085
## 14 2012-06-14 Sun 4634 4599 35 0.0076
## 15 2012-06-15 Mon 9367 9343 24 0.0026
## 16 2012-06-16 Tues 9821 9793 28 0.0029
## 17 2012-06-17 Wed 9522 9499 23 0.0024
## 18 2012-06-18 Thurs 9327 9300 27 0.0029
## 19 2012-06-19 Fri 9630 9603 27 0.0028
## 20 2012-06-20 Sat 948 940 8 0.0084
## 21 2012-06-21 Sun 3080 3053 27 0.0088
## 22 2012-06-22 Mon 9195 9168 27 0.0029
## 23 2012-06-23 Tues 10413 10386 27 0.0026
## 24 2012-06-24 Wed 8523 8499 24 0.0028
## 25 2012-06-25 Thurs 8809 8784 25 0.0028
## 26 2012-06-26 Fri 9208 9183 25 0.0027
## 27 2012-06-27 Sat 2284 2264 20 0.0088
## 28 2012-06-28 Sun 277 275 2 0.0072
## 29 2012-06-29 Mon 8098 8076 22 0.0027
## 30 2012-06-30 Tues 7697 7678 19 0.0025
pbar <- round(mean(tolls$proportion), 4)
pbar
## [1] 0.0041
cl <- function(x){
pbar <- round(mean(x$proportion), 4)
lcl <- pbar - 3 * sqrt((pbar * (1 - pbar)) / round(mean(x$total)))
ucl <- pbar + 3 * sqrt((pbar * (1 - pbar)) / round(mean(x$total)))
c(lcl=round(lcl, 4), ucl=round(ucl, 4))
}
tolls.cl <- cl(tolls)
tolls.cl
## lcl ucl
## 0.0019 0.0063
Does this particular p-chart suggest that the process is in control? Explain.
## lcl ucl
## 0.0019 0.0063
The points falling outside of the control limits all occur on the weekends.
What could be causing the violation data to be outside the control limits?