From 2c79e680f477232429bbcc90e24a2a9aaa7e3218 Mon Sep 17 00:00:00 2001 From: andyeisenberg Date: Thu, 5 Nov 2026 11:56:16 +0000 Subject: [PATCH] Added some Exam 2 Review answers --- source/main.ptx | 4 +- source/review/Exam-2-Review.ptx | 1038 +++++++++++++++++++------------ 2 files changed, 632 insertions(+), 410 deletions(-) diff --git a/source/main.ptx b/source/main.ptx index fa994b5..b83220a 100644 --- a/source/main.ptx +++ b/source/main.ptx @@ -65,8 +65,8 @@ Exam Review - + + diff --git a/source/review/Exam-2-Review.ptx b/source/review/Exam-2-Review.ptx index 44bfa7c..6cbb76f 100644 --- a/source/review/Exam-2-Review.ptx +++ b/source/review/Exam-2-Review.ptx @@ -6,553 +6,775 @@

Use the following problems to prepare for the exam. - There will be in-class review on Tuesday 3/31 and Thursday 4/2. + There will be in-class review on Tuesday 11/3 and Thursday 11/5. Your recitation this week will also be exam review.

- Allowed Materials

- You will be allowed to use a scientific calculator (not a graphing calculator, not a calculator app on your phone). - You may not share a calculator with another student; you must use your own calculator. + You will be allowed to use a scientific calculator (not a + graphing calculator, not a calculator app on your phone). + You may not share a calculator with another student; you must use your own + calculator.

You may bring a standard 3 in x 5 in index card with prepared notes. You may use both sides of the notecard. - You must put your full name in the top right corner of the card, and turn it in along with your exam. + You must put your full name in the top right corner of the card, and turn + it in along with your exam.

- - -

- Suppose a coin has probability 0.4 of coming up heads, and we flip the coin 100 times. - Let S be the number of heads. - Estimate the probability that 34 \leq S \leq 44. -

-
- - -

- \Pr(34 \leq S \leq 44) \approx 0.8212 - 0.0918 = 0.7294. -

-
-
- - - -

- Suppose a fair die is rolled 100 times, and let m be the average value of the rolls. - Estimate the probability that 3.45 \leq m \leq 3.55. -

-
- - -

- \Pr(3.45 \leq m \leq 3.55) \approx 0.6255 - 0.3745 = 0.2510. -

-
-
- - - -

- The heights of men in the US have a mean of 69 in and a variance of about 9 in^2, and the heights of women in the US have a mean of 63.5 in with a variance of 6.25 in^2. -

-
- - - +

- Suppose the heights of 30 men are sampled, and a sample mean m is taken. - Find the expected value and variance of m. + Suppose a coin has an unknown probability of coming up heads. + We perform the experiment in five independent trials, during which it + takes 4, 5, 4, 3, and 6 flips to see our first heads in each trial. + What is the maximum likelihood estimation for the probability of the + coin coming up heads on a flip?

- \E(m) = 69 and \Var(m) = 0.3. + 5/22 \approx 0.227.

-
+
- - +

- Estimate the probability that m \geq 69.5. + A particular store owner wants to approximate the average hourly rate + at which customers come into the store. + They observe 80 customers enter during a particular 4-hour shift. + What is the maximum likelihood estimation for the hourly customer + rate?

- \Pr(m \geq 69.5) \approx 1 - 0.8186 = 0.1814. + 20.

-
+ - - +

- If the sampled group was women, estimate the probability that m \geq 64. + A radioactive material emits particles at an unknown probabilistic + rate \lambda particles per minute. + We observe particles emitted at times 1.1, 1.7, 1.3, 2.2, 1.9, and 1.8 + minutes. + Write the likelihood function \mathcal{L}(\lambda) based on + this data. + What is the maximum likelihood estimation for \lambda?

- \E(m) = 63.5 and \Var(m) \approx 0.208. \Pr(m \geq 64) \approx 1 - 0.8643 = 0.1357. + \mathcal{L}(\lambda) = \left( \lambda e^{-1.1\lambda} \right) \left( \lambda e^{-1.7\lambda} \right) \left( \lambda e^{-1.3\lambda} \right) \left( \lambda e^{-2.2\lambda} \right) \left( \lambda e^{-1.9\lambda} \right) \left( \lambda e^{-1.8\lambda} \right). + The MLE is 0.6.

