Probabilistic Methods

Danylo Bevziuk
Index 45564 · Basic

List 1Events & Probability

Sample spaces and event probabilities

Task 1 — Coin Tossing

A fair coin is tossed once, then twice, then three times. Describe the sample space for each experiment and give its size. What is an elementary outcome?

One toss

A single toss yields heads (H) or tails (T). Each is an elementary outcome.

Ω1={H,T},Ω1=2\Omega_1 = \{H,\, T\}, \quad |\Omega_1| = 2
Two tosses

Each outcome is an ordered pair of results from the first and second toss.

Ω2={HH,HT,TH,TT},Ω2=4\Omega_2 = \{HH,\, HT,\, TH,\, TT\}, \quad |\Omega_2| = 4
Three tosses

Each outcome is an ordered triple. Since each toss has 2 outcomes, by the multiplication rule there are 232^3 total outcomes.

Ω3=23=8|\Omega_3| = 2^3 = 8
Full sample space for three tosses

Listing all eight triples explicitly:

Ω3={HHH,HHT,HTH,HTT,THH,THT,TTH,TTT}\Omega_3 = \{HHH,\, HHT,\, HTH,\, HTT,\, THH,\, THT,\, TTH,\, TTT\}
General pattern

For nn tosses the sample space has 2n2^n elements, since tosses are independent and each doubles the count.

Ωn=2n|\Omega_n| = 2^n
Tree diagram (two tosses)

Each toss branches into H or T; the four equally likely leaves form Ω2\Omega_2.

Two coin tosses
1/21/21/21/21/21/2startHHHP=1/4HTP=1/4TTHP=1/4TTP=1/4
Answer
Ω1=2,Ω2=4,Ω3=8|\Omega_1| = 2,\quad |\Omega_2| = 4,\quad |\Omega_3| = 8
Explanation tip: An elementary outcome is one complete ordered sequence of toss results; the space size doubles with each extra toss because tosses are independent and each has exactly two outcomes.

Task 2 — Rolling a Die

A fair six-sided die is rolled once, then twice, then three times. Describe the sample space for each experiment and give its size.

One roll

A single roll of a standard die shows one of six faces.

Ω1={1,2,3,4,5,6},Ω1=6\Omega_1 = \{1,\, 2,\, 3,\, 4,\, 5,\, 6\}, \quad |\Omega_1| = 6
Two rolls

Each outcome is an ordered pair (i,j)(i, j) where i,j{1,,6}i, j \in \{1,\ldots,6\}. By the multiplication rule:

Ω2={(i,j):i,j{1,2,3,4,5,6}},Ω2=6×6=36\Omega_2 = \{(i,j) : i,j \in \{1,2,3,4,5,6\}\}, \quad |\Omega_2| = 6 \times 6 = 36
Three rolls

Each outcome is an ordered triple (i,j,k)(i, j, k). Applying the multiplication rule again:

Ω3=63=216|\Omega_3| = 6^3 = 216
General pattern

For nn rolls of a kk-sided die the sample space has knk^n elements.

Ωn=6n|\Omega_n| = 6^n
Sample-space size chart

Each extra die multiplies the count by 6.

Sample-space size grows as 6^k
Answer
Ω1=6,Ω2=36,Ω3=216|\Omega_1| = 6,\quad |\Omega_2| = 36,\quad |\Omega_3| = 216
Explanation tip: Each roll adds an independent factor of 6 to the count; the sample space for nn rolls consists of all ordered nn-tuples from {1,,6}\{1,\ldots,6\}, giving 6n6^n equally likely elementary outcomes.

Task 3 — Drawing Cards

A standard deck has 52 cards. (a) One card is drawn: describe the sample space. (b) Two cards are drawn with replacement: find the sample space size. (c) Two cards are drawn without replacement: find the sample space size.

  1. a)(a) One card drawn at random.
  2. b)(b) Two cards drawn with replacement (card is returned before second draw).
  3. c)(c) Two cards drawn without replacement.
