1. Home
  2. Explore
  3. Statistics
  4. Probability and Statistics Practice

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Probability and Statistics Practice

Probability and Statistics: A Guided Lesson

Probability problems become easier when the situation is matched to the right idea. A diagram can clarify how events overlap, combinations can count groups, and probability distributions can describe repeated trials or waiting times. This lesson develops those tools step by step and shows how they connect.

Events, Complements, and Venn Diagrams

An event is a set of outcomes in a sample space. For events AAA and BBB:

  • A∪BA \cup BA∪B means that AAA occurs, or BBB occurs, or both occur.
  • A∩BA \cap BA∩B means that both AAA and BBB occur.
  • AcA^cAc means that AAA does not occur.

A Venn diagram is useful when a problem gives information about several related events. The rectangle represents all possible outcomes, while overlapping circles represent events. Each separate region corresponds to a distinct combination of events, so the diagram helps prevent parts of the sample space from being counted twice.

Suppose the information is

P(A∪B)=0.6,P(Ac)=0.6,P(A∩Bc)=0.3.P(A \cup B)=0.6,\qquad P(A^c)=0.6,\qquad P(A \cap B^c)=0.3.P(A∪B)=0.6,P(Ac)=0.6,P(A∩Bc)=0.3.

The goal is to find P(A∩B)P(A \cap B)P(A∩B). Label the four regions as follows:

  • A∩BcA \cap B^cA∩Bc, the part inside AAA but outside BBB, has probability 0.30.30.3.
  • A∩BA \cap BA∩B has probability xxx.
  • B∩AcB \cap A^cB∩Ac has probability yyy.
  • Ac∩BcA^c \cap B^cAc∩Bc, the part outside both events, has probability zzz.

All four regions make up the sample space, so their probabilities sum to 111:

0.3+x+y+z=1,0.3+x+y+z=1,0.3+x+y+z=1,

which gives

x+y+z=0.7.x+y+z=0.7.x+y+z=0.7.

The union A∪BA \cup BA∪B contains the first three regions, so

0.3+x+y=0.6,0.3+x+y=0.6,0.3+x+y=0.6,

and therefore

x+y=0.3.x+y=0.3.x+y=0.3.

The complement AcA^cAc consists of the regions outside AAA, namely B∩AcB \cap A^cB∩Ac and Ac∩BcA^c \cap B^cAc∩Bc. Thus,

y+z=0.6.y+z=0.6.y+z=0.6.

Since y+z=0.6y+z=0.6y+z=0.6 and x+y+z=0.7x+y+z=0.7x+y+z=0.7, subtracting gives

x=0.1.x=0.1.x=0.1.

So the probability that both events occur is

P(A∩B)=0.1.P(A \cap B)=0.1.P(A∩B)=0.1.

The other regions can be checked for consistency: y=0.2y=0.2y=0.2 and z=0.4z=0.4z=0.4. Then all four probabilities sum to 111, as required.

A Venn diagram translates relationships among events into relationships among regions. The probability of the whole sample space is always 111, and the probabilities of disjoint regions add.

Think About It

If P(A∪B)P(A \cup B)P(A∪B) includes the overlap A∩BA \cap BA∩B, why would adding P(A)P(A)P(A) and P(B)P(B)P(B) usually count some outcomes twice?

Counting Groups: Combinations and Permutations

Counting problems often ask how many ways a selection can be made. The first decision is whether order matters.

If the selected people or objects form a group and their order is irrelevant, the problem uses a combination. The number of ways to choose rrr items from nnn is

(nr)=n!r!(n−r)!,\binom{n}{r}=\frac{n!}{r!(n-r)!},(rn​)=r!(n−r)!n!​,

where n!n!n! means the product of the positive integers from 111 to nnn.

If order matters, the problem instead uses a permutation. For example, choosing a president and a treasurer from a group is different from choosing the same two people for the opposite roles. In contrast, selecting four suppliers to invite to bid creates a group, so the order of selection does not matter.

Selecting suppliers

A contractor selects four suppliers from nine. The number of possible groups is

