//the badbatches per week are taken as elements of a vector y y=[17 27 18 18 23 19 18 21 20 19 21 18]