"Based on population figures and other general information on the Canadian population, suppose it has been estimated that, on average, a family of four in Canada spends about $1,135 annually on dental expenditures. Suppose further that a regional dental association wants to test to determine if this figure is accurate for their area of the country. To test this, 22 families of four are randomly selected from the population in that area of the country and a log is kept of the family’s dental expenditures for one year. The resulting data are given below. Assuming that dental expenditures are normally distributed in the population, use the data and an alpha of 0.05 to test the dental association’s hypothesis."
1,008 812 1,117 1,323 1,308 1,415
831 1,021 1,287 851 930 740
699 872 913 944 987 954
1,695 995 1,003 994
Attempt:
Did https://i.stack.imgur.com/0Vw9p.jpg
Then use (xbar-u)/(o/rootn)
n=22
o=245.6477
xbar=1135
u=60342.79
(1135-60342.79)/(245.6477/root22)
=-1130.52
Fail to reject null
The numerical answer is wrong so what mistake did I make? Whats the correct equation to solve for test equation.
Entering your data into R:
The summary statistics required for a t test are as follows:
The sample mean $\bar X = 1031.773$ is smaller than the hypothetical population mean $\mu_0 = 1135.$ The question is whether the difference between $\bar X$ and $\mu_0$ is sufficiently large to say that the difference is significantly different at the 5% level.
In R, a one-sample, two-sided t test of $H_0: \mu = 1135$ against $H_a: \mu \ne 1135.$ gives the output shown below. The P-value $0.05641$ is larger than 5%, so you cannot reject $H_0$ at the 5% level of significance. [Other software gives similar output. Or you can do the computation by hand and use printed tables of Student's t distribution to decide whether the reject $H_0.$]
You should make sure you understand how the t statistic is computed and why there are DF = 21 degrees of freedom.
$$T =\frac{\bar X - \mu_0}{S/\sqrt{n}} = \frac{1031.773=1135}{239.7864 /\sqrt{22}} = -2.0192.$$ If $H_0$ is true then $T \sim \mathsf{T}(\nu = n-1 = 21),$ Student's t distribution with DF = 21. Also, be sure you know how you can use P-values to decide whether to reject the null hypothesis.
Also, make sure you know how you can use printed tables to decide whether the reject: On line 21 of the t table you will find that the critical value $c = 2.080$ cuts probability 0.025 from the upper tail of Student's t distribution with 21 degrees of freedom. Thus you reject $H_0$ if $|T| > 2.080.$
Below is a plot of the density function of Student's t distribution with DF = 21. The solid vertical black line show the observed value of the t statistic. The P-value of the test is the sum of the areas in both tails of the distribution outside of the vertical black lines. The vertical red (dashed) lines show the critical values $\pm c = \pm 2.080.$