-
- + - - -

- Suppose we flip a coin 100 times and count 60 heads. - Let p be the (unknown) probability that the coin comes up heads on a flip. - Give an approximate 95% confidence interval for the value of p. -

-
- - -

- [0.504, 0.696]. -

-
-
- - - -

- Suppose in a sample of 100 people, 12 are left-handed. -

-
- - - +

- Give a 95% confidence interval for the proportion p of left-handed people. + Suppose a parameter \theta takes values in [0, 1] with + likelihood function + \mathcal{L}(\theta) = \sqrt{\theta} - \theta^2. + Find the maximum likelihood estimation of \theta.

- [0.056, 0.184]. + \left(\frac{1}{4}\right)^{2/3} \approx 0. 397.

-
+
- - +

- Give a 90% confidence interval. + Suppose a coin has probability 0.4 of coming up heads, and we flip the + coin 100 times. + Let S be the number of heads. + Estimate the probability that 34 \leq S \leq 44.

- [0.066, 0.174]. + \Pr(34 \leq S \leq 44) \approx 0.8212 - 0.0918 = 0.7294.

-
- + - - -

- The weights of five mice are measured and recorded below. - Give a 95% confidence interval for the sample mean weight of mice. - (Pretend 5 measurements is large enough for the CLT to apply.) -

- - - - - - - mouse i - weight W_i (g) - - - - 1 - 26 - - - - 2 - 32 - - - - 3 - 33 - - - - 4 - 20 - - - - 5 - 29 - - -
-
- - -

- [23.39, 32.61]. -

-
-
- - - -

- The heights of five plants are measured and recorded below. - Give a 95% confidence interval around the sample mean for the heights of the plants. - (Pretend 5 measurements is large enough for the CLT to apply.) -

- - - - - - - plant i - height H_i (in) - - - - 1 - 15 - - - - 2 - 14 - - - - 3 - 18 - - - - 4 - 21 - - - - 5 - 17 - - -
-
- - -

- [14.61, 19.39]. -

-
-
- - - -

- In each of the following scenarios, determine whether we should use a 1-tailed test or a 2-tailed test. -

-
- - - +

- We have a coin which we've flipped many times, seeing an above-average number of heads. - We suspect the coin comes up heads more often than a fair coin would. + Suppose a fair die is rolled 100 times, and let m be the + average value of the rolls. + Estimate the probability that 3.45 \leq m \leq 3.55.

-
+ +

+ \Pr(3.45 \leq m \leq 3.55) \approx 0.6255 - 0.3745 = 0.2510. +

+
+
- + + +

+ The heights of men in the US have a mean of 69 in and a variance of + about 9 in^2, and the heights of women in the US have a mean of + 63.5 in with a variance of 6.25 in^2. +

+
+ + + +

+ Suppose the heights of 30 men are sampled, and a sample mean + m is taken. + Find the expected value and variance of m. +

+
+ + +

+ \E(m) = 69 and \Var(m) = 0.3. +

+
+
+ + + +

+ Estimate the probability that m \geq 69.5. +

+
+ + +

+ \Pr(m \geq 69.5) \approx 1 - 0.8186 = 0.1814. +

+
+
+ + + +

+ If the sampled group was women, estimate the probability that + m \geq 64. +

+
+ + +

+ \E(m) = 63.5 and \Var(m) \approx 0.208. + \Pr(m \geq 64) \approx 1 - 0.8643 = 0.1357. +

+
+
+
+ +

- We find a coin on the street and wonder whether or not it's a fair coin. + Suppose we flip a coin 100 times and count 60 heads. + Let p be the (unknown) probability that the coin comes up heads + on a flip. + Give an approximate 95% confidence interval for the value of p.

-
+ +

+ [0.504, 0.696]. +

+
+ - + + +

+ Suppose in a sample of 100 people, 12 are left-handed. +

+
+ + + +

+ Give a 95% confidence interval for the proportion p of + left-handed people. +

+
+ + +

+ [0.056, 0.184]. +

+
+
+ + + +

+ Give a 90% confidence interval. +

+
+ + +

+ [0.066, 0.174]. +

+
+
+
+ +