(94)=9!4!5!=126.\binom{9}{4} =\frac{9!}{4!5!} =126.(49​)=4!5!9!​=126.

Suppose one particular supplier wants to know the probability of being selected. Among the groups that include this supplier, three more suppliers must be chosen from the other eight. There are

(83)=56\binom{8}{3}=56(38​)=56

such groups. Assuming all groups of four are equally likely, the probability of being selected is

(83)(94)=56126=49.\frac{\binom{8}{3}}{\binom{9}{4}} =\frac{56}{126} =\frac{4}{9}.(49​)(38​)​=12656​=94​.

There is also a useful sequential way to see the same probability. The probability of not being selected in the first draw is 89\frac{8}{9}98​. Given that the supplier has not been selected, the probability of avoiding selection in the second draw is 78\frac{7}{8}87​. The next two conditional probabilities are 67\frac{6}{7}76​ and 56\frac{5}{6}65​. Therefore,

P(not selected)=89⋅78⋅67⋅56=59.P(\text{not selected}) =\frac{8}{9}\cdot\frac{7}{8}\cdot\frac{6}{7}\cdot\frac{5}{6} =\frac{5}{9}.P(not selected)=98​⋅87​⋅76​⋅65​=95​.

Taking the complement gives

P(selected)=1−59=49.P(\text{selected})=1-\frac{5}{9}=\frac{4}{9}.P(selected)=1−95​=94​.

This product works because each factor is a conditional probability: the number of remaining nonselected suppliers changes after each selection.

Selecting from two categories

Suppose a group contains six soccer players and five football players. A five-person group must contain exactly three soccer players and two football players.

The choices happen in two stages:

  1. Choose three of the six soccer players: (63)\binom{6}{3}(36​) ways.
  2. Choose two of the five football players: (52)\binom{5}{2}(25​) ways.

The fundamental counting rule says that the number of ways to carry out both stages is the product:

(63)(52)=20⋅10=200.\binom{6}{3}\binom{5}{2} =20\cdot10 =200.(36​)(25​)=20⋅10=200.

To find the probability that a randomly chosen group of five has this composition, the denominator must count all five-person groups from the eleven people:

(115)=462.\binom{11}{5}=462.(511​)=462.

Thus,

P(exactly 3 soccer and 2 football)=200462=100231≈0.4329.P(\text{exactly 3 soccer and 2 football}) =\frac{200}{462} =\frac{100}{231} \approx 0.4329.P(exactly 3 soccer and 2 football)=462200​=231100​≈0.4329.

The denominator does not need to separate groups by their category composition. It simply counts every possible group of five.

Think About It

When counting a group, what detail determines whether the calculation should use a combination or a permutation?

Independent Trials and the Binomial Distribution

A binomial random variable counts the number of successes in a fixed number of trials. It applies when:

  • The number of trials is fixed.
  • Each trial has two outcomes of interest, called success and failure.
  • The probability of success is the same on every trial.
  • The trials are independent.

If XXX is the number of successes in nnn trials and each success has probability ppp, then

P(X=x)=(nx)px(1−p)n−x.P(X=x)=\binom{n}{x}p^x(1-p)^{n-x}.P(X=x)=(xn​)px(1−p)n−x.

The combination factor (nx)\binom{n}{x}(xn​) counts the different ways to position the xxx successes among the nnn trials. The factor pxp^xpx accounts for the successes, and (1−p)n−x(1-p)^{n-x}(1−p)n−x accounts for the failures.

Example: hits in at-bats

Suppose a player gets a hit with probability 0.30.30.3 on each at-bat, and the at-bats are treated as identical and independent. In six at-bats, the probability of exactly two hits is

P(X=2)=(62)(0.3)2(0.7)4.P(X=2) =\binom{6}{2}(0.3)^2(0.7)^4.P(X=2)=(26​)(0.3)2(0.7)4.

Here, (62)=15\binom{6}{2}=15(26​)=15, so

