00:01
So for this problem, we're using alpha or significant flow of 0 .01.
00:05
And there's a claim that wheat paintings are manufactured so that the weights have a standard deviation equal to 0 .03 grams.
00:13
And the data we're using is the data set 29 from the text book.
00:17
And we're mainly going to be looking at the column post -1983 pennies.
00:22
So first, let's identify the null hypothesis.
00:27
We're testing our standard deviation, since standard deviation is equal to the 0 .0 .03 grams.
00:39
Our alternative is going to be that sigma.
00:43
There's no indication less than or greater than, so as long does not equal 0 .0 to 330 grams.
00:52
So this is a two -tail test.
00:55
So first let's get our test statistic.
01:02
Since this data is relatively large, i've done everything with an r and i'll write down codes when they're necessary.
01:09
But first, before we even get our test statistic, if you're at least, looking at the data set, there's a few columns that will say n .a.
01:18
So there's just some information that's not a variable, and this does affect our calculations within r.
01:25
So to get big set, when you're saving your data set, or when you're saving your column to something else, so i called it post .pennies, you're going to use the function na.
01:44
Omit.
01:46
And then this will be the data set.
01:56
So this will emit any nas columns or any value values that will be there.
02:04
So with that little side note out of the way to calculate the test statistics, since we're testing the standard deviation, it's going to be at kai squared and it's going to be n minus 1 s squared divided by sigma squared and this is about equal to 18 .482.
02:33
Next we can calculate the p values or the p value again i'm doing this with an r and to calculate the p value for our kai square distribution is going to be p kai squared and where i put in our test statistic our degrees of freedom and minus one and where i have lower dot tail equals something.
03:04
So this is since this is a two -tail test, we're going to take the p -value and we're going to multiply by two...