Part (a) — one card

The sample space consists of all 52 individual cards in the deck.

Ω1={c:c is a card in the deck},Ω1=52\Omega_1 = \{c : c \text{ is a card in the deck}\}, \quad |\Omega_1| = 52
Part (b) — two draws with replacement

After recording the first card it is returned, so the second draw also has 52 choices. Each outcome is an ordered pair.

Ω2with=52×52=522=2704|\Omega_2^{\text{with}}| = 52 \times 52 = 52^2 = 2704
Part (c) — two draws without replacement

The first draw has 52 choices; since the card is NOT returned, the second draw has only 51 choices. Order matters (we record which card came first).

Ω2without=52×51=2652|\Omega_2^{\text{without}}| = 52 \times 51 = 2652
Comparison

Without replacement the space is smaller because repeated outcomes (drawing the same card twice) are impossible.

2652=2704522652 = 2704 - 52
Counting two-card draws

Replacement keeps all 52 cards available for the second draw; without replacement one card is gone.

Counting two-card draws
Answer
Ω1=52,Ω2with=2704,Ω2without=2652|\Omega_1| = 52,\quad |\Omega_2^{\text{with}}| = 2704,\quad |\Omega_2^{\text{without}}| = 2652
Explanation tip: With replacement every draw is independent and the sizes multiply freely; without replacement each draw reduces the available pool by one, so the second factor decreases from 52 to 51.

Task 4 — Weekly Weather

Each day the weather can be in exactly one of three states: Sunny (S), Cloudy (C), or Rainy (R). Describe the sample space for one day, two days, and a full week (7 days), and give its size in each case.

One day

There are three possible states for a single day.

Ω1={S,C,R},Ω1=3\Omega_1 = \{S,\, C,\, R\}, \quad |\Omega_1| = 3
Two days

Each outcome is an ordered pair of daily states, giving 3×3=93 \times 3 = 9 equally likely combinations.

Ω2={SS,SC,SR,CS,CC,CR,RS,RC,RR},Ω2=9\Omega_2 = \{SS,\, SC,\, SR,\, CS,\, CC,\, CR,\, RS,\, RC,\, RR\}, \quad |\Omega_2| = 9
Seven days (one week)

Each outcome is an ordered 7-tuple of daily states. Applying the multiplication rule seven times:

Ω7=37=2187|\Omega_7| = 3^7 = 2187
General formula

For nn days with kk weather states the sample space has knk^n elements.

Ωn=3n|\Omega_n| = 3^n
Weather outcomes chart

Each extra day triples the number of sequences.

Weather outcomes = 3^k
Answer
Ω1=3,Ω2=9,Ω7=37=2187|\Omega_1| = 3,\quad |\Omega_2| = 9,\quad |\Omega_7| = 3^7 = 2187
Explanation tip: The multiplication rule applies because each day's weather is chosen independently from the same set of 3 states; for 7 days the count is 37=21873^7 = 2187 distinct weekly weather sequences.

Task 5 — Buffon's Needle (Sample Space)

A needle of length LL is dropped at random onto a floor ruled with parallel lines spaced dd apart (with LdL \le d). Describe the sample space and explain why it is continuous (uncountably infinite).

Identifying the random parameters

The position of the dropped needle is completely determined by two real-valued quantities: (1) the distance xx from the needle's center to the nearest line, and (2) the acute angle θ\theta that the needle makes with the direction of the lines.

x[0,d2],θ[0,π2]x \in \left[0,\, \frac{d}{2}\right], \quad \theta \in \left[0,\, \frac{\pi}{2}\right]
Sample space

An elementary outcome is the ordered pair (x,θ)(x, \theta). The sample space is the rectangle in the plane:

Ω={(x,θ):x[0,d2],  θ[0,π2]}\Omega = \left\{(x,\theta) : x \in \left[0,\tfrac{d}{2}\right],\; \theta \in \left[0,\tfrac{\pi}{2}\right]\right\}
Why the space is continuous

