Way to go today! I realize it was long and boring, but you guys made it through it! Great news though, we are back on schedule now which means more homework in class! But onto assignment 22.
Something I forgot to mention in class is that we call sigma/sqrt(n) the standard deviation of x-bar.
Well s/sqrt (n) = standard error.
Questions 2-5 are just a simple one-sample t-test, so that should be simple enough.
Questions 9-15: What kind of procedure is this?
In this case, they didn't necessarily give you the differences, but you can clearly see that each student has TWO measurements: two thighs were hit with tennis balls. (And of course, I gave you this example in class, so that might have helped :) )
Be careful on calculating the t-test statistic. Remember we only care about the differences. You need to use statcrunch to do this.
Good Luck!
Thursday, March 15, 2012
Sunday, March 11, 2012
Assignment 21 + t-test Practice
We talked about this assignment 21 a lot on Thursday, so I don't feel the need to go over it a whole lot. We answered all of the "Plan" section, and even one of the answers to the "Plan" section of part B.
A common mistake on this one is the "list and state how the conditions are met". This means you must STATE the condition (like Normality:) then after the colon, state how it is met for this particular problem.
Remember how the conditions change slightly for a t-test.
On part B, be careful with the t-test confidence interval: we are using t*, not Z*, which I think is a common mistake.
Okay, now onto t-test practice so you can actually solve the problems!
Let's do an example!
Hillary thinks that the statistic department isn't correctly stating the actual amount of late-fee money they receive from Stat 121 students. They claim that on average each test gives them 5,000 dollars. Hillary takes a simple random sample of a 10 different testing periods over the last five years and gets a mean of 5,800 dollars and standard deviation of 750. Alpha = 0.05. Assume test fees are normally distributed.
STATE: Is the true mean income earned by Stat 121 late fees greater than 5,000 dollars?
Okay. So there are a few things we notice here off the bat. First where is the standard deviation from? It says in the problem it is from the sample, meaning that we know S, not sigma. This means we will be doing a t-test. Also, the STATE lets us know what our hypothesis will end up being (greater than).
For the sake of this problem, we aren't going to go through the entire Plan or Solve steps, only because the point of this problem is to help you learn how to use the t-table.
Ho: Mu=5000
Ha: Mu > 5000
t=5800-5000/ [750/sqrt(10)] = 3.37
Now we go to the t chart. We need one more thing though before we use it: degrees of freedom. Remember, df= n-1.
So in this case, df= 10-1 = 9.
Go to the tenth row in the t-table. Find the two values that sandwich our t value.
I see that the t* values of 3.690 and 4.397.
A common mistake on this one is the "list and state how the conditions are met". This means you must STATE the condition (like Normality:) then after the colon, state how it is met for this particular problem.
Remember how the conditions change slightly for a t-test.
On part B, be careful with the t-test confidence interval: we are using t*, not Z*, which I think is a common mistake.
Okay, now onto t-test practice so you can actually solve the problems!
Let's do an example!
Hillary thinks that the statistic department isn't correctly stating the actual amount of late-fee money they receive from Stat 121 students. They claim that on average each test gives them 5,000 dollars. Hillary takes a simple random sample of a 10 different testing periods over the last five years and gets a mean of 5,800 dollars and standard deviation of 750. Alpha = 0.05. Assume test fees are normally distributed.
STATE: Is the true mean income earned by Stat 121 late fees greater than 5,000 dollars?
Okay. So there are a few things we notice here off the bat. First where is the standard deviation from? It says in the problem it is from the sample, meaning that we know S, not sigma. This means we will be doing a t-test. Also, the STATE lets us know what our hypothesis will end up being (greater than).
For the sake of this problem, we aren't going to go through the entire Plan or Solve steps, only because the point of this problem is to help you learn how to use the t-table.
Ho: Mu=5000
Ha: Mu > 5000
t=5800-5000/ [750/sqrt(10)] = 3.37
Now we go to the t chart. We need one more thing though before we use it: degrees of freedom. Remember, df= n-1.
So in this case, df= 10-1 = 9.
Go to the tenth row in the t-table. Find the two values that sandwich our t value.
I see that the t* values of 3.690 and 4.397.
I then trace my fingers down to the "one sided t test" row (because we are greater than) and read off the two p value values: .005 and .0025
Thus I can say my p value is: .0025< p value < .oo5.
Conclude as usual.
Now let's try a t confidence interval.
The only thing that changes for a t test versus a z test is we are finding t* instead of z*.
Let's try finding t* using our problem above.
We need two things to find t*. One, degrees of freedom which we already found to be 9. Second is confidence level. Since we had an alpha= 0.05, it follows that our confidence level is 95%.
Now we simply find where our df and confidence level intersect. This is our t*.
From the table, I get t*= 2.262.
Hope that helps! Remember don't wait to do assignment 21. The open lab will be overflowing on Wednesday. Get it done! As always if you have questions email me!
-Hillary
Assignment 20
Most of assignment 20 is stuff you are familiar with. Remember, since the first few questions are about "she knows the standard deviation should" we are still talking about sigma, thus doing z-tests. Try not to get confused! Otherwise, it's just the standard procedure.
Remember the definition for p-value:
"P-value is the probability of getting an x-bar as extreme or more extreme if the null hypothesis were true"
This definition has slightly more things you can see "subbed in" for. Let's try an example.
Let's do the example we talked about in class, the pink cookies from the vending machine. We get an x-bar of 650 calories, and we are testing:
Ho: Mu=600 cal
Ha: Mu>600 cal.
We calculate a p-value of 0.03. If the question asked us to interpret the p-value in context, we might say:
"The probability is 3% of getting a value as high or higher than 650 calories if the true calories of the cookies was 600."
I highlighted the same colors of the sentence that correspond to the definition sentence. See how the main points are there and how you can recognize them? There are obviously different ways to re-arrange the sentence, but all the main parts have to be there.
The last questions (questions 8-11) are what we couldn't go over and you should have learned in class. Just some hints (we will go over what it REALLY means this Thursday.)
A type I error is REJECTING a TRUE null hypothesis.
A type II error is FAILING to REJECT a FALSE null hypothesis.
For example:
Ho: The cake is done.
Ha: The cake is not done.
In a type I error, we REJECT a null hypothesis that was actually TRUE. So, We would say that the cake is not done when the cake was actually done (meaning we left it in the oven and overcooked it).
In a type II error, we would take the cake out, but it wasn't done yet (because we failed to reject the null, but it was false).
alpha=probability of a type I error
beta=probability of a type II error.
I hope that helps you answer the questions, although it contains none of the explanation. I think it will make more sense once we go over it.
Good luck!
-Hillary
Remember the definition for p-value:
"P-value is the probability of getting an x-bar as extreme or more extreme if the null hypothesis were true"
This definition has slightly more things you can see "subbed in" for. Let's try an example.
Let's do the example we talked about in class, the pink cookies from the vending machine. We get an x-bar of 650 calories, and we are testing:
Ho: Mu=600 cal
Ha: Mu>600 cal.
We calculate a p-value of 0.03. If the question asked us to interpret the p-value in context, we might say:
"The probability is 3% of getting a value as high or higher than 650 calories if the true calories of the cookies was 600."
I highlighted the same colors of the sentence that correspond to the definition sentence. See how the main points are there and how you can recognize them? There are obviously different ways to re-arrange the sentence, but all the main parts have to be there.
The last questions (questions 8-11) are what we couldn't go over and you should have learned in class. Just some hints (we will go over what it REALLY means this Thursday.)
A type I error is REJECTING a TRUE null hypothesis.
A type II error is FAILING to REJECT a FALSE null hypothesis.
For example:
Ho: The cake is done.
Ha: The cake is not done.
In a type I error, we REJECT a null hypothesis that was actually TRUE. So, We would say that the cake is not done when the cake was actually done (meaning we left it in the oven and overcooked it).
In a type II error, we would take the cake out, but it wasn't done yet (because we failed to reject the null, but it was false).
alpha=probability of a type I error
beta=probability of a type II error.
I hope that helps you answer the questions, although it contains none of the explanation. I think it will make more sense once we go over it.
Good luck!
-Hillary
Monday, March 5, 2012
Assignment 18
Assignment 18 is testing your knowledge on all the vocabulary we talked about on Thursday dealing with tests of significance.
Don't get confused by the wording on question 1. You know what the mean and standard deviation are of a sampling distribution of x-bar: remember, we always assume the null hypothesis is true.
Remember: Test-statistic = z-score.
I realize in question 6 that they do not give you an alpha. But even without an alpha, you should be able to answer the question. Which p-value gives us more evidence against the null (helps us accept the alternative)? What does it mean when p-value is low? When p-value is high? How do we get these p-values? If our test statistic (z) is further from the mean, does that give us a high or low p-value? DRAW IT OUT ON A GRAPH! It will help. I promise.
The rest of the questions step you through the process we talked about at the end of class.
Be careful on p-value in question 12: Our null hypothesis is greater than. What proportion do we want from the table?
Good Luck!
-Hillary
Don't get confused by the wording on question 1. You know what the mean and standard deviation are of a sampling distribution of x-bar: remember, we always assume the null hypothesis is true.
Remember: Test-statistic = z-score.
I realize in question 6 that they do not give you an alpha. But even without an alpha, you should be able to answer the question. Which p-value gives us more evidence against the null (helps us accept the alternative)? What does it mean when p-value is low? When p-value is high? How do we get these p-values? If our test statistic (z) is further from the mean, does that give us a high or low p-value? DRAW IT OUT ON A GRAPH! It will help. I promise.
The rest of the questions step you through the process we talked about at the end of class.
Be careful on p-value in question 12: Our null hypothesis is greater than. What proportion do we want from the table?
Good Luck!
-Hillary
Assignment 17
We pretty much did all of assignment 17 in class on Thursday. Something I didn't mention:
Statistically significant means it did not happen due to chance alone. Meaning, our p-value was significant. In other words, if p-value is less than alpha, and we reject the null hypothesis, our p-value was statistically significant.
-Hillary
Statistically significant means it did not happen due to chance alone. Meaning, our p-value was significant. In other words, if p-value is less than alpha, and we reject the null hypothesis, our p-value was statistically significant.
-Hillary
Thursday, March 1, 2012
Assignment 16
I am SO SORRY this is so late. This assignment used to be Assignment 17 so I was expecting to be able to do more of it in class.
The key here is to remember that you only need to choose ONE POPULATION.
So, for example, you'd have one of these populations:
Middle-aged American women of a healthy weight and BMI that don't drink wine.
OR
Middle-aged American women of a healthy weight and BMI that do drink wine.
Once you choose one, roll with it for the rest of the time.
Thus when you write the parameter, just write about one of the populations (the one you chose). How does a parameter differ from the population? What word do we need to add? (Hint...it starts with "m").
Remember the difference between confidence level and confidence interval. Interval is what we actually report, LEVEL is that complicated definition we talked about. Here's a hint for question 5, you should NOT answer:
"That is the percentage of the time we will find mu in the interval". This is WRONG. Hopefully this WRONG answer will help you remember the right one :)
The last question we want to use our conclude cookie-cutter answer.
Good Luck!
The key here is to remember that you only need to choose ONE POPULATION.
So, for example, you'd have one of these populations:
Middle-aged American women of a healthy weight and BMI that don't drink wine.
OR
Middle-aged American women of a healthy weight and BMI that do drink wine.
Once you choose one, roll with it for the rest of the time.
Thus when you write the parameter, just write about one of the populations (the one you chose). How does a parameter differ from the population? What word do we need to add? (Hint...it starts with "m").
Remember the difference between confidence level and confidence interval. Interval is what we actually report, LEVEL is that complicated definition we talked about. Here's a hint for question 5, you should NOT answer:
"That is the percentage of the time we will find mu in the interval". This is WRONG. Hopefully this WRONG answer will help you remember the right one :)
The last question we want to use our conclude cookie-cutter answer.
Good Luck!
Tuesday, February 21, 2012
Exam 2 Review!
It's that time- Exam time!
Main Topics (Aka BIG topics)
1. Regression
2. Two-Way Tables
3. Sampling Distribution of X-bar
Side Topics (Small topics)
1. Statistic versus Parameter
2. Control Charts
3. Response versus Explanatory Variables
4. Probability
1. REGRESSION
Main Point: Regression is all about knowing your vocab, vocab, vocab. And how to apply it of course.
Regression is on Bi-variate, quantitative data (if you don't know what that means, I'd look it up!) The whole point is to find out if there is an association between your two variables.
a. Scatterplots
Scatterplots have Strength, Form and Direction. Understand what each of these means and how to recognize them.
Form: Linear/non linear
Direction: Negative/positive
Strength: Correlation coefficient, r
Correlation Coefficient: Be able to recognize false statements about r, be able to guestimate r based on a graph, and now how outliers affect r.
Things to remember about r:
-No units
-Only quantitative data
-Only linear, data
-between -1 and 1
-effected by outliers
r-squared (r^2): "The percent variation in y, explained by x" See previous posts for a good explanation on this. Be able to "interpret in context" (i.e. replace the highlighted words) as well as recognize this definition to know when they WANT r-squared.
TEST YOURSELF: What is the difference between r and r^2? What do they tell us?
Least Squared Regression Line: "Minimizing the sum of the squared residuals". Never hurts to know a definition. Basically, this is our best fit line that allows us to predict values based on the equation of the line. Which is:
y-hat = bx + a
Where y-hat is your predicted y, b=slope and a= y-intercept.
Realize you never have to come up with b and a by yourself, they will always be given in outputs. Practice knowing how to read these outputs!!
Slope: "Average change in y for every one unit increase in x". This is the big one! Know how to interpret in context (ie, exchanging out the highlighted words) and know how to recognize the definition when they are asking just for the number. (Example: "What is the average change in farm population for every year that passes? Do you see the "change in y" for a "unit increase" in x? They would just want the slope value, found from the output).
Realize that it may not be WORD FOR WORD of this definition (they can change up the order, for example, saying "for every one unit increase in x, what is the average change in y?" or for a practical example, "For every year that passes, what is the change in farm population on average?" If you KNOW the definition, you should be able to recognize it.
Summary: Know your definitions, because everything is given to you in the output. You merely need to recognize what they are asking. Don't panic. You know this stuff.
2. TWO-WAY TABLES
Main Point: This is about calculation. Two-way tables assess relationships (aka, association between variables) for bivariate categorical data.
Marginal Distributions
These deal with "overalls". They are exclusively in the margins. Don't leave the margins. Okay? Because they are distributions, expect more than one number.
Conditional Distributions
These are based on a condition, or rather, a specific. They are still distributions, but they are based on the "inside" numbers.
Conditional Values
These are a singular value based on two conditions. The first condition is the total that governs.
TEST YOURSELF
In case the above didn't make much sense, let's practice!

What is the marginal distribution of years?
What is the marginal distribution of people who study in the library?
What is the conditional distribution of sophomores?
What is the conditional distribution of people who DO study in the library?
For those who are seniors, how many study in the library?
For those who study in the library, how many are seniors?
Answers:
1. 0.1677, .3829, .2974, .1518
2. 0.48, .515
3. 0.5619, .438
4. 0.294, .444, .1503 .... (keep going)
5. 0.354
6. 0.111
Summary: Know your calculations.
3. Sampling Distributions of x-bar.
Main Point: This is probably the most concept-heavy portion of the second test, and thus, the thing people have the hardest time with. Know. These. Concepts. Understand them well, and you won't have a problem.
What is a sampling distribution of x-bar? It is the distribution of sample means from every possible sample of a particular size n.
Know the difference between a population graph and a sampling distribution of x-bar graph. (here's a hint to remind you: population = individual, S.D. of x-bar = sample mean).
Central Limit Theorem: For a non-normal population, if n>or= 30, then the sampling. distribution of x-bar is approximately normal. (as a side note: For an already normal population, if n> or = 30, then the sampling distribution of x-bar is exactly normal.)
Know how to use the formula associated with sampling distributions of x-bar (i.e. z=x-bar-mu/sigma/sqrt(n)). Remember, you use it in the same way as the population z-score. But practice anyways.
Things to know: The standard deviation of a S.D. is SIGMA/SQRT(n).
The mean of a sampling distribution of x-bar is ALWAYS. ALWAYS. ALWAYS = to mu. Always. Doesn't matter what n is. Always. Always.
TEST YOURSELF:What happens to the following graphs?
Let's start with a population of 15,000 that is severely left skewed.
If I take a sample of 800 people and graph it, what does it look like?
If I take all possible samples of size n=10 and graph it, what does it look like?
If I take all possible samples of size n=600 and graph it, what does it look like?
Answers:
1. The key here is that I only took ONE SAMPLE. Remember, the CLT only applies to sampling distributions of x-bar. So, we would expect it to look like the population.
2. This is a sampling distribution of x-bar, however, n<30 so CLT doesn't apply. This graph would be more normal, but cannot be considered normal because the CLT doesn't apply.
3. This is a sampling distribution of x-bar and n>30, so the CLT applies and we have an approximately normal distribution.
As a side note, don't forget about the law of large numbers, which only deals with samples (not sampling distributions of x-bar). Check out your notes on that one.
Summary: Again this is concept heavy. Of course, it does require some calculations in way of the formula, but if you were okay with these on the first exam, you should be okay now.
4. THE SMALL STUFF
Be sure to go over your definitions for:
statistic versus parameters (be able to tell the difference)
Control Charts (remember the equation for the upper and lower limits aren't on your equation she
et. Memorize them!)
Probability (know facts about the probability distribution and what it takes to have a proper one)
Response versus explanatory variables (be able to tell the difference).
And of course, brush up on knowing the different experimental designs!
GOOD LUCK!!
-Hillary
Main Topics (Aka BIG topics)
1. Regression
2. Two-Way Tables
3. Sampling Distribution of X-bar
Side Topics (Small topics)
1. Statistic versus Parameter
2. Control Charts
3. Response versus Explanatory Variables
4. Probability
1. REGRESSION
Main Point: Regression is all about knowing your vocab, vocab, vocab. And how to apply it of course.
Regression is on Bi-variate, quantitative data (if you don't know what that means, I'd look it up!) The whole point is to find out if there is an association between your two variables.
a. Scatterplots
Scatterplots have Strength, Form and Direction. Understand what each of these means and how to recognize them.
Form: Linear/non linear
Direction: Negative/positive
Strength: Correlation coefficient, r
Correlation Coefficient: Be able to recognize false statements about r, be able to guestimate r based on a graph, and now how outliers affect r.
Things to remember about r:
-No units
-Only quantitative data
-Only linear, data
-between -1 and 1
-effected by outliers
r-squared (r^2): "The percent variation in y, explained by x" See previous posts for a good explanation on this. Be able to "interpret in context" (i.e. replace the highlighted words) as well as recognize this definition to know when they WANT r-squared.
TEST YOURSELF: What is the difference between r and r^2? What do they tell us?
Least Squared Regression Line: "Minimizing the sum of the squared residuals". Never hurts to know a definition. Basically, this is our best fit line that allows us to predict values based on the equation of the line. Which is:
y-hat = bx + a
Where y-hat is your predicted y, b=slope and a= y-intercept.
Realize you never have to come up with b and a by yourself, they will always be given in outputs. Practice knowing how to read these outputs!!
Slope: "Average change in y for every one unit increase in x". This is the big one! Know how to interpret in context (ie, exchanging out the highlighted words) and know how to recognize the definition when they are asking just for the number. (Example: "What is the average change in farm population for every year that passes? Do you see the "change in y" for a "unit increase" in x? They would just want the slope value, found from the output).
Realize that it may not be WORD FOR WORD of this definition (they can change up the order, for example, saying "for every one unit increase in x, what is the average change in y?" or for a practical example, "For every year that passes, what is the change in farm population on average?" If you KNOW the definition, you should be able to recognize it.
Summary: Know your definitions, because everything is given to you in the output. You merely need to recognize what they are asking. Don't panic. You know this stuff.
2. TWO-WAY TABLES
Main Point: This is about calculation. Two-way tables assess relationships (aka, association between variables) for bivariate categorical data.
Marginal Distributions
These deal with "overalls". They are exclusively in the margins. Don't leave the margins. Okay? Because they are distributions, expect more than one number.
Conditional Distributions
These are based on a condition, or rather, a specific. They are still distributions, but they are based on the "inside" numbers.
Conditional Values
These are a singular value based on two conditions. The first condition is the total that governs.
TEST YOURSELF
In case the above didn't make much sense, let's practice!
Study in the Library mainly
What is the marginal distribution of years?
What is the marginal distribution of people who study in the library?
What is the conditional distribution of sophomores?
What is the conditional distribution of people who DO study in the library?
For those who are seniors, how many study in the library?
For those who study in the library, how many are seniors?
Answers:
1. 0.1677, .3829, .2974, .1518
2. 0.48, .515
3. 0.5619, .438
4. 0.294, .444, .1503 .... (keep going)
5. 0.354
6. 0.111
Summary: Know your calculations.
3. Sampling Distributions of x-bar.
Main Point: This is probably the most concept-heavy portion of the second test, and thus, the thing people have the hardest time with. Know. These. Concepts. Understand them well, and you won't have a problem.
What is a sampling distribution of x-bar? It is the distribution of sample means from every possible sample of a particular size n.
Know the difference between a population graph and a sampling distribution of x-bar graph. (here's a hint to remind you: population = individual, S.D. of x-bar = sample mean).
Central Limit Theorem: For a non-normal population, if n>or= 30, then the sampling. distribution of x-bar is approximately normal. (as a side note: For an already normal population, if n> or = 30, then the sampling distribution of x-bar is exactly normal.)
Know how to use the formula associated with sampling distributions of x-bar (i.e. z=x-bar-mu/sigma/sqrt(n)). Remember, you use it in the same way as the population z-score. But practice anyways.
Things to know: The standard deviation of a S.D. is SIGMA/SQRT(n).
The mean of a sampling distribution of x-bar is ALWAYS. ALWAYS. ALWAYS = to mu. Always. Doesn't matter what n is. Always. Always.
TEST YOURSELF:What happens to the following graphs?
Let's start with a population of 15,000 that is severely left skewed.
If I take a sample of 800 people and graph it, what does it look like?
If I take all possible samples of size n=10 and graph it, what does it look like?
If I take all possible samples of size n=600 and graph it, what does it look like?
Answers:
1. The key here is that I only took ONE SAMPLE. Remember, the CLT only applies to sampling distributions of x-bar. So, we would expect it to look like the population.
2. This is a sampling distribution of x-bar, however, n<30 so CLT doesn't apply. This graph would be more normal, but cannot be considered normal because the CLT doesn't apply.
3. This is a sampling distribution of x-bar and n>30, so the CLT applies and we have an approximately normal distribution.
As a side note, don't forget about the law of large numbers, which only deals with samples (not sampling distributions of x-bar). Check out your notes on that one.
Summary: Again this is concept heavy. Of course, it does require some calculations in way of the formula, but if you were okay with these on the first exam, you should be okay now.
4. THE SMALL STUFF
Be sure to go over your definitions for:
statistic versus parameters (be able to tell the difference)
Control Charts (remember the equation for the upper and lower limits aren't on your equation she
et. Memorize them!)Probability (know facts about the probability distribution and what it takes to have a proper one)
Response versus explanatory variables (be able to tell the difference).
And of course, brush up on knowing the different experimental designs!
GOOD LUCK!!
-Hillary
Subscribe to:
Posts (Atom)