Chi-squared goodness of fit

All Questions
gaokao 2017 Q19 12 marks
(12 points)
To compare the yields of an old and a new breeding method, a survey was conducted on 100 aquaculture farms, recording the yield (in kg) of a certain aquatic product. The frequency distribution histogram is given.
(1) Let $A$ denote the event ``the yield using the old breeding method is less than 50 kg''. Estimate the probability of $A$.
(2) Complete the contingency table below, and use the chi-squared test to determine whether we can be 99\% confident that yield is related to breeding method.
Yield $< 50 \text{ kg}$Yield $\geq 50 \text{ kg}$
Old breeding method
New breeding method

$P(K^2 \geq k)$0.0500.0100.001
$k$3.8416.63510.828

$$K^2 = \frac{n(ad - bc)^2}{(a+b)(c+d)(a+c)(b+d)}$$
gaokao 2021 Q17 12 marks
17. (12 points) Two machine tools, A and B, produce the same type of product. Products are classified by quality into first-grade and second-grade products. To compare the quality of products from the two machine tools, 200 products were produced by each machine tool. The quality statistics are shown in the table below:
First-gradeSecond-gradeTotal
Machine A15050200
Machine B12080200
Total270130400

(1) What are the proportions of first-grade products produced by machine A and machine B respectively?
(2) Can we conclude with 99\% confidence that there is a difference in product quality between machine A and machine B? Attachment: $k^2 = \frac{n(ac - bd)^2}{(a+b)(c+d)(a+c)(b+d)}$,
$P(K^2 \geq k)$0.0500.0100.001
$k$3.8416.63510.828