- We suspect there will be a difference in average weight of mice caught during the summer versus during the winter. + The weights of five mice are measured and recorded below. + Give a 95% confidence interval for the sample mean weight of mice. + (Pretend 5 measurements is large enough for the CLT to apply.)

+ + + + <tabular halign="center"> + <row header="yes" bottom="minor"> + <cell>mouse <m>i</m></cell> + <cell>weight <m>W_i</m> (g)</cell> + </row> + + <row> + <cell>1</cell> + <cell>26</cell> + </row> + + <row> + <cell>2</cell> + <cell>32</cell> + </row> + + <row> + <cell>3</cell> + <cell>33</cell> + </row> + + <row> + <cell>4</cell> + <cell>20</cell> + </row> + + <row> + <cell>5</cell> + <cell>29</cell> + </row> + </tabular> + </table> </statement> - </task> + <answer> + <p> + <!-- avg weight = 28 --> <!-- sum of squares = 4030 --> + <!-- s^2 = 27.5 --> <!-- \sqrt{s^2/n} \approx 2.35 --> + <m>[23.39, 32.61]</m>. + </p> + </answer> + </exercise> - <task> + <exercise> <statement> <p> - In a medical study, a group of patients are gathered and the proportion experiencing particular symptoms is measured. - A new drug intended to eliminate these symptoms is administered, after which the proportion experiencing symptoms is measured again. + The heights of five plants are measured and recorded below. + Give a 95% confidence interval around the sample mean for the heights + of the plants. + (Pretend 5 measurements is large enough for the CLT to apply.) </p> + + <table> + <title/> + <tabular halign="center"> + <row header="yes" bottom="minor"> + <cell>plant <m>i</m></cell> + <cell>height <m>H_i</m> (in)</cell> + </row> + + <row> + <cell>1</cell> + <cell>15</cell> + </row> + + <row> + <cell>2</cell> + <cell>14</cell> + </row> + + <row> + <cell>3</cell> + <cell>18</cell> + </row> + + <row> + <cell>4</cell> + <cell>21</cell> + </row> + + <row> + <cell>5</cell> + <cell>17</cell> + </row> + </tabular> + </table> </statement> - </task> - </exercise> - <exercise> - <statement> - <p> - Suppose we find a coin and wonder whether it's fair. - As a first test, we decide to flip the coin 200 times and count the number of heads. - If we see 112 heads, should we accept or reject the null hypothesis of a fair coin at a significance level of 0.05? - </p> - </statement> - </exercise> + <answer> + <p> + <!-- avg weight = 17 --> <!-- sum of squares = 1475 --> + <!-- s^2 = 7.5 --> <!-- \sqrt{s^2/n} \approx 1.22 --> + <m>[14.61, 19.39]</m>. + </p> + </answer> + </exercise> - <exercise> - <statement> - <p> - Suppose we have a coin which we suspect comes up heads more often than a fair coin would. - As a first test, we decide to flip the coin 200 times and count the number of heads. - If we see 112 heads, should we accept or reject the null hypothesis of a fair coin at a significance level of 0.05? - </p> - </statement> - </exercise> + <exercise> + <introduction> + <p> + In each of the following scenarios, determine whether we should use a + 1-tailed test or a 2-tailed test. + </p> + </introduction> - <exercise> - <statement> - <p> - Suppose we find a six-sided die and wonder whether it's fair. - As a first test, we decide to roll the die 100 times and count the number of times it comes up 1. - If we roll 22 1's, should we accept or reject the null hypothesis of a fair die at a significance level of 0.05? - </p> - </statement> - </exercise> + <task> + <statement> + <p> + We have a coin which we've flipped many times, seeing an + above-average number of heads. + We suspect the coin comes up heads more often than a fair coin + would. + </p> + </statement> - <exercise> - <statement> - <p> - Suppose a particular plant when grown outdoors has an average height of 39 in with a variance of 20 in<m>^2</m>. - We suspect that growing this plant in a greenhouse will increase its height. - A sample of 50 plants grown in a greenhouse has an average height of 40 in. - Is this significant enough data to reject the null hypothesis of equal means at the <m>p = 0.05</m> significance level? - </p> - </statement> - </exercise> + <answer> + <p> + 1-tailed. + </p> + </answer> + </task> - <exercise> - <statement> - <p> - A farmer is testing an experimental new plant fertilizer that is supposed to increase the weight of a particular apple variety. - A control sample of 25 apples grown using the usual fertilizer have a mean weight of 75 grams and a sample variance of 90 grams<m>^2</m> (for an individual apple). - An experimental sample of 25 apples grown using the new fertilizer have a mean weight of 79 grams and a sample variance of 90 grams<m>^2</m>. - </p> - </statement> - </exercise> + <task> + <statement> + <p> + We find a coin on the street and wonder whether or not it's a fair + coin. + </p> + </statement> - <exercise> - <statement> - <p> - We have an established factory which produces coins that are close to fair. - We're opening up a second factory, and we'd like to ensure the machines are calibrated to produce coins which behave similarly to the ones produced in the established factory. - We pick one sample coin from each factory, and flip each sample coin 100 times. - The coin from the established factory flips 52 heads in 100 flips. - The coin from the new factory flips 62 heads in 100 flips. - Is this strong enough evidence to reject the null hypothesis that the two factories produce similar coins at a 0.05 significance level? - </p> - </statement> - </exercise> + <answer> + <p> + 2-tailed. + </p> + </answer> + </task> - <exercise> - <statement> - <p> - Suppose we find a coin and wonder whether it's fair. - As a first test, we decide to flip the coin 200 times and count the number of heads, <m>S</m>. - What values of <m>S</m> would be extreme enough to reject the null hypothesis of a fair coin? If the coin actually has a 0.6 probability of coming up heads, what is the power of this test? - </p> - </statement> - </exercise> + <task> + <statement> + <p> + We suspect there will be a difference in average weight of mice + caught during the summer versus during the winter. + </p> + </statement> - <exercise> - <statement> - <p> - Suppose we have a coin which we suspect comes up heads more often than a fair coin would. - As a first test, we decide to flip the coin 200 times and count the number of heads, <m>S</m>. - What values of <m>S</m> would be extreme enough to reject the null hypothesis of a fair coin? If the coin actually has a 0.6 probability of coming up heads, what is the power of this test? - </p> - </statement> - </exercise> + <answer> + <p> + 2-tailed. + </p> + </answer> + </task> - <exercise> - <introduction> - <p> - Suppose we find a six-sided die and wonder whether it's fair. - As a first test, we decide to roll the die 100 times and count the number of times it comes up 1. - The expected number of 1's is 50/3, with a variance of 125/9. - </p> - </introduction> + <task> + <statement> + <p> + In a medical study, a group of patients are gathered and the + proportion experiencing particular symptoms is measured. + A new drug intended to eliminate these symptoms is administered, + after which the proportion experiencing symptoms is measured again. + </p> + </statement> + <answer> + <p> + 1-tailed. + </p> + </answer> + </task> + </exercise> - <task> + <exercise> <statement> <p> - Using a normal approximation, what is the smallest number of 1's greater than 50/3 that would be extreme enough to reject the null hypothesis of a fair die? + Suppose we find a coin and wonder whether it's fair. + As a first test, we decide to flip the coin 200 times and count the + number of heads. + If we see 112 heads, should we accept or reject the null hypothesis of + a fair coin at a significance level of 0.05? </p> </statement> - </task> + <answer> + <p> + The <m>p</m>-value is <m>0.1032</m>, so we do not reject the null + hypothesis. + </p> + </answer> + </exercise> - <task> + <exercise> <statement> <p> - Using a normal approximation, what is the greatest number of 1's less than 50/3 that would be extreme enough to reject the null hypothesis of a fair die? + Suppose we have a coin which we suspect comes up heads more often than + a fair coin would. + As a first test, we decide to flip the coin 200 times and count the + number of heads. + If we see 112 heads, should we accept or reject the null hypothesis of + a fair coin at a significance level of 0.05? </p> </statement> - </task> + <answer> + <p> + The <m>p</m>-value is <m>0.0516</m>, so we do not reject the null + hypothesis. + </p> + </answer> + </exercise> - <task> + <exercise> <statement> <p> - Suppose that this die is weighted so that it rolls a 1 with probability 0.2. - What would be the power of our test? + Suppose we find a six-sided die and wonder whether it's fair. + As a first test, we decide to roll the die 100 times and count the + number of times it comes up 1. + If we roll 22 1's, should we accept or reject the null hypothesis of a + fair die at a significance level of 0.05? </p> </statement> - </task> + <answer> + <p> + The <m>p</m>-value is <m>0.1936</m>, so we do not reject the null + hypothesis. + </p> + </answer> + </exercise> - <task> + <exercise> <statement> <p> - Suppose we roll the die 100 times and see 23 1's. - Use the maximum likelihood value for the probability of rolling a 1 to calculate the power of the test. + Suppose a particular plant when grown outdoors has an average height + of 39 in with a variance of 20 in<m>^2</m>. + We suspect that growing this plant in a greenhouse will increase its + height. + A sample of 50 plants grown in a greenhouse has an average height of + 40 in. + Is this significant enough data to reject the null hypothesis of equal + means at the <m>p = 0.05</m> significance level? </p> </statement> - </task> - </exercise> - <exercise> - <statement> - <p> - Suppose a particular plant when grown outdoors has an average height of 39 in with a variance of 20 in<m>^2</m>. - We suspect that growing this plant in a greenhouse will increase its height. - We take the average height of a sample of 50 plants grown in a greenhouse. - What is the minimum average height of this sample that would be extreme enough to reject the null hypothesis of equal means at the <m>p = 0.05</m> significance level? If the plants, when grown in a greenhouse, would truly have an average height of 41 in, what is the power of our test? - </p> - </statement> - </exercise> + <answer> + <p> + The <m>p</m>-value is <m>0.0571</m>, so we do not reject the null + hypothesis. + </p> + </answer> + </exercise> - <exercise> - <statement> - <p> - A store owner wants to determine how much shelf space to allocate to each of the drinks that they sell. - They survey their customers about their favorite drinks. - Is the data below consistent with the null hypothesis that each type of drink will be equally preferred? - </p> - - <table> - <title> - - - - drink type - water - soda - tea - coffee - energy drinks - - - - favorite - 28 - 17 - 15 - 26 - 14 - - -
-
-
- - - -

