Answer:
a) 0.271 = 27.1% probability that all fail on their first submissions
b) 0.981 = 98.1% probability that at least four fail on their first submissions
c) 0.019 = 1.9% probability that less than four fail on their first submissions
d) The mean number who will fail is 5.81.
e) The variance is 0.988, while the standard deviation is 0.994.
Explanation:
For each student, there are only two possible outcomes. Either their first program run will fail, or it wont. The probability of the first program run of a student failing is independent of the first program run of other students. So we use the binomial probability distribution to solve this question.
Binomial probability distribution
The binomial probability is the probability of exactly x successes on n repeated trials, and X can only have two outcomes.
In which
is the number of different combinations of x objects from a set of n elements, given by the following formula.
And p is the probability of X happening.
The expected value of the binomial distribution is:
The variance of the binomial distribution is:
The standard deviation of the binomial distribution is:
In this question, we have that:
83% of all students taking a beginning programming course fail to get their first program to run on first submission. Sample of 7 students. This means that
(a) all fail on their first submissions
This is
. So
0.271 = 27.1% probability that all fail on their first submissions;
(b) at least four fail on their first submissions
This is
0.981 = 98.1% probability that at least four fail on their first submissions.
(c) less than four fail on their first submissions
Either less than four fail, or at least four fail. The sum of the probabilities of these events is 100% = 1. So
From b),
. So
0.019 = 1.9% probability that less than four fail on their first submissions.
(d) what is the mean number who will fail?
Expected value, so
The mean number who will fail is 5.81.
(e) what are the variance and standard deviation of the number who will fail?
Variance:
Standard deviation:
The variance is 0.988, while the standard deviation is 0.994.