Both xx and θ\theta are real numbers ranging over intervals. Each interval contains uncountably many points (by the uncountability of R\mathbb{R}), so Ω\Omega itself is uncountably infinite — it cannot be listed or enumerated.

Ω=c(cardinality of the continuum)|\Omega| = \mathfrak{c} \quad (\text{cardinality of the continuum})
Uniform probability measure

Because Ω\Omega is continuous, probabilities are assigned via area: the probability of any event AΩA \subseteq \Omega is proportional to the area of AA relative to the total area of Ω\Omega.

P(A)=Area(A)Area(Ω)=Area(A)d2π2=4Area(A)πdP(A) = \frac{\text{Area}(A)}{\text{Area}(\Omega)} = \frac{\text{Area}(A)}{\dfrac{d}{2} \cdot \dfrac{\pi}{2}} = \frac{4\,\text{Area}(A)}{\pi d}
Interactive simulation

Drop needles and watch the crossing rate. The continuous sample space (x,θ)(x,\theta) has uncountably many outcomes.

Buffon's Needle — Monte Carlo
Crossings (red): 150 / 300
Empirical P: 0.500
Theoretical 2L/(πd): 0.509
π estimate = 2L·N/(d·C): 3.2000

Each needle crosses a line (red) when its half-projection onto the vertical exceeds the distance to the nearest line. The crossing rate converges to 2L/(πd).

Answer
Ω={(x,θ):x[0,d2],  θ[0,π2]},Ω= (uncountable)\Omega = \left\{(x,\theta) : x \in \left[0,\tfrac{d}{2}\right],\; \theta \in \left[0,\tfrac{\pi}{2}\right]\right\}, \quad |\Omega| = \infty\text{ (uncountable)}
Explanation tip: Unlike discrete experiments, Buffon's needle has a continuous sample space because both the position xx and angle θ\theta are real-valued; probabilities are computed as ratios of areas (a 2D Lebesgue measure), not ratios of counts.

Task 6 — Coin Probabilities

A fair coin is tossed. Compute the following probabilities: (a) heads on one toss; (b) exactly one head in two tosses; (c) exactly two heads in three tosses; (d) at least one tail in three tosses; (e) all tosses the same in three tosses.

  1. a)(a) A1A_1: heads on a single toss.
  2. b)(b) A2A_2: exactly one head in two tosses.
  3. c)(c) A3A_3: exactly two heads in three tosses.
  4. d)(d) B3B_3: at least one tail in three tosses.
  5. e)(e) C3C_3: all three tosses show the same face.
Part (a) — $A_1$: heads

The sample space has 2 equally likely outcomes; only 1 is heads.

A1={H},P(A1)=12=0.5A_1 = \{H\}, \quad P(A_1) = \frac{1}{2} = 0.5
Part (b) — $A_2$: exactly one head in two tosses

The sample space is {HH,HT,TH,TT}\{HH, HT, TH, TT\} with 4 equally likely outcomes. The favorable outcomes are HTHT and THTH.

A2={HT,TH},P(A2)=24=12=0.5A_2 = \{HT,\, TH\}, \quad P(A_2) = \frac{2}{4} = \frac{1}{2} = 0.5
Part (c) — $A_3$: exactly two heads in three tosses

From Ω3=8|\Omega_3| = 8 outcomes, choose the ones with exactly 2 heads: HHT,HTH,THHHHT, HTH, THH.

A3={HHT,HTH,THH},P(A3)=38=0.375A_3 = \{HHT,\, HTH,\, THH\}, \quad P(A_3) = \frac{3}{8} = 0.375
Binomial check for (c)

Alternatively, using the binomial formula with n=3n=3, k=2k=2, p=1/2p=1/2:

P(A3)=(32)(12)2(12)1=31412=38P(A_3) = \binom{3}{2}\left(\frac{1}{2}\right)^2\left(\frac{1}{2}\right)^1 = 3 \cdot \frac{1}{4} \cdot \frac{1}{2} = \frac{3}{8}
Part (d) — $B_3$: at least one tail in three tosses

