Professional Documents
Culture Documents
Exam II
Page 1 of 6
CE 307, Fall 2019 Name: ___________________________________
We have 2 different sets of statistics to consider here – traffic flow and left turners. The traffic
flow is a continuous normally distributed variable. Turning left is a binomial distribution (or if
you want to be fancy, you could use a poisson distribution).
a) P = 0.9 =NORM.INV(0.9,30,SQRT(25)) = 36.4 cars
b) P(X> 40) = 1 - P(X<40) =1-NORM.DIST(40,30,5,1) = 0.02275
c) P(X>6) = 1 – P(X<=6) =1-BINOM.DIST(6,32,0.125,1) = 0.096478
d) find value of x such that P = 75%. =BINOM.INV(35,0.125,0.75) = 6
(If you were fancy and tried poisson distribution, you fiddle with x until you get a value > 75%
=POISSON.DIST(6,35*1/8,1) . In both cases, 5 cars turn with about 70% frequency while 6 is
in the 80% range. We pick the value that’s greater than 75%, which is 6)
1 The values in this problem are completely made up. I don’t think I’ve ever actually taken a traffic class. I remember
designing a banked curve once for an assignment, but that’s about all I remember from the one transport class I took.
Page 2 of 6
CE 307, Fall 2019 Name: ___________________________________
2 That’s the name of the pizza joint I’m opening in this problem.
3 At least according to PMQ.com, which I assume stands for Pizza Magazine Quarterly
4 Do NOT convert into pounds or gallons or whatever. Leave it in ounces.
Page 3 of 6
CE 307, Fall 2019 Name: ___________________________________
Right or wrong, constant probability = bernouli trial and all the associated distributions. Let’s
write the probability and it’s complement: p_w = 0.2; p_r =0.8. pick appropriate for each
problem
a) n = 5 problems, p = 0.8, P(X>3) = P(4 or 5) =BINOM.DIST.RANGE(5,0.8,4,5) = 0.73728
b) n = 30 tests, p = 0.8, P(X<=15) =BINOM.DIST(15,30,0.8,1) = 0.000231
c) this is tricky. IF we get 4 wrong answers, we stop, so that’s negative binomial. And we
want to the 4 wrong answers to occur before test 10 (because that’s a normal stop).
Switching to p = 0.2 (we call a wrong answer a success), we can have at most 5 failures with
4 successes. =NEGBINOM.DIST(5,4,0.2,1) = 0.085642
d) If p = 0.2, then you can make a simple table of # wrong or # right (depending on how you
calculated it) with a binomial distribution, n = 5 trials, p = 0.2 (or 0.8) and calculate the
probability distribution for all of the outcomes, x = 0 through 5. Then simply add up all of the
5 Probably because they don’t know the simplest of things – like the fact that a fixed connection resists a moment.
Page 4 of 6
CE 307, Fall 2019 Name: ___________________________________
probabilities for 3 or more wrong (which equates to failing). If your spreadsheet is set up
properly, then part b, then simply adjust the p value until you get a sum around 33%.
wrong right p wrong right p
5 0 0.00032 5 0 0.011586
4 1 0.0064 4 1 0.08336
3 2 0.0512 3 2 0.239914
2 3 0.2048 2 3 0.345242
1 4 0.4096 1 4 0.248406
0 5 0.32768 0 5 0.071492
p 0.41
fail 0.05792 fail 0.33486
Page 5 of 6
CE 307, Fall 2019 Name: ___________________________________
0 1 2 3 4 5 6
Δx, meters
First, put a scale on the vertical axis. Recall that the continuous distribution has an area of 1. So find
height of triangle with area 1. 1 = 1/2*5*f => f = 0.4 @ x = 0
now write as an equation: f(x) = -0.4/5x + 0.4 = -0.08x + 0.4
5
b) sigma^2 = ∫ x 2 f ( x) dx− μ 2=∫ −0.08 x 3 +0.4 x 2 dx− μ 2 =−0.08 / 4 x 4 +0.4 /3 x 3−1.6667 2=1.3889
0
c) f(x = 1) = 0.32. Area (1-5) = 0.5*0.32*4 = 0.64. within 1 m then, is 1 – 0.64 = 0.36
(the lazy among you will realize that A and C can be calculated somewhat easily. A is simply the
centroid, 5/3, and C is just area math, as shown. B, unfortunately, involves integration)
Page 6 of 6