- A particular drug is administered in 100 independent trials. - In each trial, the drug is administered to four people, and we count how many respond to the drug. - The table below shows how many trials have each different count of people who respond to the drug. -

- - - - - - - # who respond to drug - 0 - 1 - 2 - 3 - 4 - - - - # of trials - 3 - 11 - 31 - 34 - 21 - - -
-
- - - +

- Is the data consistent with a binomial distribution with parameter \theta = 0.7? + A farmer is testing an experimental new plant fertilizer that is + supposed to increase the weight of a particular apple variety. + A control sample of 25 apples grown using the usual fertilizer have a + mean weight of 75 grams and a sample variance of 90 grams^2 + (for an individual apple). + An experimental sample of 25 apples grown using the new fertilizer + have a mean weight of 79 grams and a sample variance of 90 + grams^2. + Is this sufficient evidence to reject the null hypothesis that the new + plant fertilizer has no effect on the weights of the apples?

-
+ +

+ The p-value is 0.0681, so we do not reject the null + hypothesis. +

+
+
- +

- What is the total number of people who have been administered the drug? What is the total number who have responded to it? What is the maximum likelihood estimation \widehat{\theta} for the probability that a person will respond to the drug? + We have an established factory which produces coins that are close to + fair. + We're opening up a second factory, and we'd like to ensure the + machines are calibrated to produce coins which behave similarly to the + ones produced in the established factory. + We pick one sample coin from each factory, and flip each sample coin + 100 times. + The coin from the established factory flips 52 heads in 100 flips. + The coin from the new factory flips 62 heads in 100 flips. + Is this strong enough evidence to reject the null hypothesis that the + two factories produce similar coins at a 0.05 significance level?

-
+ +

+ The p-value is 0.1738, so we do not reject the null + hypothesis. +

+
+ - +

- Is the data consistent with a binomial distribution with the MLE value of \widehat{\theta}? + Suppose we find a coin and wonder whether it's fair. + As a first test, we decide to flip the coin 200 times and count the + number of heads, S. + What values of S would be extreme enough to reject the null + hypothesis of a fair coin? + If the coin actually has a 0.6 probability of coming up heads, what is + the power of this test?

-
- + + +

+ (Note: Normal approximation was used for these calculations.) +

+ +

+ We can reject the null hypothesis if we see greater than or equal to + 115 heads, or if we see less than or equal to 85 heads. +

+ +

+ If the coin has a 0.6 probability of coming up heads, then the + power of the test is 0.7852. +

+
+ + + + +

+ Suppose we have a coin which we suspect comes up heads more often than + a fair coin would. + As a first test, we decide to flip the coin 200 times and count the + number of heads, S. + What values of S would be extreme enough to reject the null + hypothesis of a fair coin? + If the coin actually has a 0.6 probability of coming up heads, what is + the power of this test? +

+
+
+ + + +

+ Suppose we find a six-sided die and wonder whether it's fair. + As a first test, we decide to roll the die 100 times and count the + number of times it comes up 1. + The expected number of 1's is 50/3, with a variance of 125/9. +