It is easier to use the complement: the only outcome with NO tail is HHHHHH.

P(B3)=1P({HHH})=118=78=0.875P(B_3) = 1 - P(\{HHH\}) = 1 - \frac{1}{8} = \frac{7}{8} = 0.875
Part (e) — $C_3$: all tosses the same

The favorable outcomes are HHHHHH (all heads) and TTTTTT (all tails), giving 2 out of 8.

C3={HHH,TTT},P(C3)=28=14=0.25C_3 = \{HHH,\, TTT\}, \quad P(C_3) = \frac{2}{8} = \frac{1}{4} = 0.25
Event probabilities chart

Comparing all five probabilities side by side.

Event probabilities
Answer
P(A1)=12,  P(A2)=12,  P(A3)=38,  P(B3)=78,  P(C3)=14P(A_1)=\tfrac{1}{2},\; P(A_2)=\tfrac{1}{2},\; P(A_3)=\tfrac{3}{8},\; P(B_3)=\tfrac{7}{8},\; P(C_3)=\tfrac{1}{4}
Explanation tip: All five probabilities use the classical definition (favorable outcomes divided by total outcomes) on the finite equally-likely space; for B3B_3 the complement rule is the most efficient approach.

Task 7 — Die Probabilities

A fair six-sided die is rolled once and twice. Compute the following probabilities: (a) an even number on one roll; (b) a number greater than 4 on one roll; (c) sum equals 7 on two rolls; (d) both dice show the same number; (e) sum is at least 10 on two rolls.

  1. a)(a) A1A_1: result is even on a single roll.
  2. b)(b) B1B_1: result is greater than 4 on a single roll.
  3. c)(c) A2A_2: sum of two dice equals 7.
  4. d)(d) B2B_2: both dice show the same number.
  5. e)(e) C2C_2: sum of two dice is at least 10.
Part (a) — $A_1$: even

Even faces are {2,4,6}\{2, 4, 6\} — three out of six equally likely outcomes.

A1={2,4,6},P(A1)=36=12=0.5A_1 = \{2,\,4,\,6\}, \quad P(A_1) = \frac{3}{6} = \frac{1}{2} = 0.5
Part (b) — $B_1$: greater than 4

Faces greater than 4 are {5,6}\{5, 6\} — two out of six.

B1={5,6},P(B1)=26=130.333B_1 = \{5,\,6\}, \quad P(B_1) = \frac{2}{6} = \frac{1}{3} \approx 0.333
Part (c) — $A_2$: sum equals 7

The pairs (i,j)(i,j) with i+j=7i+j=7 are: (1,6),(2,5),(3,4),(4,3),(5,2),(6,1)(1,6),(2,5),(3,4),(4,3),(5,2),(6,1) — exactly 6 favorable pairs out of 36.

P(A2)=636=160.167P(A_2) = \frac{6}{36} = \frac{1}{6} \approx 0.167
Part (d) — $B_2$: doubles

Doubles are (1,1),(2,2),(3,3),(4,4),(5,5),(6,6)(1,1),(2,2),(3,3),(4,4),(5,5),(6,6) — six pairs out of 36.

P(B2)=636=160.167P(B_2) = \frac{6}{36} = \frac{1}{6} \approx 0.167
Part (e) — $C_2$: sum $\ge$ 10

Listing pairs with sum 10\ge 10: (4,6),(5,5),(5,6),(6,4),(6,5),(6,6)(4,6),(5,5),(5,6),(6,4),(6,5),(6,6) — six pairs out of 36.

P(C2)=636=160.167P(C_2) = \frac{6}{36} = \frac{1}{6} \approx 0.167
Grid: sum = 7

The six favorable cells lie on the anti-diagonal.

123456
1.....X
2....X.
3...X..
4..X...
5.X....
6X.....
Die probabilities chart

