Question: R studio coding problem, Binomial distribution: Suppose a student has 50% chance of scoring a perfect score in an exam with randomly selected questions. Each
R studio coding problem, Binomial distribution:
Suppose a student has 50% chance of scoring a perfect score in an exam with randomly selected questions. Each student will be provided 5 attempts.
a)Compute and plot the probability distribution for the number of perfect scores over the 5 attempts.
b)What is the probability that a student will score a perfect score in exactly 2 out of the 5 attempts?
c)What is the probability that a student will score a perfect score in at least 2 out of the 5 attempts?
d)Repeat a), b) & c) if the student has 75% chance of scoring a perfect score.
e)Repeat a), b) & c) if the student has 25% chance of scoring a perfect score.
f)What do you infer from the shape of the above distributions?
g)Simulate the number of perfect scores over 5 attempts for 1000 students for the three scenarios above (50%, 75%, 25%). Show the side-by-side barplot of the frequencies of successes for the three scenarios.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
