01 · Inclusive interval
X is uniform on the integers 4 through 15. Find P(7≤X≤12).
Hint
List the endpoints and count between them.
Worked solution
7,8,9,10,11,12: six values, so 1/2.
Understand · explore · practise
Calculate probabilities on equally likely finite supports, handle integer endpoints and combine an independent uniform variable with a non-uniform one.
Before you startProbability mass functions and independent events.
01 / Justify equal probability
For N equally likely supported values, each probability is 1/N.
An event has probability: number of qualifying values ÷ N.
The selection process must justify equal likelihood. “Chosen at random” does not by itself specify every possible mechanism. State a uniform choice when using simple counts.
X is uniform on the twelve integers 4 through 15, inclusive. Each has probability 1/12.
All twelve integers qualify: probability 1.
02 / Count both ends when they are included
Number of values: 15−4+1=12
Subtracting endpoints alone counts gaps, not values.
For 5≤X<11, the values are 5,6,7,8,9,10
Six values give probability 6/12=1/2.
For 5<X<11, exclude 5 as well
Five values give 5/12.
X is uniform on the integers 4 through 15. Find P(7≤X≤12).
List the endpoints and count between them.
7,8,9,10,11,12: six values, so 1/2.
Find P(0≤X≤6).
Only supported values contribute.
Only 4,5,6 qualify, giving 3/12=1/4.
03 / A property also defines a subset
Find P(X is prime) for the model.
Which primes lie from 4 through 15?
5,7,11,13: four values, probability 1/3.
Find P(X is a multiple of 3).
Include all eligible multiples.
6,9,12,15: probability 4/12=1/3.
Find P(X is not 8).
Complement one supported value.
1−1/12=11/12.
Find P(6.2<X<10.8).
X still only takes integers.
7,8,9,10 qualify. Probability 4/12=1/3.
04 / Uniform support need not be consecutive
A uniform variable Y takes values {−4,−1,2,9}. It has four possible values, each of probability 1/4. The gaps between labels do not create additional outcomes.
Find P(Y>0).
Use the supported positive values.
2 and 9 qualify, so 2/4=1/2.
Find P(Y=0).
Zero is between two labels but is not supported.
0.
A bag has three tokens labelled 1 and one labelled 8. A token is selected uniformly. Is its recorded label uniform on {1,8}?
Count the physical tokens contributing to each label.
No. The label probabilities are 3/4 and 1/4. The four tokens are equally likely; the two labels are not.
05 / A new variable can lose uniformity
Pause, replay or seek freely. The notes explain the same idea and stay in view.
V=0 comes only from U=0
Probability1/5.
V=1 comes from U=−1 or 1
Probability 2/5.
V=4 comes from U=−2 or 2
Probability 2/5. V is not uniform on its three values.
For the same U, find the distribution of W=|U|.
Combine opposite values.
W=0,1,2 have respective probabilities 1/5,2/5,2/5.
06 / Weight each case of a second variable
Given Y=2, eight X values are larger
Contribution 0.5×8/10=0.40.
Given Y=5, five X values are larger
Contribution 0.3×5/10=0.15.
Given Y=9, one X value is larger
Contribution 0.2×1/10=0.02.
Add the three disjoint Y cases
P(X>Y)=0.40+0.15+0.02=0.57.
The 30 listed (X,Y) pairs are not equally likely: their probabilities depend on Y. Counting qualifying pairs and dividing by 30 would ignore those weights.
For these independent X,Y, find P(X=Y).
Each possible Y value is one of the ten X values.
0.5×1/10 + 0.3×1/10 + 0.2×1/10 = 0.10.
Find P(X≥Y).
Add equality to the strict comparison.
0.57+0.10=0.67.
07 / Check the joint model
For the independent model, find P(X<Y).
The three comparisons are disjoint and exhaustive.
1−0.57−0.10=0.33.
X is uniform on 1 through 10 and Y is set equal to X. Can P(X=Y) be found by multiplying ten pairs of 0.1 probabilities?
The two variables are fully linked.
No. P(X=Y)=1. Multiplication of the marginal probabilities would require independence, which fails here.
08 / Count only after checking the model
List the support, check equal likelihood and count the values satisfying the event. Respect strict endpoints and gaps. When comparing independent variables with unequal masses, weight the conditional counts. A transformed uniform variable may not remain uniform.
Section 1 of 8 · Justify equal probability