I am a newbie to Data Analysis and would be thankful if you could explain to me if for this exercise I use Chi Square or Regression ( looking at the ANOVA table). For each what would be the specific steps? For example for Regression which is the dependent variable, etc.

Exercise:

You are given the number of defective lots per company and per month (in columns compA, compB and compC). You would like to check if there is a significant month related effect.

1) Which test is relevant here? Why?

2) Can we say that there is a significant monthly related effect?

3) On the same moth, you are given data before and after an inspection in the plant. You will find the relevant data below. Can we say that the inspection significantly changed the results? Do not forget to give the 95% confidence interval.

Thanks a lot in advance!