1. Treating a strict inequality as a non-strict one for a discrete variable
the whole questionWhat not to write
“.”
What to write
“ is discrete: , because the bar is excluded.”
Why: The equality comes from , which holds only in the continuous case.
Probability and Statistics 201-SN1-RE • CEGEP, Montreal
In this chapter, almost every mistake comes from the same confusion: treating a continuous variable as a discrete one, or the reverse. In the discrete case, a probability is the height of a bar; in the continuous case, it is an area, and the height is only a probability per unit.
In the discrete case, a probability is the height of a bar; in the continuous case, it is an area, and the height is only a probability per unit.
This sheet gathers the moves that earn the marks: normalizing a density with a correct integral, writing a cumulative distribution function piecewise, treating an improper integral as a limit, applying without a linear reflex, and never confusing mode, median and expected value.
The thread of the chapter
Discrete or continuous, a variable is read from its distribution: a probability is the HEIGHT of a bar in the discrete case, an AREA under the density in the continuous case. The density is therefore never a probability, and the expected value is not the most probable value.
Topics covered
Write “X is continuous, so P(X = a) = 0” before changing a strict inequality into a non-strict one: the justification is often worth half a mark.
On an infinite support, is an improper integral: integrate up to , then let tend to .
These are the errors I correct most often in session. Each one costs marks on a paper, even when the reasoning behind it is right.
What not to write
“.”
What to write
“ is discrete: , because the bar is excluded.”
Why: The equality comes from , which holds only in the continuous case.
What not to write
“ on is not a density, because a probability cannot exceed .”
What to write
“ and : it is a density. Only areas are capped at .”
Why: is a probability per unit: the shorter the support, the taller the density.
What not to write
“, so .”
What to write
“ and .”
Why: A variance is a mean of squared deviations: the constant creates no deviation, and the factor acts squared. A negative variance always signals an error.
What not to write
“, , so .”
What to write
“ exactly, so .”
Why: subtracts two large, close numbers: rounding by throws the variance off by .
What not to write
“, so .”
What to write
“An antiderivative of is , so the integral is and .”
Why: The area under a positive curve is positive: a negative k gives a negative density and invalidates every probability that follows.
What not to write
“ for every real .”
What to write
“ if ; if ; if .”
Why: Outside the support, the polynomial formula gives nonsense (, a negative “probability”); must stay between and .
What not to write
“.”
What to write
“, and , so the integral converges and equals .”
Why: An improper integral is a limit: without writing the bound A and the limit, convergence is not justified.
What not to write
“For , the most probable value is , and one observation in two exceeds .”
What to write
“The mode is (maximum of ), the median about , the expected value ; and .”
Why: As soon as the density is skewed, mode, median and expected value separate; the long tail pulls the expected value toward its side.
What not to write
“By subtracting from the error of each measurement, the error becomes smaller: decreases.”
What to write
“: the correction makes the measurement accurate on average, it does not make it more precise.”
Why: A shift moves the whole distribution without narrowing it: that is V(X + b) = V(X).
First check whether the variable is discrete or continuous, then what the problem asks for.
If , continuous variable → the answer is 0, with no calculation
Example: for a diameter
If , discrete variable → add the bars, reading each endpoint: included or excluded
Example:
If , continuous variable → if is known, otherwise
Example:
If an unknown constant in the density → write that the total integral equals 1, then check non-negativity
Example: gives
If a median, a quartile, a p percent threshold → solve ; if the equation is transcendental, bracket it with the intermediate value theorem
Example:
If or → the properties, without recomputing the distribution
Example:
If an integral of → integration by parts, differentiating the power of x
Example:
on an infinite support, finish with the limit as A tends to infinity
No branch applies? Go back to the definitions: and .
A marker ticks steps. Here they are in order, with the concluding sentence expected word for word.
When to use it: “Show that ” (discrete or continuous).
Concluding sentence
“Therefore .”
The trap: Not citing when the term becomes : that is the step the grader looks for.
Marking: Expansion 1 mark, linearity 1 mark, use of the normalization 1 mark.
When to use it: “Find so that is a density” or “Show that is a density”.
Concluding sentence
“ and : is a probability density function.”
The trap: Forgetting non-negativity: the area condition alone is not enough, a function that changes sign can have an integral equal to 1.
Five minutes of checking recover more marks than one more problem started in a hurry.
The sum that makes 1
Add the probabilities of a discrete distribution, or integrate the density found over the whole support (TI: fnInt; Casio: the integral key of the RUN menu).
A distribution that adds up to has lost a value; a density whose integral is has kept one factor too many.
The expected value inside the support, the variance positive
falls between the smallest and the largest possible value; , and is of the same order as the spread of the values.
An expected value of for a density on , or , signals a calculation error.
The cumulative distribution function at the endpoints
equals at the start of the support and at the end, and it increases in between. For a median, plug back into .
for a distribution on says the antiderivative is wrong; confirms a median to two decimal places.
The order mode, median, expected value
Compare the three with the shape of the density: tail on the right, the expected value is the largest; tail on the left, the smallest.
A density that rises gently and drops quickly must have an expected value below its mode; otherwise, go over the calculation again.
A squirrel buries acorns at a depth , in centimetres, modelled by the density on , zero elsewhere.
Find , compute , the expected value, the standard deviation and the mode, then place the expected value relative to the mode.
Step 1
On , and : as soon as . , so .
Why
Non-negativity, then the total area: the two conditions of a density, written in this order, are each worth marks.
Step 2
on ; , so .
Why
Once F is written, each probability is read with one subtraction; a strict or non-strict sign changes nothing, X is continuous.
Step 3
cm.
Why
Multiply the density by x BEFORE integrating: it is the weighted average of the discrete case, the sum turned into an integral.
Step 4
; ; cm.
Why
The computational formula of the variance, with E(X) exact: no rounding before the subtraction.
Step 5
vanishes at : this is the mode.
Why
The mode is a maximum of f, found by differentiation like any extremum.
Step 6
Check: , , and mode : the density is skewed toward shallow depths.
Why
The endpoint check and the order of the centres take ten seconds and catch a wrong antiderivative.
The conclusion, written out
, , cm, cm, mode cm: the most frequent depth exceeds the mean depth, because a few acorns stay almost at the surface.
The classic mistake on this problem: Taking for the midpoint of the support, cm, or for the mode, cm: here the expected value lies between the two and cannot be guessed.
Ask whether its values can be counted. A number of eggs, mutations or days is discrete: between two neighbouring values, there is no other one. A duration, a distance or a diameter measured without rounding is continuous: between two values, there is always a third. The same quantity can become discrete if it is only observed at fixed intervals, for example once a day.
Because the density is not a probability: it is a probability per unit of the variable. The only constraint is that the total area under the curve equals 1. A uniform distribution on an interval of length 0.25 has a density equal to 4, and the area is indeed 4 times 0.25, that is 1. It is the areas, hence the probabilities, that never exceed 1.
Integrate x times the density over the whole support. It is the weighted average of the discrete case, where the sum of the values multiplied by their probabilities becomes an integral. On an infinite support, the integral is improper: integrate up to a bound A, often by parts, then take the limit as A tends to infinity.
The mode is the value where the density, or the bar, is highest. The median splits the probability into two halves: it is found by solving F of m equals 0.5. The expected value is the weighted average, the average value over a large number of repetitions. For a density skewed to the right, the usual order is mode, then median, then expected value, and fewer than half of the values exceed the expected value.
Adding b shifts every value by the same amount, without changing their deviations from the mean: the variance does not move. Multiplying by a multiplies each deviation by a, hence each squared deviation by a squared. Since the variance is the mean of these squares, it is multiplied by a squared, and the standard deviation by the absolute value of a.
© Ahmed Squalli Houssaini. Revision sheet published at www.letuteurscientifique.ca/en/fiches/cegep-sn1-random-variables. Free for personal and classroom use; republishing it elsewhere requires written permission (legal notice).