All five event probabilities for one and two dice.

Answer
P(A1)=12,  P(B1)=13,  P(A2)=16,  P(B2)=16,  P(C2)=16P(A_1)=\tfrac{1}{2},\; P(B_1)=\tfrac{1}{3},\; P(A_2)=\tfrac{1}{6},\; P(B_2)=\tfrac{1}{6},\; P(C_2)=\tfrac{1}{6}
Explanation tip: Parts (c), (d), and (e) each have exactly 6 favorable outcomes out of 36, so they all equal 1/61/6 — a useful coincidence to highlight when presenting to a professor to show mastery of enumeration.

Task 8 — Card Probabilities

One or two cards are drawn from a standard 52-card deck. Compute: (a) P(heart); (b) P(king); (c) P(not a face card); (d) P(both hearts) with replacement; (e) P(both hearts) without replacement.

  1. a)(a) One card: probability it is a heart.
  2. b)(b) One card: probability it is a king.
  3. c)(c) One card: probability it is not a face card (Jack, Queen, King).
  4. d)(d) Two cards with replacement: both are hearts.
  5. e)(e) Two cards without replacement: both are hearts.
Part (a) — P(heart)

There are 13 hearts in a deck of 52 cards.

P(heart)=1352=14=0.25P(\text{heart}) = \frac{13}{52} = \frac{1}{4} = 0.25
Part (b) — P(king)

There are 4 kings (one per suit) in 52 cards.

P(king)=452=1130.077P(\text{king}) = \frac{4}{52} = \frac{1}{13} \approx 0.077
Part (c) — P(not a face card)

Face cards are Jacks, Queens, Kings: 3×4=123 \times 4 = 12 total. Non-face cards: 5212=4052 - 12 = 40.

P(not face card)=4052=10130.769P(\text{not face card}) = \frac{40}{52} = \frac{10}{13} \approx 0.769
Part (d) — both hearts, with replacement

With replacement, draws are independent; each has probability 1/41/4 of being a heart.

P(both hearts, with repl.)=14×14=116=0.0625P(\text{both hearts, with repl.}) = \frac{1}{4} \times \frac{1}{4} = \frac{1}{16} = 0.0625
Part (e) — both hearts, without replacement

The first draw: 13 hearts out of 52. Given the first was a heart, 12 hearts remain out of 51.

P(both hearts, without repl.)=1352×1251=1562652=1170.059P(\text{both hearts, without repl.}) = \frac{13}{52} \times \frac{12}{51} = \frac{156}{2652} = \frac{1}{17} \approx 0.059
Card probabilities chart

All five card event probabilities compared.

Answer
P()=14,  P(K)=113,  P(not face)=1013,  P(both,with)=116,  P(both,without)=117P(\heartsuit)=\tfrac{1}{4},\; P(K)=\tfrac{1}{13},\; P(\text{not face})=\tfrac{10}{13},\; P(\text{both}\heartsuit,\text{with})=\tfrac{1}{16},\; P(\text{both}\heartsuit,\text{without})=\tfrac{1}{17}
Explanation tip: Comparing parts (d) and (e) illustrates how removing a card from the deck makes subsequent draws dependent and slightly reduces the probability; 1/16>1/171/16 > 1/17 because replacement keeps all 13 hearts available for the second draw.

Task 9 — Weather Probabilities

Each day the weather is independently Sunny (S), Cloudy (C), or Rainy (R), each with probability 1/31/3. Compute: (a) P(both weekend days sunny); (b) P(Wed, Thu, Fri all rainy); (c) P(at least one sunny day in a week); (d) P(no rainy day in a week); (e) P(exactly two sunny days in a week).

  1. a)(a) Both Saturday and Sunday are sunny.
  2. b)(b) Wednesday, Thursday, and Friday are all rainy.
  3. c)(c) At least one of the 7 days in the week is sunny.
  4. d)(d) None of the 7 days in the week is rainy.
  5. e)(e) Exactly two of the 7 days in the week are sunny.
Part (a) — both weekend days sunny

Saturday and Sunday are independent; each has probability 1/31/3 of being sunny.

P(Sat sunnySun sunny)=13×13=190.111P(\text{Sat sunny} \cap \text{Sun sunny}) = \frac{1}{3} \times \frac{1}{3} = \frac{1}{9} \approx 0.111
Part (b) — three consecutive rainy days

Wednesday, Thursday, and Friday are independent; each has probability 1/31/3 of being rainy.

P(Wed, Thu, Fri all rainy)=(13)3=1270.037P(\text{Wed, Thu, Fri all rainy}) = \left(\frac{1}{3}\right)^3 = \frac{1}{27} \approx 0.037
Part (c) — at least one sunny day in 7

Use the complement: "no sunny day in 7" means each day is Cloudy or Rainy, with probability 2/32/3 each.

P(at least one sunny)=1(23)7=11282187=205921870.941P(\text{at least one sunny}) = 1 - \left(\frac{2}{3}\right)^7 = 1 - \frac{128}{2187} = \frac{2059}{2187} \approx 0.941
Part (d) — no rainy day in 7

Each day must be Sunny or Cloudy (probability 2/32/3). The 7 days are independent.

P(no rainy day)=(23)7=12821870.059P(\text{no rainy day}) = \left(\frac{2}{3}\right)^7 = \frac{128}{2187} \approx 0.059
Part (e) — exactly two sunny days in 7

This is a binomial probability with n=7n=7, k=2k=2 successes (sunny), p=1/3p=1/3, q=2/3q=2/3.

P(exactly 2 sunny)=(72)(13)2(23)5=211932243=67221870.307P(\text{exactly 2 sunny}) = \binom{7}{2}\left(\frac{1}{3}\right)^2\left(\frac{2}{3}\right)^5 = 21 \cdot \frac{1}{9} \cdot \frac{32}{243} = \frac{672}{2187} \approx 0.307
Weather probabilities chart

All five weather event probabilities compared.

Answer
19,  127,  20592187,  1282187,  6722187\tfrac{1}{9},\; \tfrac{1}{27},\; \tfrac{2059}{2187},\; \tfrac{128}{2187},\; \tfrac{672}{2187}
Explanation tip: Parts (c) and (d) are complementary events summing to 1 (2059/2187+128/2187=12059/2187 + 128/2187 = 1), which provides a useful self-check; part (e) applies the binomial model since each day is an independent trial with the same probability of success.

Task 10 — Buffon's Needle Probabilities

A needle of length LdL \le d is dropped uniformly at random on a floor with parallel lines spaced dd apart. The needle's position is (x,θ)(x, \theta) where x[0,d/2]x \in [0, d/2] is the distance from the center to the nearest line and θ[0,π/2]\theta \in [0, \pi/2] is the acute angle with the lines. Compute: (a) P(needle crosses a line); (b) P(no crossing); (c) P(angle less than π/6\pi/6); (d) P(center within d/4d/4 of a line); (e) P(crosses AND angle >π/4> \pi/4).

  1. a)(a) Event AA: the needle crosses a line.
  2. b)(b) Event BB: the needle does not cross any line.
  3. c)(c) Event CC: the angle satisfies θ<π/6\theta < \pi/6.
  4. d)(d) Event DD: the center is within d/4d/4 of the nearest line.
  5. e)(e) Event EE: the needle crosses a line AND the angle satisfies θ>π/4\theta > \pi/4.
Area of the sample space

The sample space is a rectangle in the (x,θ)(x, \theta) plane. Its total area is:

Area(Ω)=d2π2=πd4\text{Area}(\Omega) = \frac{d}{2} \cdot \frac{\pi}{2} = \frac{\pi d}{4}
Crossing condition

The needle crosses a line when the projection of its half-length onto the perpendicular to the lines exceeds xx, i.e., when xL2sinθx \le \frac{L}{2}\sin\theta.

A={(x,θ):0xL2sinθ,  θ[0,π2]}A = \left\{(x,\theta) : 0 \le x \le \frac{L}{2}\sin\theta,\; \theta \in \left[0,\frac{\pi}{2}\right]\right\}
Part (a) — P(crossing)

Compute the area of AA by integrating over θ\theta, then divide by the total area.

P(A)=0π/2L2sinθdθπd4=L2[cosθ]0π/2πd4=L2πd4=2LπdP(A) = \frac{\displaystyle\int_0^{\pi/2} \frac{L}{2}\sin\theta\,d\theta}{\dfrac{\pi d}{4}} = \frac{\dfrac{L}{2}[-\cos\theta]_0^{\pi/2}}{\dfrac{\pi d}{4}} = \frac{\dfrac{L}{2}}{\dfrac{\pi d}{4}} = \frac{2L}{\pi d}
Part (b) — P(no crossing)

Event BB is the complement of AA.

P(B)=1P(A)=12LπdP(B) = 1 - P(A) = 1 - \frac{2L}{\pi d}
Part (c) — P(angle $< \pi/6$)

The angle θ\theta is uniform on [0,π/2][0, \pi/2], so the probability of any sub-interval is proportional to its length.

P(C)=π/6π/2=130.333P(C) = \frac{\pi/6}{\pi/2} = \frac{1}{3} \approx 0.333
Part (d) — P(center within $d/4$ of a line)

The distance xx is uniform on [0,d/2][0, d/2], so P(xd/4)P(x \le d/4) is the fraction of the interval [0,d/2][0,d/2] covered by [0,d/4][0,d/4].

P(D)=d/4d/2=12=0.5P(D) = \frac{d/4}{d/2} = \frac{1}{2} = 0.5
Part (e) — P(crosses AND $\theta > \pi/4$)

Event EE restricts the crossing condition to θ(π/4,π/2)\theta \in (\pi/4, \pi/2). Its area is computed by integrating the crossing bound over this sub-range:

Area(E)=π/4π/2L2sinθdθ=L2[cosθ]π/4π/2=L2(0+22)=L24\text{Area}(E) = \int_{\pi/4}^{\pi/2} \frac{L}{2}\sin\theta\,d\theta = \frac{L}{2}\left[-\cos\theta\right]_{\pi/4}^{\pi/2} = \frac{L}{2}\left(0 + \frac{\sqrt{2}}{2}\right) = \frac{L\sqrt{2}}{4}
Part (e) — final probability

Divide the favorable area by the total area of Ω\Omega:

P(E)=L2/4πd/4=L2πd=2LπdP(E) = \frac{L\sqrt{2}/4}{\pi d/4} = \frac{L\sqrt{2}}{\pi d} = \frac{\sqrt{2}\,L}{\pi d}
Interactive: estimate the crossing probability

The empirical crossing rate converges to 2L/(πd)2L/(\pi d); the slider changes L/dL/d.

Buffon's Needle — Monte Carlo
Crossings (red): 142 / 300
Empirical P: 0.473
Theoretical 2L/(πd): 0.509
π estimate = 2L·N/(d·C): 3.3803

Each needle crosses a line (red) when its half-projection onto the vertical exceeds the distance to the nearest line. The crossing rate converges to 2L/(πd).

Answer
P(A)=2Lπd,  P(B)=12Lπd,  P(C)=13,  P(D)=12,  P(E)=2LπdP(A)=\dfrac{2L}{\pi d},\; P(B)=1-\dfrac{2L}{\pi d},\; P(C)=\dfrac{1}{3},\; P(D)=\dfrac{1}{2},\; P(E)=\dfrac{\sqrt{2}\,L}{\pi d}
Explanation tip: Buffon's needle is the canonical example of geometric probability — probabilities are areas in the parameter space (x,θ)(x, \theta); the classical result P(A)=2L/(πd)P(A) = 2L/(\pi d) has historically been used to estimate π\pi by repeated physical trials.