Area under the curve, Part I. (4.1, p. 142) What percent of a standard normal distribution \(N(\mu=0, \sigma=1)\) is found in each region? Be sure to draw a graph.
Citation for drawing area under curve: https://www.youtube.com/watch?v=HtXeTsx9ka0
mean <- 0
std <- 1
z <- -1.35
# Solving for x:
x <- z*std + mean
x
## [1] -1.35
# Finding probability
1 - pnorm(x, mean = 0, sd = 1)
## [1] 0.911492
# Graphing and shading area under normal curve
x = seq(from=-3, to=z, by=0.1)
y = dnorm(x, mean = 0, sd = 1)
plot(x,y, type = "l", col = "blue", main = "Normal Curve")
polygon(c(-3, x, z), c(0,y,0), col = 'red')
(b) \(Z > 1.48\)
mean <- 0
std <- 1
z <- 1.48
# Solving for x:
x <- z*std + mean
x
## [1] 1.48
# Finding probability
pnorm(x, mean = 0, sd = 1)
## [1] 0.9305634
# Graphing and shading area under normal curve
x = seq(from=-3, to=z, by=0.1)
y = dnorm(x, mean = 0, sd = 1)
plot(x,y, type = "l", col = "blue", main = "Normal Curve")
polygon(c(-3, x, 3), c(0,y,0), col = 'red')
(c) \(-0.4 < Z < 1.5\)
mean <- 0
std <- 1
z1 <- 1.48
z2 <- 1.5
# Solving for x:
x <- z*std + mean
x
## [1] 1.48
# Finding probability
pnorm(x, mean = 0, sd = 1)
## [1] 0.9305634
# Graphing and shading area under normal curve
x = seq(from=z1, to=z2, by=.1)
y = dnorm(x, mean = 0, sd = 1)
plot(x,y, type = "l", col = "blue", main = "Normal Curve")
polygon(c(-3, x, 3), c(0,y,0), col = 'red')
mean <- 0
std <- 1
z <- 2
# Solving for x:
x <- z*std + mean
x
## [1] 2
# Finding probability
pnorm(x, mean = 0, sd = 1)
## [1] 0.9772499
# Graphing and shading area under normal curve
x = seq(from=z1, to=z2, by=.1)
y = dnorm(x, mean = 0, sd = 1)
plot(x,y, type = "l", col = "blue", main = "Normal Curve")
polygon(c(-3, x, 3), c(0,y,0), col = 'red')
clearpage
Triathlon times, Part I (4.4, p. 142) 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:
Remember: a better performance corresponds to a faster finish.
N(μ=5261, sd=807) → Women, Ages 25 - 29
# leo
μ <- 4313
sd <- 583
x <- 4948
Z <- (x - μ) / sd
Z
## [1] 1.089194
# Mary
μ <- 5261
sd <- 807
x <- 5513
Z <- (x - μ) / sd
Z
## [1] 0.3122677
For Leo, the Z score is 1.089; the number of standard deviations is above the mean.As for Mary her Z score is 0.312, which is the number of standard deviations below the mean.
Did Leo or Mary rank better in their respective groups? Explain your reasoning. > Mary got a lower Zscore, 0.312, than Leo: 1.089. This indicates that Mary has a better rank in her group.
What percent of the triathletes did Leo finish faster than in his group?
Percent_Leo <- 1-pnorm(1.089)
Percent_Leo
## [1] 0.1380769
Percent_Mary <- 1-pnorm(0.312)
Percent_Mary
## [1] 0.3775203
clearpage
Heights of female college students Below are heights of 25 female college students.
\[ \stackrel{1}{54}, \stackrel{2}{55}, \stackrel{3}{56}, \stackrel{4}{56}, \stackrel{5}{57}, \stackrel{6}{58}, \stackrel{7}{58}, \stackrel{8}{59}, \stackrel{9}{60}, \stackrel{10}{60}, \stackrel{11}{60}, \stackrel{12}{61}, \stackrel{13}{61}, \stackrel{14}{62}, \stackrel{15}{62}, \stackrel{16}{63}, \stackrel{17}{63}, \stackrel{18}{63}, \stackrel{19}{64}, \stackrel{20}{65}, \stackrel{21}{65}, \stackrel{22}{67}, \stackrel{23}{67}, \stackrel{24}{69}, \stackrel{25}{73} \]
height <- 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)
summary(height)
## Min. 1st Qu. Median Mean 3rd Qu. Max.
## 54.00 58.00 61.00 61.52 64.00 73.00
pnorm(61.52+1*4.58,mean=61.52,sd=4.58)
## [1] 0.8413447
pnorm(61.52+2*4.58,mean=61.52,sd=4.58)
## [1] 0.9772499
pnorm(61.52+3*4.58,mean=61.52,sd=4.58)
## [1] 0.9986501
clearpage
Defective rate. (4.14, p. 148) 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.
pgeom(10-1,0.02)
## [1] 0.1829272
pgeom(100,0.02)
## [1] 0.8700328
mean <- (1/.02)
mean
## [1] 50
stand_dev <- sqrt((1-.02)/.02^2)
stand_dev
## [1] 49.49747
mean_d <- (1/.05)
mean_d
## [1] 20
stand_dev_d <- sqrt((1-.05)/0.05^2)
stand_dev_d
## [1] 19.49359
clearpage
Male children. 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.
dbinom(2,3,0.51)
## [1] 0.382347
(0.51^2)*0.49*3
## [1] 0.382347
t1 <- dbinom(2,3,0.51)
t1
## [1] 0.382347
t2 <- (0.51^2)*0.49*3
t2
## [1] 0.382347
t1 == t2
## [1] FALSE
For some reason, comparing these values returns FALSE, indicating they are not the same number. Yet, by looking at both values for t1 and t2, we can clearly see these are the same numbers.
The approach in part B would be much more tedious because we would have to write out 64 total possibilities, and count how many possible outcomes have 3 boys. Whereas, in part A, the function computes the probability automatically and with ease.
clearpage
Serving in volleyball. (4.30, p. 162) 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.
choose(9,2)*0.15^3*0.85^7
## [1] 0.03895012
Suppose she has made two successful serves in nine attempts. What is the probability that her 10th serve will be successful? > Because the serves are independent of each other, the probability of her 10th serve being successful is still 15%.
Even though parts (a) and (b) discuss the same scenario, the probabilities you calculated should be different. Can you explain the reason for this discrepancy? > A is asking for the probability of the THIRD successful serve happening on the 10th serve, whereas B is asking whether or not the 10th serve would be successful. But because of independence, B has a probability of 0.15 since ALL serves are independent of each other.