P(X=2)=15(0.09)(0.2401)=0.324135≈0.324.P(X=2)=15(0.09)(0.2401)=0.324135\approx 0.324.P(X=2)=15(0.09)(0.2401)=0.324135≈0.324.

The expected number of hits is

E[X]=np=6(0.3)=1.8.E[X]=np=6(0.3)=1.8.E[X]=np=6(0.3)=1.8.

An expected value is a long-run average, not a result that must occur in any one set of trials. The player cannot get 1.81.81.8 hits in a single game, but across many comparable sets of six at-bats, the average number of hits would tend toward 1.81.81.8.

The binomial distribution is a good fit when the problem counts successes across a fixed number of independent trials with a constant success probability.

Think About It

Why does the binomial formula need the factor (nx)\binom{n}{x}(xn​) in addition to the probabilities of success and failure?

Conditional Probability and Bayes’s Theorem

A conditional probability describes the chance of one event when another event is already known to have occurred. The definition is

P(A∣B)=P(A∩B)P(B),P(A\mid B)=\frac{P(A\cap B)}{P(B)},P(A∣B)=P(B)P(A∩B)​,

provided P(B)>0P(B)>0P(B)>0.

This distinction matters in diagnostic testing. The probability that a test is positive when a person has a disease is not the same as the probability that a person has the disease when the test is positive. Those probabilities condition on different information.

Example: interpreting a positive test

Suppose:

  • The probability that a person has a virus is P(V)=0.012P(V)=0.012P(V)=0.012.
  • The test is positive for 98%98\%98% of people who have the virus: P(+∣V)=0.98P(+\mid V)=0.98P(+∣V)=0.98.
  • The test is negative for 99%99\%99% of people who do not have the virus, so P(+∣Vc)=0.01P(+\mid V^c)=0.01P(+∣Vc)=0.01.

The probability of a positive result among people who have the virus is

P(V∩+)=P(V)P(+∣V)=0.012(0.98)=0.01176.P(V\cap +)=P(V)P(+\mid V) =0.012(0.98)=0.01176.P(V∩+)=P(V)P(+∣V)=0.012(0.98)=0.01176.

The probability of a positive result among people who do not have the virus is

P(Vc∩+)=P(Vc)P(+∣Vc)=0.988(0.01)=0.00988.P(V^c\cap +)=P(V^c)P(+\mid V^c) =0.988(0.01)=0.00988.P(Vc∩+)=P(Vc)P(+∣Vc)=0.988(0.01)=0.00988.

A positive result can happen through either of these two disjoint routes: the person has the virus and tests positive, or the person does not have the virus and tests positive. Therefore,

P(+)=0.01176+0.00988=0.02164.P(+)=0.01176+0.00988=0.02164.P(+)=0.01176+0.00988=0.02164.

The desired probability is the chance of having the virus given a positive result:

P(V∣+)=P(V∩+)P(+)=0.011760.02164≈0.5434.P(V\mid +) =\frac{P(V\cap +)}{P(+)} =\frac{0.01176}{0.02164} \approx 0.5434.P(V∣+)=P(+)P(V∩+)​=0.021640.01176​≈0.5434.

Thus, in this example, a positive result corresponds to about a 54.34%54.34\%54.34% chance of having the virus. The result is not 98%98\%98% because 98%98\%98% describes the test’s positive rate among people known to have the virus, not the probability of infection among those who test positive.

Bayes’s theorem expresses this relationship generally:

P(A∣B)=P(A)P(B∣A)P(B).P(A\mid B)=\frac{P(A)P(B\mid A)}{P(B)}.P(A∣B)=P(B)P(A)P(B∣A)​.

When BBB can occur through several mutually exclusive routes, its probability can be found by adding the probabilities of those routes. That is why the denominator in the example included both groups of people who tested positive.

Think About It

How can a very small prevalence of a condition affect the meaning of a positive test, even when the test has high sensitivity and specificity?

The Geometric Distribution: Trials Until the First Success

A geometric random variable counts the number of independent trials needed to get the first success. If the probability of success on each trial is ppp, then getting the first success on trial xxx requires x−1x-1x−1 failures followed by one success:

P(X=x)=(1−p)x−1p,x=1,2,3,…P(X=x)=(1-p)^{x-1}p,\qquad x=1,2,3,\ldotsP(X=x)=(1−p)x−1p,x=1,2,3,…

The exponent is x−1x-1x−1 because the success occurs on the final trial, after exactly x−1x-1x−1 failures.

Example: first bullseye

Suppose the probability of hitting a bullseye on any throw is 0.06250.06250.0625. The probability that the first bullseye occurs on the tenth throw is

P(X=10)=(1−0.0625)9(0.0625)≈0.03496.P(X=10)=(1-0.0625)^9(0.0625) \approx 0.03496.P(X=10)=(1−0.0625)9(0.0625)≈0.03496.

The mean, or expected number of trials until the first success, is

E[X]=1p.E[X]=\frac{1}{p}.E[X]=p1​.

Since 0.0625=1160.0625=\frac{1}{16}0.0625=161​, the expected wait is

E[X]=10.0625=16E[X]=\frac{1}{0.0625}=16E[X]=0.06251​=16

throws. This is a long-run average; an individual sequence might take fewer or more than sixteen throws.

The geometric distribution and the binomial distribution both involve repeated trials, but they answer different questions. The binomial distribution counts successes in a fixed number of trials. The geometric distribution counts how many trials are needed to reach the first success.

Think About It

What is the difference between asking for the number of hits in six throws and asking how many throws it takes to get the first hit?

Discrete Random Variables: PMFs, CDFs, and Means

A discrete random variable takes distinct, countable values. Its probability mass function, or PMF, assigns a probability to each possible value:

f(x)=P(X=x).f(x)=P(X=x).f(x)=P(X=x).

Every probability in a PMF must be nonnegative, and the probabilities over all possible values must sum to 111.

Suppose a random variable takes the values 1,2,3,41,2,3,41,2,3,4 with probabilities

P(X=1)=0.22,P(X=2)=0.35,P(X=3)=0.28.P(X=1)=0.22,\quad P(X=2)=0.35,\quad P(X=3)=0.28.P(X=1)=0.22,P(X=2)=0.35,P(X=3)=0.28.

The last probability must make the total equal 111:

P(X=4)=1−(0.22+0.35+0.28)=0.15.P(X=4)=1-(0.22+0.35+0.28)=0.15.P(X=4)=1−(0.22+0.35+0.28)=0.15.

The cumulative distribution function, or CDF, is

F(x)=P(X≤x).F(x)=P(X\le x).F(x)=P(X≤x).

It accumulates the PMF probabilities up to and including xxx. At the possible values, the CDF is

F(1)=0.22,F(2)=0.22+0.35=0.57,F(1)=0.22,\qquad F(2)=0.22+0.35=0.57,F(1)=0.22,F(2)=0.22+0.35=0.57, F(3)=0.57+0.28=0.85,F(4)=1.F(3)=0.57+0.28=0.85,\qquad F(4)=1.F(3)=0.57+0.28=0.85,F(4)=1.

Expected value

The expected value is the probability-weighted average of the possible values:

E[X]=∑xxf(x).E[X]=\sum_x x f(x).E[X]=x∑​xf(x).

For this distribution,

E[X]=1(0.22)+2(0.35)+3(0.28)+4(0.15)=2.36.E[X] =1(0.22)+2(0.35)+3(0.28)+4(0.15) =2.36.E[X]=1(0.22)+2(0.35)+3(0.28)+4(0.15)=2.36.

The mean does not have to be one of the values the variable can take. Here, XXX can be only 111, 222, 333, or 444, but its long-run average is 2.362.362.36.

Moment-generating functions

A moment-generating function packages information about the moments of a random variable into a function:

MX(t)=E[etX].M_X(t)=E[e^{tX}].MX​(t)=E[etX].

For a discrete variable, this becomes

MX(t)=∑xetxf(x).M_X(t)=\sum_x e^{tx}f(x).MX​(t)=x∑​etxf(x).

