In this project, students will demonstrate their understanding of probability and the normal and binomial distributions.
Assume IQ scores are normally distributed with a mean of 100 and a standard deviation of 15. If a person is randomly selected, find each of the requested probabilities. Here, x, denotes the IQ of the randomly selected person.
# Probability of IQ greater than 65
pnorm(65, mean = 100, sd = 15, lower.tail = FALSE)
## [1] 0.9901847
# Probability of IQ less than 150
pnorm(150, mean = 100, sd = 15)
## [1] 0.9995709
Assume the same mean and standard deviation of IQ scores that was described in question 1.
qnorm(0.95, mean = 100, sd = 15)
## [1] 124.6728
The minimum IQ is 124.7.
pnorm(110, mean = 100, sd = 15, lower.tail = FALSE)
## [1] 0.2524925
There is a 25 percent chance that a randomly selected person has an IQ greater than 110.
(140 - 100) / 15
## [1] 2.666667
The z-score of 140 IQ is 2.67.
We mentioned in week 6 that a data value is considered “unusual” if it lies more than two standard deviations from the mean. Is an IQ of 140 considered unusual?
140 Is considered an “unusual” IQ as it is more than two standard deviations from the mean.
What is the probability of getting an IQ greater than 140?
pnorm(140, mean = 100, sd = 15, lower.tail = FALSE)
## [1] 0.003830381
The probability of an IQ greate than 140 is 0.383 percent
You are taking a 15-question multiple choice quiz and each question has 5 options (a,b,c,d,e) and you randomly guess every question.
0.2*15
## [1] 3
You can expect to answer 3 correctly on average.
dbinom(15, 15, 0.2)
## [1] 3.2768e-11
The probability is extremely low, practically zero.
dbinom(0, 15, 0.2)
## [1] 0.03518437
The probablility of getting all questions incorrect is 3.5 percent.
Consider still the 15-question multiple choice quiz that each question has 5 options (a,b,c,d,e) and you randomly guess every question.
How many questions does one need to answer correctly in order score exactly a 60%?
Nine questions answered correctly gives one 60%.
If a grade of 60% or lower is considered failing, then what is the probability of you failing? There is a 99.99% chance that you fail.
pbinom(size = 15, prob = 0.2, q = 9)
## [1] 0.9998868
pbinom(size = 15, prob = 0.2, q = 11, lower.tail = FALSE)
## [1] 1.011253e-06
Suppose you own a catering company. You hire local college students as servers. Not being the most reliable employees, there is an 80% chance that any one server will actually show up for a scheduled event. For a wedding scheduled on Saturday, you need at least 5 servers.
dbinom(size = 5, prob = 0.8, x = 5)
## [1] 0.32768
pbinom(size = 7, prob = 0.8, q = 4, lower.tail = FALSE)
## [1] 0.851968
rand_nums <- rnorm(mean = 51, sd = 7, n = 10000)
hist(rand_nums, breaks = 32)
length(rand_nums[rand_nums < 40])
## [1] 565
pnorm(mean = 51, sd = 7, q = 40) * 10000
## [1] 580.4157