+
+ + + +

+ Using a normal approximation, what is the smallest number of 1's + greater than 50/3 that would be extreme enough to reject the null + hypothesis of a fair die? +

+
+
+ + + +

+ Using a normal approximation, what is the greatest number of 1's + less than 50/3 that would be extreme enough to reject the null + hypothesis of a fair die? +

+
+
+ + + +

+ Suppose that this die is weighted so that it rolls a 1 with + probability 0.2. + What would be the power of our test? +

+
+
+ + + +

+ Suppose we roll the die 100 times and see 23 1's. + Use the maximum likelihood value for the probability of rolling a 1 + to calculate the power of the test. +

+
+
+
+ + + +

+ Suppose a particular plant when grown outdoors has an average height + of 39 in with a variance of 20 in^2. + We suspect that growing this plant in a greenhouse will increase its + height. + We take the average height of a sample of 50 plants grown in a + greenhouse. + What is the minimum average height of this sample that would be + extreme enough to reject the null hypothesis of equal means at the + p = 0.05 significance level? + If the plants, when grown in a greenhouse, would truly have an average + height of 41 in, what is the power of our test? +

+
+
+ + + +

+ A store owner wants to determine how much shelf space to allocate to + each of the drinks that they sell. + They survey their customers about their favorite drinks. + Is the data below consistent with the null hypothesis that each type + of drink will be equally preferred? +

+ + + + <tabular> + <row header="yes" bottom="minor"> + <cell halign="center">drink type</cell> + <cell halign="center">water</cell> + <cell halign="center">soda</cell> + <cell halign="center">tea</cell> + <cell halign="center">coffee</cell> + <cell halign="center">energy drinks</cell> + </row> + + <row> + <cell halign="center">favorite</cell> + <cell halign="center">28</cell> + <cell halign="center">17</cell> + <cell halign="center">15</cell> + <cell halign="center">26</cell> + <cell halign="center">14</cell> + </row> + </tabular> + </table> + </statement> + + <answer> + <p> + <m>\chi^2 = 8.5</m>, the critical value with 4 degrees of freedom is + <m>9.488</m>, so the data is consistent with the null hypothesis. + </p> + </answer> + </exercise> + + <exercise> + <introduction> + <p> + A particular drug is administered in 100 independent trials. + In each trial, the drug is administered to four people, and we count + how many respond to the drug. + The table below shows how many trials have each different count of + people who respond to the drug. + </p> + + <table> + <title/> + <tabular> + <row header="yes" bottom="minor"> + <cell halign="center"># who respond to drug</cell> + <cell halign="center">0</cell> + <cell halign="center">1</cell> + <cell halign="center">2</cell> + <cell halign="center">3</cell> + <cell halign="center">4</cell> + </row> + + <row> + <cell halign="center"># of trials</cell> + <cell halign="center">3</cell> + <cell halign="center">11</cell> + <cell halign="center">31</cell> + <cell halign="center">34</cell> + <cell halign="center">21</cell> + </row> + </tabular> + </table> + </introduction> + + <task> + <statement> + <p> + Is the data consistent with a binomial distribution with parameter + <m>p = 0.7</m>? + </p> + </statement> + </task> + + <task> + <statement> + <p> + What is the total number of people who have been administered the + drug? + What is the total number who have responded to it? + What is the maximum likelihood estimation for the probability + <m>p</m> that a person will respond to the drug? + </p> + </statement> + </task> + + <task> + <statement> + <p> + Is the data consistent with a binomial distribution with the MLE + value of <m>p</m>? + </p> + </statement> + </task> + </exercise> </exercises> </section> \ No newline at end of file