For the distribution above,

MX(t)=0.22et+0.35e2t+0.28e3t+0.15e4t.M_X(t)=0.22e^t+0.35e^{2t}+0.28e^{3t}+0.15e^{4t}.MX​(t)=0.22et+0.35e2t+0.28e3t+0.15e4t.

Differentiating and evaluating at t=0t=0t=0 gives the mean:

MX′(0)=E[X].M_X'(0)=E[X].MX′​(0)=E[X].

Indeed,

MX′(t)=0.22et+0.70e2t+0.84e3t+0.60e4t,M_X'(t)=0.22e^t+0.70e^{2t}+0.84e^{3t}+0.60e^{4t},MX′​(t)=0.22et+0.70e2t+0.84e3t+0.60e4t,

so

MX′(0)=0.22+0.70+0.84+0.60=2.36.M_X'(0)=0.22+0.70+0.84+0.60=2.36.MX′​(0)=0.22+0.70+0.84+0.60=2.36.

Higher derivatives at t=0t=0t=0 give higher moments, such as E[X2]E[X^2]E[X2] and E[X3]E[X^3]E[X3].

Think About It

Why does the CDF keep increasing as larger values of xxx are included, while the PMF assigns separate probabilities to individual values?

Variance and the Linearity of Expected Value

The variance measures how spread out a random variable is around its mean. If μ=E[X]\mu=E[X]μ=E[X], its definition is

Var⁡(X)=E[(X−μ)2].\operatorname{Var}(X)=E[(X-\mu)^2].Var(X)=E[(X−μ)2].

Expanding the square gives

Var⁡(X)=E[X2−2μX+μ2].\operatorname{Var}(X) =E[X^2-2\mu X+\mu^2].Var(X)=E[X2−2μX+μ2].

Expected value is linear: the expectation of a sum is the sum of the expectations, and a constant factor can be taken outside. Since μ\muμ is a constant,

Var⁡(X)=E[X2]−2μE[X]+μ2.\operatorname{Var}(X) =E[X^2]-2\mu E[X]+\mu^2.Var(X)=E[X2]−2μE[X]+μ2.

Because E[X]=μE[X]=\muE[X]=μ,

Var⁡(X)=E[X2]−2μ2+μ2=E[X2]−μ2.\operatorname{Var}(X) =E[X^2]-2\mu^2+\mu^2 =E[X^2]-\mu^2.Var(X)=E[X2]−2μ2+μ2=E[X2]−μ2.

Replacing μ\muμ with E[X]E[X]E[X] gives the commonly used formula

Var⁡(X)=E[X2]−(E[X])2.\operatorname{Var}(X)=E[X^2]-(E[X])^2.Var(X)=E[X2]−(E[X])2.

This identity follows from expanding the definition and using linearity. Independence is not required for this derivation.

Think About It

Why can the constant μ\muμ be treated as a constant when it appears inside an expectation involving XXX?

The Poisson Distribution: Counting Occurrences

A Poisson random variable counts how many times an event occurs in a specified interval, such as a period of time. Its parameter λ\lambdaλ is the mean number of occurrences in that interval. Its probability mass function is

P(X=x)=e−λλxx!,x=0,1,2,…P(X=x)=e^{-\lambda}\frac{\lambda^x}{x!}, \qquad x=0,1,2,\ldotsP(X=x)=e−λx!λx​,x=0,1,2,…

Suppose the average number of accidents over a five-year period is 333. Then λ=3\lambda=3λ=3. If insurance coverage is dropped after three or more accidents, the probability of being dropped is

P(X≥3).P(X\ge 3).P(X≥3).

It is easier to find the complementary probability of having at most two accidents:

P(X≥3)=1−P(X≤2)=1−(P(X=0)+P(X=1)+P(X=2)).P(X\ge3)=1-P(X\le2) =1-\bigl(P(X=0)+P(X=1)+P(X=2)\bigr).P(X≥3)=1−P(X≤2)=1−(P(X=0)+P(X=1)+P(X=2)).

