Home / Use of Bayes’ theorem for a maximum of three events AA HL Paper 3

IB Mathematics AHL 4.13 Use of Bayes’ theorem for a maximum of three events AA HL Paper 3

Question

This question explores the probability of graphs of randomly generated quadratic functions having a specified number of x-intercepts.

In parts (a) to (f), consider quadratic functions \(f(x) = ax^2 + bx + c\), where coefficients \(a\), \(b\), and \(c\) are randomly generated by rolling an unbiased six-sided die three times, taking the value on the uppermost face.

For example, rolling a 2, 3, and 5 generates \(f(x) = 2x^2 + 3x + 5\).

(a) Explain why there are 216 possible quadratic functions that can be generated using this method [2].

(b) The coefficients \(a = 1\), \(b = 4\), \(c = 4\) form \(f(x) = x^2 + 4x + 4\). Verify that this graph has only one x-intercept [3].

(c) By considering the discriminant, show that the probability of such a quadratic function having only one x-intercept is \(\frac{5}{216}\) [4].

(d) For quadratic functions with two distinct x-intercepts, determine the set of possible values of \(ac\) [3].

(e)(i) For \(ac = 1\), show that there are four quadratic functions with two distinct x-intercepts [3].

(e)(ii) For \(ac = 2\), show that there are eight quadratic functions with two distinct x-intercepts [3].

(f) Let \(p\) be the probability of a quadratic function having two distinct x-intercepts. Using the approach in part (e), or otherwise, find \(p\) [3].

(g) For a quadratic function \(f(x) = x^2 + 2Zx + 1\), where \(Z \sim N(0, 1)\), find the probability that the graph has two x-intercepts [3].

(h) Given that \(f(x)\) has two x-intercepts, \(X_1 = -Z – \sqrt{Z^2 – 1}\) and \(X_2 = -Z + \sqrt{Z^2 – 1}\), find the probability that both \(X_1\) and \(X_2\) are greater than 0.5 [3].

▶️ Answer/Explanation
Markscheme Solution

Note: Coefficients \(a\), \(b\), \(c\) are integers from 1 to 6 unless specified. Use standard normal CDF values: \(\Phi(1) \approx 0.841345\), \(\Phi(1.25) \approx 0.894350\).

(a)

Each coefficient \(a\), \(b\), \(c\) has 6 choices (die faces 1 to 6). Total functions:

\[ 6 \times 6 \times 6 = 6^3 = 216 \] (M1)(A1)

[2 marks]

(b)

For \(f(x) = x^2 + 4x + 4\):

\[ x^2 + 4x + 4 = (x + 2)^2 = 0 \implies x = -2 \] (M1)(A1)

Discriminant: \(\Delta = 4^2 – 4 \cdot 1 \cdot 4 = 16 – 16 = 0\), confirming one root (A1)

One x-intercept at \(x = -2\).

[3 marks]

(c)

One x-intercept: \(\Delta = b^2 – 4ac = 0 \implies b^2 = 4ac\) (M1). Possible \(b^2\): 1, 4, 9, 16, 25, 36:

\(b^2 = 4\): \(ac = 1\), \((a, b, c) = (1, 2, 1)\) (1 case).

\(b^2 = 16\): \(ac = 4\), \((1, 4, 4), (2, 4, 2), (4, 4, 1)\) (3 cases).

\(b^2 = 36\): \(ac = 9\), \((3, 6, 3)\) (1 case) (M1)(A1).

Total: 5. Probability: \(\frac{5}{216}\) (A1).

[4 marks]

(d)

Two x-intercepts: \(\Delta = b^2 – 4ac > 0 \implies 4ac < b^2 \leq 36 \implies ac < 9\) (M1).

Pairs: \(ac = 1: (1, 1)\); \(ac = 2: (1, 2), (2, 1)\); \(ac = 3: (1, 3), (3, 1)\); \(ac = 4: (1, 4), (2, 2), (4, 1)\); \(ac = 5: (1, 5), (5, 1)\); \(ac = 6: (1, 6), (2, 3), (3, 2), (6, 1)\); \(ac = 8: (2, 4), (4, 2)\).

Set: \(\{1, 2, 3, 4, 5, 6, 8\}\) (A1)(A1).

[3 marks]

(e)(i)

For \(ac = 1\), \((a, c) = (1, 1)\), \(\Delta = b^2 – 4\):

\(b = 3, 4, 5, 6 \implies \Delta > 0\). Triples: \((1, 3, 1), (1, 4, 1), (1, 5, 1), (1, 6, 1)\) (M1)(A1).

Number: 4 (A1).

[3 marks]

(e)(ii)

For \(ac = 2\), \((a, c) = (1, 2), (2, 1)\), \(\Delta = b^2 – 8\):

\(b = 3, 4, 5, 6 \implies \Delta > 0\). Triples: \((1, 3, 2), (1, 4, 2), (1, 5, 2), (1, 6, 2), (2, 3, 1), (2, 4, 1), (2, 5, 1), (2, 6, 1)\) (M1)(A1).

Number: 8 (A1).

[3 marks]

(f)

For \(\Delta > 0\):

\(ac = 1\): 4; \(ac = 2\): 8; \(ac = 3\): \((1, 3), (3, 1)\), \(b = 4, 5, 6\), 6 cases; \(ac = 4\): \((1, 4), (2, 2), (4, 1)\), \(b = 5, 6\), 6 cases; \(ac = 5\): \((1, 5), (5, 1)\), \(b = 5, 6\), 4 cases; \(ac = 6\): \((1, 6), (2, 3), (3, 2), (6, 1)\), \(b = 5, 6\), 8 cases; \(ac = 8\): \((2, 4), (4, 2)\), \(b = 6\), 2 cases (M1).

Total: \(4 + 8 + 6 + 6 + 4 + 8 + 2 = 38\) (A1).

\[ p = \frac{38}{216} = \frac{19}{108} \] (A1).

[3 marks]

(g)

For \(f(x) = x^2 + 2Zx + 1\), \(\Delta = 4Z^2 – 4\):

\(\Delta > 0 \implies Z^2 > 1 \implies |Z| > 1\) (M1).

\[ P(|Z| > 1) = 2 \cdot (1 – \Phi(1)) \approx 2 \cdot 0.158655 = 0.31731 \approx 0.317 \] (A1)(A1).

[3 marks]

(h)

Given \(\Delta > 0\), \(|Z| > 1\). Require \(X_1 = -Z – \sqrt{Z^2 – 1} > 0.5\), \(X_2 = -Z + \sqrt{Z^2 – 1} > X_1\):

For \(Z < -1\), solve \(-Z – \sqrt{Z^2 – 1} > 0.5 \implies -0.5 > Z + \sqrt{Z^2 – 1} \implies -1.25 < Z < -1\) (M1)(A1).

\[ P(-1.25 < Z < -1) = \Phi(-1) – \Phi(-1.25) \approx 0.158655 – 0.105650 = 0.053005 \]

\[ P(|Z| > 1) \approx 0.31731 \]

\[ P(X_1 > 0.5, X_2 > 0.5 \mid |Z| > 1) = \frac{0.053005}{0.31731} \approx 0.167 \] (A1).

[3 marks]

Question

This question considers two models for random boosts in a computer game, where each action has a chance of being boosted, providing a benefit to the player.

In the first model, the probability of a boost is constant. In the second model, the boost probability increases by 0.2 after each non-boosted action, resetting to 0.2 after a boost.

(a) Suppose the probability of a boost is 0.1.

(i) Find the probability that the first boost occurs on the third action [2].

(ii) Find the probability that at least one boost occurs in the first six actions [3].

(b) Suppose the probability of a boost is \( p \), where \( 0 < p < 1 \). Let \( X \) be the number of actions until the first boost.

(i) Explain why the probability that the first boost occurs on the \( x \)-th action is \( p(1-p)^{x-1} \) [2].

(ii) Write an expression, using sigma notation, for \( E(X) \) in terms of \( x \) and \( p \) [2].

(c) Consider the infinite geometric series with first term \( a \) and common ratio \( r \), \( |r| < 1 \):

\[ a + ar + ar^2 + ar^3 + \dots = \frac{a}{1-r} \]

(i) By differentiating both sides with respect to \( r \), find an expression for \( \sum_{n=1}^{\infty} n a r^{n-1} \) [3].

(ii) Hence, show that \( E(X) = \frac{1}{p} \) [2].

(d) Given \( \text{Var}(X) = \frac{1-p}{p^2} \), find \( E(X) \) and \( \text{Var}(X) \) when \( p = 0.1 \) [2].

(e) In the second model, the initial boost probability is 0.2, increasing by 0.2 per non-boosted action, resetting to 0.2 after a boost. Show that the probability of the first boost on the third action is 0.288 [3].

(f) Let \( Y \) be the number of actions until the first boost in the second model. Explain why \( Y \leq 5 \) [2].

(g) For the second model, the probability distribution of \( Y \) is:

\[ \begin{array}{|c|c|c|c|c|c|} \hline y & 1 & 2 & 3 & 4 & 5 \\ \hline P(Y = y) & 0.2 & m & 0.288 & n & 0.0384 \\ \hline \end{array} \]

(i) Find the values of \( m \) and \( n \) [2].

(ii) Show that \( E(Y) = 2.5104 \) [2].

(iii) Find \( \text{Var}(Y) \) [2].

(h) For the two models:

(i) Use the expression from (c)(ii) to find \( p \) such that \( E(X) = E(Y) \) [2].

(ii) Find \( \text{Var}(X) \) for this \( p \) [2].

(iii) Determine, with a reason, which model provides a more consistent experience for boosted actions [2].

▶️ Answer/Explanation
Markscheme Solution

Note: Model 1 uses a geometric distribution with constant boost probability \( p \). Model 2 has boost probability starting at 0.2, increasing by 0.2 per non-boosted action, resetting to 0.2 after a boost. Numerical answers are rounded to 3 significant figures unless specified.

(a)(i)

First boost on third action (\( p = 0.1 \)):

No boost on first two actions (\( 1 – 0.1 = 0.9 \)), boost on third (0.1) (M1).

\[ P = 0.9^2 \times 0.1 = 0.81 \times 0.1 = 0.081 \] (A1)

[2 marks]

(a)(ii)

At least one boost in six actions:

Use complement: \( P(\text{at least one}) = 1 – P(\text{no boosts}) \) (M1).

\[ P(\text{no boost}) = 0.9 \implies P(\text{no boosts in 6}) = 0.9^6 = 0.531441 \] (A1).

\[ P(\text{at least one}) = 1 – 0.531441 = 0.468559 \approx 0.469 \] (A1).

[3 marks]

(b)(i)

Probability of first boost on \( x \)-th action:

\( x-1 \) failures (\( 1-p \)), one success (\( p \)) (M1).

\[ P(X = x) = (1-p)^{x-1} \times p \] (A1).

[2 marks]

(b)(ii)

Expected value \( E(X) \):

\[ E(X) = \sum_{x=1}^\infty x \cdot P(X = x) = \sum_{x=1}^\infty x p (1-p)^{x-1} \] (M1)(A1).

[2 marks]

(c)(i)

Given: \( \sum_{n=0}^\infty ar^n = \frac{a}{1-r} \), \( |r| < 1 \).

Differentiate: Left: \( \sum_{n=1}^\infty n a r^{n-1} \); Right: \( \frac{d}{dr} \left( \frac{a}{1-r} \right) = \frac{a}{(1-r)^2} \) (M1)(A1).

\[ \sum_{n=1}^\infty n a r^{n-1} = \frac{a}{(1-r)^2} \] (A1).

[3 marks]

(c)(ii)

For \( E(X) = \sum_{x=1}^\infty x p (1-p)^{x-1} \), set \( a = p \), \( r = 1-p \):

\[ p \sum_{x=1}^\infty x (1-p)^{x-1} = p \cdot \frac{1}{(1 – (1-p))^2} = p \cdot \frac{1}{p^2} = \frac{1}{p} \] (M1)(A1).

[2 marks]

(d)

For \( p = 0.1 \):

\[ E(X) = \frac{1}{0.1} = 10 \] (A1).

\[ \text{Var}(X) = \frac{1 – 0.1}{(0.1)^2} = \frac{0.9}{0.01} = 90 \] (A1).

[2 marks]

(e)

Second model, first boost on third action:

Action 1: no boost (\( 0.8 \)); Action 2: no boost (\( 0.6 \)); Action 3: boost (\( 0.6 \)) (M1).

\[ P(Y = 3) = 0.8 \times 0.6 \times 0.6 = 0.288 \] (A1)(A1).

[3 marks]

(f)

Boost probabilities: 0.2, 0.4, 0.6, 0.8, 1.0 for actions 1–5 (M1).

At action 5, \( P(\text{boost}) = 1.0 \), so \( Y \leq 5 \) (A1).

[2 marks]

(g)(i)

Probability distribution: \( P(Y = 1) = 0.2 \), \( P(Y = 3) = 0.288 \), \( P(Y = 5) = 0.0384 \).

\( P(Y = 2) = 0.8 \times 0.4 = 0.32 = m \).

\[ P(Y = 4) = 0.8 \times 0.6 \times 0.4 \times 0.8 = 0.1536 = n \] (M1).

\[ m = 0.32, n = 0.1536 \] (A1).

[2 marks]

(g)(ii)

\[ E(Y) = 1 \cdot 0.2 + 2 \cdot 0.32 + 3 \cdot 0.288 + 4 \cdot 0.1536 + 5 \cdot 0.0384 \]

\[ = 0.2 + 0.64 + 0.864 + 0.6144 + 0.192 = 2.5104 \] (M1)(A1).

[2 marks]

(g)(iii)

\[ E(Y^2) = 1^2 \cdot 0.2 + 2^2 \cdot 0.32 + 3^2 \cdot 0.288 + 4^2 \cdot 0.1536 + 5^2 \cdot 0.0384 \]

\[ = 0.2 + 1.28 + 2.592 + 2.4576 + 0.96 = 7.4896 \] (M1).

\[ \text{Var}(Y) = 7.4896 – (2.5104)^2 = 7.4896 – 6.3026816 = 1.1869184 \approx 1.1869 \] (A1).

[2 marks]

(h)(i)

\[ E(X) = \frac{1}{p} = E(Y) = 2.5104 \implies p = \frac{1}{2.5104} \approx 0.3982 \approx 0.398 \] (M1)(A1).

[2 marks]

(h)(ii)

For \( p = 0.3982 \):

\[ \text{Var}(X) = \frac{1 – 0.3982}{(0.3982)^2} = \frac{0.6018}{0.1586} \approx 3.7933 \approx 3.79 \] (M1)(A1).

[2 marks]

(h)(iii)

Compare: \(\text{Var}(X) \approx 3.79\), \(\text{Var}(Y) \approx 1.1869\). Lower variance means more consistent boost timing (M1).

Second model is more consistent (A1).

[2 marks]

Leave a Reply

Scroll to Top