Part-discrete part-continuous distributions

Part-discrete part-continuous distributions

Spec SD1 · AQA A-Level Further Maths: Revision notes

Studying this course? Keep your progress in one place.

Key facts

  • A mixed distribution has a point mass (often at 00) plus a pdf over an interval.
  • Point masses plus ∫f dx\int f\,dx add to 11, so ∫f=1−P(X=0)\int f=1-P(X=0).
  • P(X≤b)=P(X=0)+∫0bf(x) dxP(X\le b)=P(X=0)+\int_0^bf(x)\,dx; at 00, strict and non-strict inequalities differ.
  • The point mass at 00 adds nothing to E(X)E(X).
  • If P(X=0)P(X=0) exceeds the target probability, the median or quartile is 00.

Mixed distributions

A variable with positive probability at a single value, such as 00, and a pdf elsewhere.

Some random variables are neither purely discrete nor purely continuous: a waiting time that is exactly 00 when there is no queue, rainfall that is 00 on dry days, an insurance claim that is 00 when none is made.

These are part discrete, part continuous. A single value (often 00) is a point mass, for example P(X=0)=0.4P(X=0)=0.4, and the remaining probability is spread over an interval with a pdf f(x)f(x).

00.10.20.30.40.50.6Point mass at 0Continuous partPart of the distributionProbability
A mixed variable with f(x) = 0.3x on 0 < x ≤ 2: probability 0.4 sits at the single value 0, the other 0.6 is spread over the interval

Discrete

Takes:
Separate values
Probability comes from:
Each value

Continuous

Takes:
Any value in an interval
Probability comes from:
Area under the pdf

Mixed

Takes:
Point mass plus an interval
Probability comes from:
Both added

A rainfall variable is exactly 0 on dry days and spread continuously on wet days. Which describes it?

Total probability is 1

The point masses and the area under ff must total 11, so the integral of ff is 1−P(X=0)1-P(X=0).

The point masses and the area under ff must add to 1:

∑P(X=a)+∫f(x) dx=1.\sum P(X=a)+\int f(x)\,dx=1.

So the integral of ff is 1−P(X=0)1-P(X=0) and not 11.

To find an unknown constant, integrate ff over its range and set the result equal to 11 minus the point mass.

0.20.40.60.811.21.41.61.822.22.40.10.20.30.40.50.60.70.8xy(2, 0.6)f(x) = 0.3x
f(x) = 0.3x for 0 < x ≤ 2: the shaded area is 0.6 = 1 − 0.4, not 1
  • Continuous part∫f dx=1−P(X=0)\int f\,dx=1-P(X=0)

Worked example

P(X=0)=0.4P(X=0)=0.4 and f(x)=kxf(x)=kx on 0<x≤20<x\le2. Find kk.

P(X=0)=0.5P(X=0)=0.5 and f(x)=kxf(x)=kx on 0<x≤10<x\le1. What is kk?

Finding probabilities

Split each probability into a discrete part and a continuous part.

Split every probability into a discrete part and a continuous part:

P(X≤b)=P(X=0)+∫0bf(x) dx(b>0).P(X\le b)=P(X=0)+\int_0^bf(x)\,dx\quad(b>0).

For an interval that does not include the point mass, such as P(a<X<b)P(a<X<b) with a>0a>0, use only the integral.

Strict and non-strict inequalities now differ at 00: P(X≤0)=0.4P(X\le0)=0.4 but P(X<0)=0P(X<0)=0. Elsewhere P(X=a)=0P(X=a)=0.

With f(x)=0.3xf(x)=0.3x: P(X≤1)=0.4+0.15=0.55P(X\le1)=0.4+0.15=0.55 and P(X>1)=0.45P(X>1)=0.45.

0.20.40.60.811.21.41.61.822.22.40.10.20.30.40.50.60.70.8xy(1, 0.3)f(x) = 0.3x
P(X ≤ 1) = 0.4 + shaded area 0.15 = 0.55
  • P(X≤b)P(X\le b)P(X=0)+∫0bf dxP(X=0)+\int_0^bf\,dx
  • P(a<X<b), a>0P(a<X<b),\ a>0∫abf dx\int_a^bf\,dx

With P(X=0)=0.4P(X=0)=0.4 and f(x)=0.3xf(x)=0.3x on 0<x≤20<x\le2, what is P(X<0)P(X<0)?

Mean, median and quartiles

The point mass at 00 adds nothing to the mean; the median is 00 if the point mass exceeds 12\frac12.

The mean is E(X)=∑a P(X=a)+∫xf(x) dxE(X)=\sum a\,P(X=a)+\int xf(x)\,dx.

A point mass at 00 adds 0×P(X=0)=00\times P(X=0)=0, so here E(X)=∫xf(x) dxE(X)=\int xf(x)\,dx.

A median or quartile qq satisfies P(X≤q)=12P(X\le q)=\frac12, 14\frac14 or 34\frac34. If P(X=0)P(X=0) is bigger than that probability, the value is 00. Otherwise solve P(X=0)+∫0qf(x) dx=12P(X=0)+\int_0^qf(x)\,dx=\frac12 and reject roots outside the range.

If P(X=0)=0.7P(X=0)=0.7, the median and lower quartile are both 00.

0.20.40.60.811.21.41.61.822.22.40.10.20.30.40.50.60.70.8xyq ≈ 0.816f(x) = 0.3x
Median: 0.4 + shaded area 0.1 = 0.5, so 0.15q² = 0.1 and q ≈ 0.816
  • Median or quartileP(X≤q)=12, 14, 34P(X\le q)=\frac12,\ \frac14,\ \frac34
  • If P(X=0)>P(X=0)> targetvalue is 00

Worked example

P(R=0)=0.6P(R=0)=0.6 and f(r)=0.05rf(r)=0.05r on 0<r≤40<r\le4 (total 0.40.4). Find P(R<2)P(R<2), E(R)E(R) and P(R>3)P(R>3).

P(X=0)=0.6P(X=0)=0.6. What is the median?

Try an exam question

A random variable XX has P(X=0)=0.4P(X=0)=0.4 and, for 0<x≤20<x\le2, probability density function f(x)=kxf(x)=kx, where kk is a constant. Find kk and P(X≤1)P(X\le1).

[4 marks]

That's the notes covered.

Carry on to the next subtopic.

Try a question

Find the value of kk.

1 mark, marked against the mark scheme

Revision notes