Using the Poisson formula,

P(X=0)=e−3,P(X=1)=3e−3,P(X=2)=92e−3.P(X=0)=e^{-3},\qquad P(X=1)=3e^{-3},\qquad P(X=2)=\frac{9}{2}e^{-3}.P(X=0)=e−3,P(X=1)=3e−3,P(X=2)=29​e−3.

Therefore,

P(X≥3)=1−e−3(1+3+92)≈0.5768.P(X\ge3) =1-e^{-3}\left(1+3+\frac{9}{2}\right) \approx 0.5768.P(X≥3)=1−e−3(1+3+29​)≈0.5768.

The chance of having at least three accidents is therefore about 0.5770.5770.577.

The Poisson model is for a count of occurrences in an interval. It should be distinguished from a model of the amount of time until an occurrence.

Think About It

Why is the complement rule especially convenient when a problem asks for three or more occurrences?

The Exponential Distribution: Waiting Time Until an Occurrence

An exponential random variable describes a continuous waiting time, such as the time until the first accident. It is related to the Poisson distribution: if occurrences follow a Poisson model with rate λ\lambdaλ per unit of time, the waiting time until the first occurrence is exponential with that rate.

For rate λ\lambdaλ, the density is

f(w)=λe−λw,w≥0,f(w)=\lambda e^{-\lambda w},\qquad w\ge0,f(w)=λe−λw,w≥0,

and the probability of waiting no longer than www is

P(W≤w)=1−e−λw.P(W\le w)=1-e^{-\lambda w}.P(W≤w)=1−e−λw.

The mean waiting time is

E[W]=1λ.E[W]=\frac{1}{\lambda}.E[W]=λ1​.

Keeping the time units consistent

Suppose the mean is three accidents per five-year period. In units of five-year periods, the rate is λ=3\lambda=3λ=3. The average wait for one accident is therefore

13\frac{1}{3}31​

of a five-year period, which is 53\frac{5}{3}35​ years.

One year is 15\frac{1}{5}51​ of a five-year period. Thus, the probability that the first accident occurs within one year is

P(W≤15)=1−e−3(1/5)=1−e−3/5≈0.4512.P\left(W\le\frac{1}{5}\right) =1-e^{-3(1/5)} =1-e^{-3/5} \approx 0.4512.P(W≤51​)=1−e−3(1/5)=1−e−3/5≈0.4512.

The unit conversion matters: using a rate measured per five-year period requires measuring the waiting time in five-year periods too. Equivalently, the rate is 35\frac{3}{5}53​ accidents per year, and the one-year probability is 1−e−3/51-e^{-3/5}1−e−3/5.

Poisson models count how many occurrences happen in an interval. Exponential models describe how long it takes until the first occurrence.

Think About It

If a rate is stated per five-year period, what must happen to the time value before it is substituted into the exponential formula for a one-year wait?

Continuous Random Variables: Densities, CDFs, and Means

A continuous random variable can take values throughout an interval. Its probability density function, or PDF, assigns density rather than probability to individual points. Probabilities are found by integrating the density over intervals.

For a valid density, the function must be nonnegative, and its total area must equal 111:

∫−∞∞f(x) dx=1.\int_{-\infty}^{\infty}f(x)\,dx=1.∫−∞∞​f(x)dx=1.

Suppose the density is

f(x)=x16,2≤x≤6,f(x)=\frac{x}{16},\qquad 2\le x\le6,f(x)=16x​,2≤x≤6,

and f(x)=0f(x)=0f(x)=0 outside this interval. The total area is

∫26x16 dx=x232∣26=36−432=1,\int_2^6\frac{x}{16}\,dx =\left.\frac{x^2}{32}\right|_2^6 =\frac{36-4}{32}=1,∫26​16x​dx=32x2​​26​=3236−4​=1,

so it is a valid probability density.

The cumulative distribution function

For a continuous variable, the CDF is the accumulated area to the left of xxx:

F(x)=P(X≤x)=∫−∞xf(t) dt.F(x)=P(X\le x)=\int_{-\infty}^{x}f(t)\,dt.F(x)=P(X≤x)=∫−∞x​f(t)dt.

For the density above, the CDF is

F(x)={0,x<2,x2−432,2≤x≤6,1,x>6.F(x)= \begin{cases} 0, & x<2,\\[4pt] \frac{x^2-4}{32}, & 2\le x\le6,\\[4pt] 1, & x>6. \end{cases}F(x)=⎩⎨⎧​0,32x2−4​,1,​x<2,2≤x≤6,x>6.​

Within the interval, the integral begins at 222 because the density is zero below that point:

F(x)=∫2xt16 dt=x2−432.F(x)=\int_2^x \frac{t}{16}\,dt =\frac{x^2-4}{32}.F(x)=∫2x​16t​dt=32x2−4​.

The endpoints provide useful checks: F(2)=0F(2)=0F(2)=0 and F(6)=1F(6)=1F(6)=1.

Probabilities from the CDF

The probability that a continuous random variable lies between aaa and bbb is the area under the density between those values. Equivalently, it is the difference between CDF values:

P(a≤X≤b)=F(b)−F(a).P(a\le X\le b)=F(b)-F(a).P(a≤X≤b)=F(b)−F(a).

For the interval from 222 to 333,

P(2≤X≤3)=F(3)−F(2)=9−432−0=532≈0.15625.P(2\le X\le3) =F(3)-F(2) =\frac{9-4}{32}-0 =\frac{5}{32} \approx0.15625.P(2≤X≤3)=F(3)−F(2)=329−4​−0=325​≈0.15625.

For a continuous variable, including or excluding a single endpoint does not change the probability, because any individual point has probability 000.

The mean of a continuous variable

For a continuous random variable, the expected value is found by integrating xxx times the density over the region where the density is positive:

E[X]=∫−∞∞xf(x) dx.E[X]=\int_{-\infty}^{\infty}x f(x)\,dx.E[X]=∫−∞∞​xf(x)dx.

Here,

E[X]=∫26x(x16) dx=∫26x216 dx=x348∣26=216−848=133.E[X]=\int_2^6 x\left(\frac{x}{16}\right)\,dx =\int_2^6\frac{x^2}{16}\,dx =\left.\frac{x^3}{48}\right|_2^6 =\frac{216-8}{48} =\frac{13}{3}.E[X]=∫26​x(16x​)dx=∫26​16x2​dx=48x3​​26​=48216−8​=313​.

The mean is about 4.334.334.33. It lies to the right of the midpoint of the interval because the density x16\frac{x}{16}16x​ is larger for larger values of xxx, giving the right side of the interval more weight.

Think About It

Why does a density value describe an area calculation rather than the probability of one exact value of a continuous variable?

Comprehensive Review

The key to solving probability problems is matching the question to the structure of the situation.

  • Event relationships can be organized with Venn diagrams. Complements and unions help determine which regions must be added.
  • Combinations count groups when order does not matter. If choices happen in stages, the fundamental counting rule multiplies the number of choices at each stage.
  • The binomial distribution counts successes in a fixed number of independent trials. The geometric distribution counts trials until the first success.
  • Conditional probability asks for a probability after some information is known. Bayes’s theorem reverses the condition, as when a positive test result is used to estimate the probability of disease.
  • A discrete random variable uses a PMF to assign probabilities to individual values and a CDF to accumulate them. Its mean is a probability-weighted sum.
  • Variance measures spread and can be written as E[X2]−(E[X])2E[X^2]-(E[X])^2E[X2]−(E[X])2.
  • The Poisson distribution models counts of occurrences in an interval. The exponential distribution models waiting time until the first occurrence.
  • A continuous random variable uses a density. Integrating the density gives probabilities and the CDF, while integrating xf(x)x f(x)xf(x) gives the mean.

The unifying idea is that probability depends on carefully defining what is being counted, what information is known, and whether the variable describes a count, a fixed sequence of trials, or a continuous measurement such as waiting time.

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent