There is a question like this :
A factory produces certain chemical acid. It claims that the concentration is 90% and the variance is 12. To check those facts few samples were taken and the concentration was measured – see the table. Test at the significance level of 0.05 test whether the concentration is 90% as the factory claims. (Assume the normal distribution.)
we have six samples which show concentration which are these {88, 94 ,94 ,95 ,91 ,96}
How can I use chi-square test to test if the claimed variance (12) is reliable?
Assuming normal data: t test for population mean. If you want a test for the population mean, use a one-sample t test. If you are doing a two sided test of $H_0: \mu = 90 = 90$ against $H_a: \mu \ne 90,$ at the 5% level, then you cannot reject because the P-value exceeds 0.05. Results from R statistical software, which you can verify using formulas in your text.
While the average of your six observations exceeds 90, the average does not exceed 90 by enough to be considered significantly different from 90.
The $T$-statistic is $T = 2.4772.$ If $|T| > 2.571$ then you would have been able to reject $H_0.$ The value $c = 2.571$ is called the 'critical value' of the two-sided test.
Assuming normal data, chi-squared test for population variance. If you want a test for the population variance to test $H_0: \sigma^2 = 12$ vs. $H_a: \sigma \ne 12,$ then (for normal data) do a test using the chi-squared distribution: $ \frac{(n-1)S^2}{\sigma^2} \sim \mathsf{Chisq}(df= n-1).$ Here are results from Minitab statistical software: There is not evidence to reject the null hypothesis at the 5% level.
R code to get a 95% confidence interval for $\sigma^2$ (normal data) is as follows. This is the same result as in Minitab, but not rounded to two places:
The derivation for the CI is as follows:
$$0.95 = P\left(L \le \frac{(n-1)S^2}{\sigma^2} \le U\right) = P\left(\frac{(n-1)S^2}{U} \le \sigma^2 \le \frac{(n-1)S^2}{L}\right),$$ where $L$ and $U$ cut probability 0.025 from the lower and upper tails, respectively, of the distribution $\mathsf{Chisq}(n-1 = 5).$
R code for P-value of two-sided test (result agrees with 0.803 in Minitab):