For each of the following problems, answer all parts. You can either handwrite your answers or typeset your answers. In either case, submit the answers, stapled, at the beginning of class on Wednesday.
You will need to use R to answer some parts. You do not need to submit your R script or plots, but do sketch the plots for each Part e in your answers.
Experiment: We place five marbles in a jar, where there is one marble each of red, orange, yellow, green, and blue. We then shake the jar, and extract a single marble.
Write out the sample space for this experiment, and assign the appropriate probability to each simple event from the sample space.
Let \(U\) be position of the extracted marble’s color in the standard ordering of the colors, i.e. its position in ROYGBIV. State how \(U\) maps each element of the sample space to the element in its range.
State the probability mass function and cumulative distribution function for \(U\), and sketch a probability histogram for \(U\).
Simulate three draws from the jar using the following command in R. Write down the resulting value of \(U(s)\), and give the corresponding element(s) \(s\) of the sample space
sample(1:5, size = 1)
N = 10000
u = sample(1:5, size = N, replace = TRUE)
n = 1:N
S = cumsum(u)
Ubar = S/n
plot(n, Ubar, type = 'l')
Experiment: A baseball player has a batting average of 0.200. This means that for each at bat, he hits the ball 20% of the time. Suppose we denote a hit by H and a miss by M. We record the players performance on a single at bat.
Write out the sample space for this experiment, and assign the appropriate probability to each simple event from the sample space.
Let \(B\) be a binary coding of the player’s performance on a single at bat, where a hit is recorded as a 1 and a miss is recorded as a 0. State how \(B\) maps each element of the sample space to the element in its range.
State the probability mass function and cumulative distribution function for \(B\), and sketch a probability histogram for \(B\).
Simulate three at bats using the following command in R. Write down the resulting value of \(B(s)\), and give the corresponding element(s) \(s\) of the sample space
rbinom(n = 1, size = 1, prob = 0.2)
N = 10000
b = rbinom(n = N, size = 1, prob = 0.2)
n = 1:N
S = cumsum(b)
Bbar = S/n
plot(n, Bbar, type = 'l')
Experiment: We observe the pollination pattern of a bee as it flies from flower to flower. The bee only occasionally stays on a certain flower long enough to pollinate it. Suppose we observe the flower visitation pattern of the bee until it stays on a flower to pollinate it. Denote the outcome that it does not stay on a flower by N and the outcome that it does stay on a flower by S. Suppose from prior fieldwork, we know that bees stays at 1% of flowers.
Write out the sample space for this experiment, and assign the appropriate probability to each simple event from the sample space.
Let \(C\) be the number of flowers that the bee lands on before it stays to pollinate a flower. State how \(C\) maps each element of the sample space to the element in its range.
State the probability mass function and cumulative distribution function for \(C\), and sketch a probability histogram for \(C\).
Simulate three observations of the bee using the following command in R. Write down the resulting value of \(C(s)\), and give the corresponding element(s) \(s\) of the sample space
rgeom(n = 1, prob = 0.01)
N = 10000
c = rgeom(n = N, prob = 0.01)
n = 1:N
S = cumsum(c)
Cbar = S/n
plot(n, Cbar, type = 'l')
Choose 2 problems from Quizzes 3 – 6 which you were most uncertain about at the time of the quiz or now, and write up solutions to those problems. Ideally, you should do this without looking at your previous solutions or the solutions on eCampus, as practice for Exam 1.
Given your understanding of the lectures, performance on the quizzes and homeworks, study habits, and any other relevant circumstances, what percentage score do you expect to earn on Exam 1? Why? State your prediction, and write 3 to 4 sentences justifying your prediction.
As an incentive to give this some real thought and predict as accurately as possible, if your prediction is within \(\pm\) 5 percentage points of your Exam 1 percentage score, you will earn an additional 3 percentage points on your percentage score for Exam 1.