Median and Percentiles of Continuous Random Variables

A2 · S2 · 17 min

The median of a continuous random variable is the value that splits the area under its density function exactly in half. Quartiles and percentiles work the same way with other fractions of the area. On Paper 6 the median is usually the last part of a continuous random variable question: having found kk, a probability and the mean, you are asked to find the median, or to show that it satisfies an equation and check where it lies. This note shows how to set up those equations, how to solve them, and how to compare the median with the mean.

The median splits the area in half

For a set of data, the median is the middle value: half the data lie below it and half above. For a continuous random variable there is no list of values, only a density curve. "Half the values lie below it" becomes "half the probability lies below it", and probability is area. So the median is the point on the xx-axis where a vertical line cuts the area under the curve into two equal parts, each of area 12\tfrac{1}{2}.

Definition

The median mm of a continuous random variable XX with probability density function f(x)f(x) is the value for which

P(X≤m)=∫lower endmf(x) dx=12.P(X \le m) = \int_{\text{lower end}}^{m} f(x)\,dx = \frac{1}{2}.

Equivalently, P(X≥m)=12P(X \ge m) = \tfrac{1}{2}.

Here "lower end" means the left-hand end of the interval on which ff is non-zero. Below that point the density is zero and contributes nothing to the area.

The syllabus says that explicit knowledge of the cumulative distribution function is not required, but that you may need to locate the median "by direct consideration of an area". That is exactly the definition above: write down the area from the left-hand end up to mm, set it equal to 12\tfrac{1}{2}, and solve for mm.

The picture below shows f(x)=38x2f(x) = \tfrac{3}{8}x^2 on 0≤x≤20 \le x \le 2. The shaded region has area 12\tfrac{1}{2}, so its right-hand edge is the median.

y = (3/8) x^2 + 0*sqrt(x (2 - x)) fill 0 1.587 y = (3/8) x^2 (1.587, 0) -- (1.587, 0.944)

Because the density rises to the right, most of the area is near x=2x = 2, so the median (1.5871.587) is well to the right of the midpoint of the interval.

Quartiles and percentiles

The same idea works for any fraction of the area.

Key result

For a continuous random variable XX with pdf f(x)f(x):

  • the lower quartile q1q_1 satisfies ∫lower endq1f(x) dx=14\displaystyle\int_{\text{lower end}}^{q_1} f(x)\,dx = \frac{1}{4};
  • the median mm satisfies ∫lower endmf(x) dx=12\displaystyle\int_{\text{lower end}}^{m} f(x)\,dx = \frac{1}{2};
  • the upper quartile q3q_3 satisfies ∫lower endq3f(x) dx=34\displaystyle\int_{\text{lower end}}^{q_3} f(x)\,dx = \frac{3}{4};
  • the ppth percentile xpx_p satisfies ∫lower endxpf(x) dx=p100\displaystyle\int_{\text{lower end}}^{x_p} f(x)\,dx = \frac{p}{100}.

The interquartile range is q3−q1q_3 - q_1.

Questions do not always use these names. "Find the value of aa such that P(X<a)=0.9P(X < a) = 0.9" is asking for the 90th percentile. "Find the time exceeded by 5%5\% of customers" means P(T>t)=0.05P(T > t) = 0.05, so P(T<t)=0.95P(T < t) = 0.95: the 95th percentile.

Integrating from the other end

Sometimes the upper tail is easier to integrate, especially on an infinite interval. Since P(X≥m)=12P(X \ge m) = \tfrac{1}{2} too, you may write

∫mupper endf(x) dx=12\int_{m}^{\text{upper end}} f(x)\,dx = \frac{1}{2}

and, for the upper quartile, ∫q3upper endf(x) dx=14\displaystyle\int_{q_3}^{\text{upper end}} f(x)\,dx = \frac{1}{4}. Both routes give the same answer. Choose the one with the simpler integral and limits.

Finding a median, quartile or percentile
  1. Make sure the pdf is complete: if it contains an unknown constant, find it first from the total area.
  2. Write the area from the lower end of the interval up to the unknown value, say mm, as an integral with mm as the upper limit.
  3. Integrate and substitute the limits, so the left-hand side becomes an expression in mm.
  4. Set it equal to the required fraction (12\tfrac{1}{2} for the median, 14\tfrac{1}{4} or 34\tfrac{3}{4} for quartiles, p100\tfrac{p}{100} for a percentile).
  5. Solve. If the equation has several roots, keep the one that lies inside the interval where ff is defined, and say why you rejected the others.
  6. Give the answer exactly where possible, otherwise to 3 significant figures.
