What percent of a standard normal distribution N ( mu =0, sd = 1) is found in each region? Be sure to draw a graph. (a) Z > - 1.13(b) Z < 0.18(c) Z > 8(d) |Z| < 0.5
##Taking code from this site for graphing: http://www.statmethods.net/advgraphs/probability.html
normalPlot <- function(mean=0,sd=1,lb,ub){
x <- seq(-4,4,length=100)*sd + mean
hx <- dnorm(x,mean,sd)
plot(x, hx, type="n",
main="Normal Distribution", axes=FALSE)
i <- x >= lb & x <= ub
lines(x, hx)
polygon(c(lb,x[i],ub), c(0,hx[i],0), col="red")
}
##a
1-pnorm(-1.13)
## [1] 0.8707619
normalPlot(lb=-1.13,ub=100)
##b
pnorm(0.18)
## [1] 0.5714237
normalPlot(lb=-100,ub=0.18)
##c
1-pnorm(8)
## [1] 6.661338e-16
normalPlot(lb=8,ub=100)
##d
pnorm(0.5)-pnorm(-0.5)
## [1] 0.3829249
normalPlot(lb=-0.5,ub=0.5)
In triathlons, it is common for racers to be placed into age and gender groups. Friends Leo and Mary both completed the Hermosa Beach Triathlon, where Leo competed in the Men, Ages 30 - 34 group while Mary competed in the Women, Ages 25 - 29 group. Leo completed the race in 1:22:28 (4948 seconds), while Mary completed the race in 1:31:53 (5513 seconds). Obviously Leo finished faster, but they are curious about how they did within their respective groups. Can you help them? Here is some information on the performance of their groups:
. The finishing times of the Men, Ages 30 - 34 group has a mean of 4313 seconds with a standard deviation of 583 seconds.
. The finishing times of the Women, Ages 25 - 29 group has a mean of 5261 seconds with a standard deviation of 807 seconds.
. The distributions of finishing times for both groups are approximately Normal.
Remember: a better performance corresponds to a faster finish.
Men: N(mu=4313,sd=583) Women: N(mu=5261, sd=807)
(4948-4313)/583
## [1] 1.089194
pnorm(1.09)
## [1] 0.8621434
(5513-5261)/807
## [1] 0.3122677
pnorm(0.31)
## [1] 0.6217195
The Z-Scores tells how Leo and Mary did respective to their own group. Leo’s Z-Score of 1.09 means he did worse than 86 percent of the population. Mary’s Z-Score of 0.31 means she did worse than 62% of the population.
With Leo’s having Z-score of 1.09 and Mary having 0.31, Mary did much better than Leo respective each person’s group, since lower seconds means, the person took less time to finish the race.
Approximately 14%.
Approximately 38%.
Yes, it would change. The answers are based on normal distribution assumption. If the distribution is skewed and especially if the number of participants is low, then other types of analysis has to be used to determine how the person did in respective group.
Below are heights of 25 female college students.
(a) The mean height is 61.52 inches with a standard deviation of 4.58 inches. Use this information to determine if the heights approximately follow the 68-95-99.7% Rule.
exam <- c(54, 55, 56, 56, 57, 58, 58, 59, 60, 60, 60, 61, 61, 62, 62, 63, 63, 63, 64, 65, 65, 67, 67, 69, 73)
##68% Range
ub = 61.52+4.58
lb = 61.52-4.58
sum(exam > lb & exam < ub) / length(exam)
## [1] 0.68
##95% Range
ub = 61.52+2*4.58
lb = 61.52-2*4.58
sum(exam > lb & exam < ub) / length(exam)
## [1] 0.96
##99.7% Range
ub = 61.52+3*4.58
lb = 61.52-3*4.58
sum(exam > lb & exam < ub) / length(exam)
## [1] 1
Indeed, it follows the rule.
qqnormsim <- function(dat){
par(mfrow = c(3,3))
qqnorm(dat, main = "Normal QQ Plot (Data)")
qqline(dat)
for(i in 1:8){
simnorm <- rnorm(n = length(dat), mean = mean(dat), sd = sd(dat))
qqnorm(simnorm,main = "Normal QQ Plot (Sim)")
qqline(simnorm)
}
par(mfrow = c(1,1))
}
qqnormsim(exam)
It looks like it approximately follows a normal distribution since the histogram vs normal distribution graph follows similarily and most QQ plots show the dots close the line. However, there are some QQ plots from simulation that shows that there is a chance that it might be skewed. I would use the data as normal distribution with some reservation.
A machine that produces a special type of transistor (a component of computers) has a 2% defective rate. The production is considered a random process where each transistor is independent of the others.
p = .02
n = 10
(1-p)^(n-1)*p
## [1] 0.01667496
n=100
(1-p)^n
## [1] 0.1326196
## Number of Transistors to see before first
1/p
## [1] 50
## SD
sqrt((1-p)/p^2)
## [1] 49.49747
p=.05
## Number of Transistors to see before first
1/p
## [1] 20
## SD
sqrt((1-p)/p^2)
## [1] 19.49359
Increasing the probability decreases both the wait time and standard deviation.
While it is often assumed that the probabilities of having a boy or a girl are the same, the actual probability of having a boy is slightly higher at 0.51. Suppose a couple plans to have 3 kids.
Pb = 0.51
dbinom(2,3,Pb)
## [1] 0.382347
gbb bgb bbg
3*0.51*0.51*0.49
## [1] 0.382347
Matches!
There are going to be 56 different combinations to write out. That’s too many to write than just using the formula.
A not-so-skilled volleyball player has a 15% chance of making the serve, which involves hitting the ball so it passes over the net on a trajectory such that it will land in the opposing team’s court. Suppose that her serves are independent of each other.
dbinom(2, 9, 0.15)*0.15
## [1] 0.03895012
0.15 since every shot is independent.
They are not the same. (a) is looking at the probability of success including making two serves within 9 attempts.