I was asked a question; A student was late for college 0.25 of the time, what is the probability he is late 4 days in one college week. My answer was this:
L = Late, N = Not Late
L = 0.25, N = 0.75
if its a 7 day week
P(L+N)7 = L7 + (7C1)L6 N + (7C2)L5N2+(7C3)L4N3+(7C4)L3N4+…
P(4L, 3N) = (7C3)(0.25)4(0.75)3 = 0.057
If it’s a 5 day week
P(L+N)5 = L5+ (5C1)L4 N + (5C2)L3N2+(5C3)L2N3+(5C4)LN4+…
P(4L1N) = (5C1)(0.25)4(0.75) = 0.0146
Have I got this ok?


dbinomis binomial PDF: $X$ = days late per wk. Five day week. P(X = 4).dbinom(4, 5, .25)returns 0.01464844. Seven day week:dbinom(4, 7, .25)returns 0.05767822. // If it's at least 4, then you have a different problem. – BruceET Apr 29 '20 at 04:03