A power of x

The random variable XX has probability density function

f(x)={38x20≤x≤2,0otherwise.f(x) = \begin{cases} \tfrac{3}{8}x^2 & 0 \le x \le 2, \\ 0 & \text{otherwise.} \end{cases}

(a) Find the median of XX.

(b) Find the interquartile range of XX.

Solution

(a) Let the median be mm.

∫0m38x2 dx=[x38]0m=m38=12\int_0^m \tfrac{3}{8}x^2\,dx = \left[\frac{x^3}{8}\right]_0^m = \frac{m^3}{8} = \frac{1}{2}m3=4⇒m=43=1.59 (3 s.f.)m^3 = 4 \quad\Rightarrow\quad m = \sqrt[3]{4} = 1.59 \text{ (3 s.f.)}

(b) The same integral with the other fractions:

q138=14  ⇒  q1=23=1.2599,q338=34  ⇒  q3=63=1.8171\frac{q_1^3}{8} = \frac{1}{4} \;\Rightarrow\; q_1 = \sqrt[3]{2} = 1.2599, \qquad \frac{q_3^3}{8} = \frac{3}{4} \;\Rightarrow\; q_3 = \sqrt[3]{6} = 1.8171IQR=1.8171−1.2599=0.557 (3 s.f.)\text{IQR} = 1.8171 - 1.2599 = 0.557 \text{ (3 s.f.)}

All three values lie in [0,2][0, 2], as they must.

A reciprocal density and a percentile

The random variable XX has probability density function f(x)=kx2f(x) = \dfrac{k}{x^2} for 1≤x≤41 \le x \le 4, and f(x)=0f(x) = 0 otherwise.

(a) Show that k=43k = \dfrac{4}{3}.

(b) Find the median of XX.

(c) Find the value of aa such that P(X<a)=0.9P(X < a) = 0.9.

Solution

(a)

∫14kx−2 dx=k[−1x]14=k(−14+1)=3k4=1  ⇒  k=43\int_1^4 kx^{-2}\,dx = k\left[-\frac{1}{x}\right]_1^4 = k\left(-\frac{1}{4} + 1\right) = \frac{3k}{4} = 1 \;\Rightarrow\; k = \frac{4}{3}

(b)

∫1m43x−2 dx=43[−1x]1m=43(1−1m)=12\int_1^m \frac{4}{3}x^{-2}\,dx = \frac{4}{3}\left[-\frac{1}{x}\right]_1^m = \frac{4}{3}\left(1 - \frac{1}{m}\right) = \frac{1}{2}1−1m=38  ⇒  1m=58  ⇒  m=85=1.61 - \frac{1}{m} = \frac{3}{8} \;\Rightarrow\; \frac{1}{m} = \frac{5}{8} \;\Rightarrow\; m = \frac{8}{5} = 1.6

(c) This is the 90th percentile.

43(1−1a)=0.9  ⇒  1−1a=0.675  ⇒  a=10.325=3.08 (3 s.f.)\frac{4}{3}\left(1 - \frac{1}{a}\right) = 0.9 \;\Rightarrow\; 1 - \frac{1}{a} = 0.675 \;\Rightarrow\; a = \frac{1}{0.325} = 3.08 \text{ (3 s.f.)}

Infinite intervals and exponential densities

When the interval is infinite, for example t≥0t \ge 0, the area up to mm is a definite integral with ordinary limits 00 and mm, so nothing special is needed. Exponential densities lead to equations of the form e−cm=12e^{-cm} = \tfrac{1}{2}, which you solve with natural logarithms.

Waiting times

The time, TT minutes, that a caller waits to be connected has probability density function f(t)=0.2e−0.2tf(t) = 0.2e^{-0.2t} for t≥0t \ge 0, and f(t)=0f(t) = 0 otherwise. The mean waiting time is 55 minutes.

(a) Find the median waiting time.

(b) Explain, with reference to the shape of the graph of ff, why the median is less than the mean.

(c) Find the waiting time that is exceeded by only 5%5\% of callers.

Solution

(a)

∫0m0.2e−0.2t dt=[−e−0.2t]0m=1−e−0.2m=12\int_0^m 0.2e^{-0.2t}\,dt = \left[-e^{-0.2t}\right]_0^m = 1 - e^{-0.2m} = \frac{1}{2}e−0.2m=12  ⇒  −0.2m=ln⁡12  ⇒  m=5ln⁡2=3.47 minutes (3 s.f.)e^{-0.2m} = \frac{1}{2} \;\Rightarrow\; -0.2m = \ln\tfrac{1}{2} \;\Rightarrow\; m = 5\ln 2 = 3.47 \text{ minutes (3 s.f.)}

(b) The density is greatest at t=0t = 0 and decreases, with a long tail to the right (positive skew). The occasional very long waits pull the mean to the right, but they do not move the median, which depends only on where half of the area is reached. So the median is less than the mean.

y = 0.2 exp(-0.2 x) + 0*sqrt(x) fill 0 3.466 y = 0.2 exp(-0.2 x) (3.466, 0) -- (3.466, 0.1) (5, 0) -- (5, 0.0736)

The shaded half of the area ends at the median (3.473.47); the second line is at the mean (55).

(c) We need P(T>t)=0.05P(T > t) = 0.05. Integrating the upper tail is quicker:

∫t∞0.2e−0.2u du=[−e−0.2u]t∞=e−0.2t=0.05\int_t^\infty 0.2e^{-0.2u}\,du = \left[-e^{-0.2u}\right]_t^\infty = e^{-0.2t} = 0.05t=ln⁡200.2=5ln⁡20=15.0 minutes (3 s.f.)t = \frac{\ln 20}{0.2} = 5\ln 20 = 15.0 \text{ minutes (3 s.f.)}

Symmetry gives the median for free

If the density is symmetrical about a line x=cx = c, then the area to the left of cc equals the area to the right, so the median is cc. The mean is also cc. A symmetrical density therefore has mean = median, and you can quote both without integrating, provided you state the symmetry as the reason.

Symmetry also links the quartiles: if ff is symmetrical about x=cx = c and the lower quartile is q1q_1, then the upper quartile is the same distance above cc, so q3=2c−q1q_3 = 2c - q_1.

Equations you cannot solve exactly

For a quadratic density such as kx(4−x)kx(4 - x) or k(4−x2)k(4 - x^2), the area up to mm is a cubic in mm. Cubic equations usually have no neat solution, so examiners phrase the question as "show that mm satisfies the equation ..." followed by "verify that mm lies between ... and ..." or "hence find mm correct to 2 decimal places".

To verify that a root lies between two values aa and bb, substitute both into the expression and show that the values have opposite signs. Because a polynomial is continuous, a change of sign means it passes through zero somewhere between aa and bb. This is the same sign-change argument as in Pure Mathematics 2 and 3.

A cubic has up to three real roots. Only one will lie in the interval where ff is defined, and that is the median; the others are meaningless here.

A quartile from a cubic

The random variable XX has probability density function f(x)=332x(4−x)f(x) = \tfrac{3}{32}x(4 - x) for 0≤x≤40 \le x \le 4, and f(x)=0f(x) = 0 otherwise.

(a) State the median of XX, giving a reason.

(b) Show that the lower quartile, qq, satisfies the equation q3−6q2+8=0q^3 - 6q^2 + 8 = 0.

(c) Verify that qq lies between 1.301.30 and 1.311.31.

(d) Hence write down an interval of width 0.010.01 that contains the upper quartile.

Solution

(a) The graph of ff is symmetrical about x=2x = 2, so the median is 22.

(b)

∫0q332(4x−x2) dx=332[2x2−x33]0q=332(2q2−q33)=14\int_0^q \tfrac{3}{32}(4x - x^2)\,dx = \frac{3}{32}\left[2x^2 - \frac{x^3}{3}\right]_0^q = \frac{3}{32}\left(2q^2 - \frac{q^3}{3}\right) = \frac{1}{4}

Multiply both sides by 323\dfrac{32}{3}:

2q2−q33=832q^2 - \frac{q^3}{3} = \frac{8}{3}

Multiply by 33: 6q2−q3=86q^2 - q^3 = 8, so q3−6q2+8=0q^3 - 6q^2 + 8 = 0, as required.

(c) Let g(q)=q3−6q2+8g(q) = q^3 - 6q^2 + 8.

g(1.30)=2.197−10.14+8=0.057>0,g(1.31)=2.248091−10.2966+8=−0.0485<0g(1.30) = 2.197 - 10.14 + 8 = 0.057 > 0, \qquad g(1.31) = 2.248091 - 10.2966 + 8 = -0.0485 < 0

There is a change of sign and gg is continuous, so the root lies between 1.301.30 and 1.311.31. (The other two roots of the cubic are about −1.06-1.06 and 5.765.76, both outside [0,4][0, 4].)

(d) By symmetry about x=2x = 2, q3=4−q1q_3 = 4 - q_1, so q3q_3 lies between 4−1.31=2.694 - 1.31 = 2.69 and 4−1.30=2.704 - 1.30 = 2.70.

Comparing the median and the mean

Examiners like to ask whether the median is greater or less than the mean, and to make you justify it. Three facts cover nearly every case.

  • Symmetrical density: mean == median.
  • Density with a long tail to the right (for example a decreasing density, or one with its peak near the left end): the mean is pulled towards the tail, so mean >> median.
  • Density with a long tail to the left (for example an increasing density such as 38x2\tfrac{3}{8}x^2): mean << median.

You can always check numerically. A neat test: if P(X<mean)>12P(X < \text{mean}) > \tfrac{1}{2}, then more than half the area lies below the mean, so the median is below the mean.

An exam-style question

The random variable XX has probability density function f(x)=k(4−x2)f(x) = k(4 - x^2) for 0≤x≤20 \le x \le 2, and f(x)=0f(x) = 0 otherwise.

(a) Show that k=316k = \dfrac{3}{16}.

(b) Find E(X)E(X).

(c) Show that the median, mm, of XX satisfies m3−12m+8=0m^3 - 12m + 8 = 0, and verify that m=0.69m = 0.69 correct to 2 decimal places.

(d) Find P(X<E(X))P(X < E(X)) and use your answer to explain whether the median is less than or greater than the mean.

Solution

(a)

∫02k(4−x2) dx=k[4x−x33]02=k(8−83)=16k3=1  ⇒  k=316\int_0^2 k(4 - x^2)\,dx = k\left[4x - \frac{x^3}{3}\right]_0^2 = k\left(8 - \frac{8}{3}\right) = \frac{16k}{3} = 1 \;\Rightarrow\; k = \frac{3}{16}

(b)

E(X)=∫02316x(4−x2) dx=316[2x2−x44]02=316(8−4)=34E(X) = \int_0^2 \tfrac{3}{16}x(4 - x^2)\,dx = \frac{3}{16}\left[2x^2 - \frac{x^4}{4}\right]_0^2 = \frac{3}{16}(8 - 4) = \frac{3}{4}

(c)

∫0m316(4−x2) dx=316(4m−m33)=12\int_0^m \tfrac{3}{16}(4 - x^2)\,dx = \frac{3}{16}\left(4m - \frac{m^3}{3}\right) = \frac{1}{2}4m−m33=83  ⇒  12m−m3=8  ⇒  m3−12m+8=04m - \frac{m^3}{3} = \frac{8}{3} \;\Rightarrow\; 12m - m^3 = 8 \;\Rightarrow\; m^3 - 12m + 8 = 0

To verify m=0.69m = 0.69 to 2 decimal places, test the ends of the interval [0.685,0.695][0.685, 0.695]. Let g(m)=m3−12m+8g(m) = m^3 - 12m + 8:

g(0.685)=0.3214−8.22+8=0.101>0,g(0.695)=0.3357−8.34+8=−0.0043<0g(0.685) = 0.3214 - 8.22 + 8 = 0.101 > 0, \qquad g(0.695) = 0.3357 - 8.34 + 8 = -0.0043 < 0

The sign changes, so the root lies in [0.685,0.695][0.685, 0.695] and m=0.69m = 0.69 to 2 decimal places.

(d)

P(X<34)=316[4x−x33]03/4=316(3−964)=316×18364=5491024=0.536P\left(X < \tfrac{3}{4}\right) = \frac{3}{16}\left[4x - \frac{x^3}{3}\right]_0^{3/4} = \frac{3}{16}\left(3 - \frac{9}{64}\right) = \frac{3}{16} \times \frac{183}{64} = \frac{549}{1024} = 0.536

This is more than 12\tfrac{1}{2}, so the point that cuts off half the area is to the left of the mean: the median is less than the mean. This fits the shape: ff is greatest at x=0x = 0 and decreases, so the distribution has its tail to the right.

Unknown constants from a median

A given median or quartile is one more equation, so it can be used to find an unknown constant, in the same way as a given probability or a given mean.

Two constants from the median

The random variable XX has probability density function f(x)=a+bxf(x) = a + bx for 0≤x≤40 \le x \le 4, and f(x)=0f(x) = 0 otherwise, where aa and bb are constants. The median of XX is 83\dfrac{8}{3}.

Find the values of aa and bb.

Solution

Total area:

∫04(a+bx) dx=[ax+bx22]04=4a+8b=1(1)\int_0^4 (a + bx)\,dx = \left[ax + \frac{bx^2}{2}\right]_0^4 = 4a + 8b = 1 \qquad (1)

Median:

∫08/3(a+bx) dx=8a3+b2(83)2=8a3+32b9=12(2)\int_0^{8/3} (a + bx)\,dx = \frac{8a}{3} + \frac{b}{2}\left(\frac{8}{3}\right)^2 = \frac{8a}{3} + \frac{32b}{9} = \frac{1}{2} \qquad (2)

From (1), a=1−8b4a = \dfrac{1 - 8b}{4}. Substitute into (2):

2(1−8b)3+32b9=12  ⇒  23−48b9+32b9=12  ⇒  16b9=16  ⇒  b=332\frac{2(1 - 8b)}{3} + \frac{32b}{9} = \frac{1}{2} \;\Rightarrow\; \frac{2}{3} - \frac{48b}{9} + \frac{32b}{9} = \frac{1}{2} \;\Rightarrow\; \frac{16b}{9} = \frac{1}{6} \;\Rightarrow\; b = \frac{3}{32}

Then a=1−344=116a = \dfrac{1 - \frac{3}{4}}{4} = \dfrac{1}{16}.

Check: f(x)=116+332x>0f(x) = \tfrac{1}{16} + \tfrac{3}{32}x > 0 on [0,4][0, 4], so ff is a valid density.

Common mistakes
  • Setting the integral equal to 11 instead of 12\tfrac{1}{2}. The total area is 11; the area up to the median is 12\tfrac{1}{2}.
  • Using the wrong lower limit. The area must start at the left-hand end of the interval where ff is non-zero, not at 00 (unless the interval starts at 00). For f(x)=43x2f(x) = \frac{4}{3x^2} on 1≤x≤41 \le x \le 4, the lower limit is 11.
  • Confusing the median with the mean. The median comes from ∫f(x) dx=12\int f(x)\,dx = \tfrac{1}{2}; the mean from ∫xf(x) dx\int xf(x)\,dx. They are equal only for symmetrical densities.
  • Taking the median to be the midpoint of the interval. That is only true when ff is symmetrical.
  • Keeping a root outside the interval. A cubic may have a root at 5.765.76 for a density on [0,4][0, 4]. Reject it, and say why.
  • Mixing up upper and lower tails for percentiles. "Exceeded by 5%5\%" means P(X>a)=0.05P(X > a) = 0.05, which is the 95th percentile, not the 5th.
  • Verifying a root badly. "Verify that m=0.69m = 0.69 to 2 d.p." needs the sign change across 0.6850.685 and 0.6950.695, not across 0.680.68 and 0.700.70, and must state the conclusion.
Exam tip
  • Write the defining equation in full before integrating: ∫1m43x−2 dx=12\displaystyle\int_1^m \frac{4}{3}x^{-2}\,dx = \frac{1}{2}. This line usually earns the method mark on its own.
  • "Show that the median satisfies ..." is a derivation. Show the integral, the substituted limits and each rearrangement until the given equation appears exactly. Do not start from the given equation.
  • For "verify" or "show that mm lies between", substitute both values, state both signs explicitly, and finish with a sentence: "change of sign, so the root lies between …\dots and …\dots".
  • Exact answers such as 43\sqrt[3]{4}, 5ln⁡25\ln 2 or 85\tfrac{8}{5} are acceptable; otherwise give 3 significant figures.
  • When asked to compare the median and the mean, a numerical comparison or a reason based on the shape (skewness) is needed. A bare statement "the median is smaller" scores nothing.
  • Symmetry is a valid method. Say "by symmetry, the median is 22" and the mark is yours without any integration.
Summary
  • The median mm satisfies ∫lower endmf(x) dx=12\displaystyle\int_{\text{lower end}}^{m} f(x)\,dx = \frac{1}{2}.
  • Quartiles use 14\tfrac{1}{4} and 34\tfrac{3}{4}; the ppth percentile uses p100\tfrac{p}{100}. IQR =q3−q1= q_3 - q_1.
  • You may integrate the upper tail instead: ∫mupper endf(x) dx=12\displaystyle\int_m^{\text{upper end}} f(x)\,dx = \frac{1}{2}.
  • Exponential densities lead to logarithms: e−cm=12e^{-cm} = \tfrac{1}{2} gives m=ln⁡2cm = \dfrac{\ln 2}{c}.
  • Symmetrical density: median == mean == centre of symmetry, and q3=2c−q1q_3 = 2c - q_1.
  • Cubic equations: show the equation, then verify the root with a change of sign; keep only the root inside the interval.
  • Tail to the right: mean >> median. Tail to the left: mean << median.
  • A given median is an extra equation for finding unknown constants.

Practice questions

Question
  1. XX has pdf f(x)=x2f(x) = \dfrac{x}{2} for 0≤x≤20 \le x \le 2, and 00 otherwise. Find the median and the lower quartile of XX.
  2. XX has pdf f(x)=4x3f(x) = 4x^3 for 0≤x≤10 \le x \le 1, and 00 otherwise. Find the median of XX and the 80th percentile of XX.
  3. XX has pdf f(x)=2x2f(x) = \dfrac{2}{x^2} for 1≤x≤21 \le x \le 2, and 00 otherwise. Find the median and the interquartile range of XX.
  4. The lifetime, TT years, of a component has pdf f(t)=0.5e−0.5tf(t) = 0.5e^{-0.5t} for t≥0t \ge 0, and 00 otherwise. Find the median lifetime, and find the probability that a component lasts more than twice the median lifetime.
  5. XX has pdf f(x)=ksin⁡xf(x) = k\sin x for 0≤x≤π0 \le x \le \pi, and 00 otherwise. Find kk, state the median of XX, and find the upper quartile of XX.
  6. XX has pdf f(x)=34x(2−x)f(x) = \tfrac{3}{4}x(2 - x) for 0≤x≤20 \le x \le 2, and 00 otherwise. Show that the lower quartile, qq, satisfies q3−3q2+1=0q^3 - 3q^2 + 1 = 0, and verify that 0.65<q<0.660.65 < q < 0.66.
  7. XX has pdf f(x)=3x2a3f(x) = \dfrac{3x^2}{a^3} for 0≤x≤a0 \le x \le a, and 00 otherwise, where aa is a positive constant. The median of XX is 22. Find the exact value of a3a^3, find aa to 3 significant figures, and find P(X<1)P(X < 1).
  8. XX has pdf f(x)=1xf(x) = \dfrac{1}{x} for 1≤x≤e1 \le x \le e, and 00 otherwise. (a) Verify that ff is a valid probability density function. (b) Find the exact median of XX. (c) Find E(X)E(X) and hence state, with a reason, whether the mean is greater or less than the median. (d) Three independent observations of XX are taken. Find the probability that all three are less than the median, and the probability that exactly one is less than the mean.
Answers
  1. ∫0mx2 dx=m24=12\displaystyle\int_0^m \frac{x}{2}\,dx = \frac{m^2}{4} = \frac{1}{2}, so m2=2m^2 = 2 and m=2=1.41m = \sqrt{2} = 1.41 (the negative root is outside [0,2][0, 2]). Lower quartile: q24=14\dfrac{q^2}{4} = \dfrac{1}{4}, so q=1q = 1.

  2. ∫0m4x3 dx=m4=12\displaystyle\int_0^m 4x^3\,dx = m^4 = \frac{1}{2}, so m=0.51/4=0.841m = 0.5^{1/4} = 0.841. 80th percentile: a4=0.8a^4 = 0.8, so a=0.81/4=0.946a = 0.8^{1/4} = 0.946.

  3. ∫1m2x2 dx=2(1−1m)=12\displaystyle\int_1^m \frac{2}{x^2}\,dx = 2\left(1 - \frac{1}{m}\right) = \frac{1}{2}, so 1m=34\dfrac{1}{m} = \dfrac{3}{4} and m=43=1.33m = \dfrac{4}{3} = 1.33. q1q_1: 2(1−1q1)=142\left(1 - \dfrac{1}{q_1}\right) = \dfrac{1}{4}, so 1q1=78\dfrac{1}{q_1} = \dfrac{7}{8}, q1=87q_1 = \dfrac{8}{7}. q3q_3: 2(1−1q3)=342\left(1 - \dfrac{1}{q_3}\right) = \dfrac{3}{4}, so 1q3=58\dfrac{1}{q_3} = \dfrac{5}{8}, q3=85q_3 = \dfrac{8}{5}. IQR =85−87=1635=0.457= \dfrac{8}{5} - \dfrac{8}{7} = \dfrac{16}{35} = 0.457.

  4. ∫0m0.5e−0.5t dt=1−e−0.5m=12\displaystyle\int_0^m 0.5e^{-0.5t}\,dt = 1 - e^{-0.5m} = \frac{1}{2}, so m=2ln⁡2=1.39m = 2\ln 2 = 1.39 years. P(T>2m)=e−0.5×4ln⁡2=e−2ln⁡2=14P(T > 2m) = e^{-0.5 \times 4\ln 2} = e^{-2\ln 2} = \dfrac{1}{4}.

  5. ∫0πksin⁡x dx=k[−cos⁡x]0π=2k=1\displaystyle\int_0^\pi k\sin x\,dx = k[-\cos x]_0^\pi = 2k = 1, so k=12k = \tfrac{1}{2}. The graph is symmetrical about x=π2x = \frac{\pi}{2}, so the median is π2\frac{\pi}{2}. Upper quartile: 12[−cos⁡x]0q=12(1−cos⁡q)=34\tfrac{1}{2}[-\cos x]_0^{q} = \tfrac{1}{2}(1 - \cos q) = \tfrac{3}{4}, so cos⁡q=−12\cos q = -\tfrac{1}{2} and q=2π3=2.09q = \dfrac{2\pi}{3} = 2.09.

  6. ∫0q34(2x−x2) dx=34(q2−q33)=14\displaystyle\int_0^q \tfrac{3}{4}(2x - x^2)\,dx = \tfrac{3}{4}\left(q^2 - \frac{q^3}{3}\right) = \frac{1}{4}, so q2−q33=13q^2 - \dfrac{q^3}{3} = \dfrac{1}{3}, 3q2−q3=13q^2 - q^3 = 1, and q3−3q2+1=0q^3 - 3q^2 + 1 = 0. With g(q)=q3−3q2+1g(q) = q^3 - 3q^2 + 1: g(0.65)=0.274625−1.2675+1=0.00713>0g(0.65) = 0.274625 - 1.2675 + 1 = 0.00713 > 0 and g(0.66)=0.287496−1.3068+1=−0.0193<0g(0.66) = 0.287496 - 1.3068 + 1 = -0.0193 < 0. The sign changes, so 0.65<q<0.660.65 < q < 0.66.

  7. ∫023x2a3 dx=8a3=12\displaystyle\int_0^2 \frac{3x^2}{a^3}\,dx = \frac{8}{a^3} = \frac{1}{2}, so a3=16a^3 = 16 and a=161/3=2.52a = 16^{1/3} = 2.52. P(X<1)=1a3=116P(X < 1) = \dfrac{1}{a^3} = \dfrac{1}{16}.

  8. (a) f(x)=1x>0f(x) = \frac{1}{x} > 0 on [1,e][1, e], and ∫1e1x dx=[ln⁡x]1e=1−0=1\displaystyle\int_1^e \frac{1}{x}\,dx = [\ln x]_1^e = 1 - 0 = 1. (b) [ln⁡x]1m=ln⁡m=12[\ln x]_1^m = \ln m = \tfrac{1}{2}, so m=e1/2=em = e^{1/2} = \sqrt{e} (=1.649)(= 1.649). (c) E(X)=∫1ex⋅1x dx=e−1=1.718E(X) = \displaystyle\int_1^e x \cdot \frac{1}{x}\,dx = e - 1 = 1.718. This is greater than e=1.649\sqrt{e} = 1.649, so the mean is greater than the median. (The density decreases, so the tail is to the right.) (d) P(all three below the median)=(12)3=18P(\text{all three below the median}) = \left(\tfrac{1}{2}\right)^3 = \tfrac{1}{8}. P(X<e−1)=ln⁡(e−1)=0.5413P(X < e - 1) = \ln(e - 1) = 0.5413. With N∼B(3,0.5413)N \sim B(3, 0.5413), P(N=1)=3(0.5413)(0.4587)2=0.342P(N = 1) = 3(0.5413)(0.4587)^2 = 0.342.

How well do you know this?

Builds on

Where this leads

Console

Search notes, courses and tools, or run an action