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: Exam-Style Study Notes

1. Probability Laws and Venn Diagrams

A Venn diagram represents events as regions inside the sample space. It is especially useful when a problem gives information about unions, intersections, and complements, because each region corresponds to a specific event.

For two events AAA and BBB, the four regions are:

  • AAA only: A∩BcA \cap B^cA∩Bc

  • BBB only: B∩AcB \cap A^cB∩Ac

  • Both events: A∩BA \cap BA∩B

  • Neither event: (A∪B)c(A \cup B)^c(A∪B)c

The regions are mutually exclusive and together fill the sample space, so their probabilities add to 111.

Worked example

Suppose:

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 probability of the AAA-only region is already known:

P(A∩Bc)=0.3.P(A\cap B^c)=0.3.P(A∩Bc)=0.3.

Let x=P(A∩B)x=P(A\cap B)x=P(A∩B), y=P(B∩Ac)y=P(B\cap A^c)y=P(B∩Ac), and z=P((A∪B)c)z=P((A\cup B)^c)z=P((A∪B)c). Then:

  • The union contains the AAA-only, BBB-only, and intersection regions:

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

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

  • The complement of AAA contains the BBB-only and neither regions:

    y+z=0.6.y+z=0.6.y+z=0.6.
  • All regions together have probability 111:

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

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

Using y+z=0.6y+z=0.6y+z=0.6 in the last equation gives:

x+0.6=0.7,x+0.6=0.7,x+0.6=0.7,

and therefore:

P(A∩B)=0.1.\boxed{P(A\cap B)=0.1}.P(A∩B)=0.1​.

The other regions are y=0.2y=0.2y=0.2 and z=0.4z=0.4z=0.4, which verifies that all four probabilities add to 111.

A Venn diagram helps translate probability statements into sums of specific regions. It is often the quickest way to organize information before doing algebra.


2. Combinations and Random Selection

A combination counts selections when the order of the selected items does not matter. A permutation counts arrangements when order matters.

The number of ways to choose rrr objects from nnn distinct objects is:

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

Here, n!n!n! means the product of all positive integers up to nnn, and 0!=10!=10!=1.

Selecting suppliers to bid

A contractor selects 444 of 999 suppliers. Since only the chosen group matters—not the order in which suppliers are selected—the number of possible groups is:

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

If one particular supplier wants to know the probability of being selected, there are two useful methods.

Direct favorable-outcomes method

Assume every group of four suppliers is equally likely.

If the particular supplier is included, the other 333 suppliers must be chosen from the remaining 888. The number of favorable groups is therefore:

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

The probability that the supplier is selected is:

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

Complement and sequential method

The supplier is not selected if the supplier is missed on all four selections. In order, the conditional probabilities of being missed are:

89,78,67,56.\frac{8}{9},\qquad \frac{7}{8},\qquad \frac{6}{7},\qquad \frac{5}{6}.98​,87​,76​,65​.

By the multiplication rule for sequential conditional probabilities:

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​.

Thus:

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

The result also equals the proportion of suppliers selected, 4/94/94/9. That shortcut is useful in this symmetric situation, but the counting or sequential reasoning explains why it works.

Selecting from two categories

Suppose a group has 666 soccer players and 555 football players, and a selection must contain exactly 333 soccer players and 222 football players.

First choose the soccer players, then choose the football players. By the fundamental counting rule, the numbers of choices multiply:

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

To find the probability of this exact composition when 555 people are selected at random from all 111111, use all possible groups of five as the denominator:

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

Therefore:

P(exactly 3 soccer and 2 football)=(63)(52)(115)=200462=100231≈0.4329.P(\text{exactly 3 soccer and 2 football}) =\frac{\binom{6}{3}\binom{5}{2}}{\binom{11}{5}} =\frac{200}{462} =\boxed{\frac{100}{231}} \approx 0.4329.P(exactly 3 soccer and 2 football)=(511​)(36​)(25​)​=462200​=231100​​≈0.4329.

The denominator includes every possible group of five, regardless of its composition. The numerator counts only groups with the requested composition.


3. The Binomial Distribution

A binomial random variable counts the number of successes in a fixed number of independent trials when each trial has the same probability of success.

The binomial model applies when:

  • There is a fixed number nnn of trials.

  • Each trial has two relevant outcomes, treated as success or failure.

  • The probability of success ppp is the same on every trial.

  • The trials are independent.

If XXX is the number of successes, then:

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

The factor (nx)\binom{n}{x}(xn​) counts the ways the xxx successes can occur among the nnn trials.

Example: hits in six at-bats

Suppose a batter has probability p=0.3p=0.3p=0.3 of getting a hit on each at-bat. For 666 independent at-bats, let XXX be the number of hits. Then XXX is binomial, and the probability of exactly 222 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.

Since (62)=15\binom{6}{2}=15(26​)=15:

P(X=2)=15(0.09)(0.2401)=0.324135≈0.324.P(X=2)=15(0.09)(0.2401)=0.324135\approx\boxed{0.324}.P(X=2)=15(0.09)(0.2401)=0.324135≈0.324​.

The mean, or expected number of successes, is:

E[X]=np.E[X]=np.E[X]=np.

Here:

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

An expected value need not be a possible individual outcome. Although the batter cannot get 1.81.81.8 hits in one set of at-bats, the average number of hits over many comparable sets would approach 1.81.81.8.


4. Conditional Probability and Bayes’ Theorem

A test’s accuracy among people known to have or not have a condition does not, by itself, determine the probability that a person has the condition after receiving a positive result. That probability also depends on how common the condition is.

The conditional probability of event AAA given event BBB is:

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

Bayes’ theorem follows from this definition and allows a conditional probability to be reversed:

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

For a positive test result, the denominator includes positive results from both people who have the condition and people who do not.

Example: interpreting a positive test

Suppose:

  • The proportion of the population with the virus is 0.0120.0120.012.

  • The test is positive for someone with the virus with probability 0.980.980.98.

  • The test is negative for someone without the virus with probability 0.990.990.99.

Let VVV mean that the person has the virus, and let +++ mean a positive test. Then:

P(V)=0.012,P(Vc)=0.988,P(V)=0.012,\qquad P(V^c)=0.988,P(V)=0.012,P(Vc)=0.988,
P(+∣V)=0.98,P(+∣Vc)=0.01.P(+\mid V)=0.98,\qquad P(+\mid V^c)=0.01.P(+∣V)=0.98,P(+∣Vc)=0.01.

The last probability is 0.010.010.01 because the false-positive rate is the complement of the 0.990.990.99 true-negative rate.

The probability of both having the virus and testing positive 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 testing positive without having 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.

Thus the total probability of a positive test is:

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

Bayes’ theorem gives:

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

So the probability of actually having the virus after a positive result is about 54.34%54.34\%54.34%, not 98%98\%98% or 99%99\%99%. The prevalence of the condition matters because positive results can include false positives.

Sensitivity is the probability of a positive result given that the condition is present. Specificity is the probability of a negative result given that the condition is absent. Neither is the same as the probability of having the condition given a positive result.


5. The Geometric Distribution

A geometric random variable counts the number of independent trials required to obtain the first success. It differs from a binomial random variable: a binomial variable counts successes in a fixed number of trials, while a geometric variable counts trials until the first success.

If the probability of success on each trial is ppp, then:

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,…

For the first success to occur on trial xxx, the first x−1x-1x−1 trials must be failures, followed by one success.

Example: throws until the first bullseye

Suppose the probability of a bullseye on each throw is p=0.0625=1/16p=0.0625=1/16p=0.0625=1/16. The probability that the first bullseye occurs on throw 101010 is:

P(X=10)=(1−0.0625)9(0.0625)=(0.9375)9(0.0625)≈0.03496.P(X=10)=(1-0.0625)^9(0.0625) =(0.9375)^9(0.0625) \approx\boxed{0.03496}.P(X=10)=(1−0.0625)9(0.0625)=(0.9375)9(0.0625)≈0.03496​.

The expected number of trials until the first success is:

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

For this example:

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

Thus, over many repetitions, the average waiting time in throws until the first bullseye would approach 161616 throws.


6. Discrete Probability Distributions, CDFs, and Expected Values

A probability mass function (PMF) assigns a probability to each possible value of a discrete random variable. For a discrete random variable XXX, the probability at xxx is P(X=x)P(X=x)P(X=x).

A valid PMF must satisfy:

  • Every probability is nonnegative.

  • The probabilities over all possible values add to 111.

Example PMF

Suppose XXX can take the values 1,2,3,41,2,3,41,2,3,4, with:

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 final 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 (CDF) is defined by:

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

For this distribution:

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

The CDF accumulates probability from the smallest values upward.

Expected value of a discrete random variable

The expected value, or mean, of a discrete random variable is the probability-weighted average of its possible values:

E[X]=∑xxP(X=x).E[X]=\sum_x xP(X=x).E[X]=∑x​xP(X=x).

For the example:

E[X]=1(0.22)+2(0.35)+3(0.28)+4(0.15)=0.22+0.70+0.84+0.60=2.36.E[X] =1(0.22)+2(0.35)+3(0.28)+4(0.15) =0.22+0.70+0.84+0.60 =\boxed{2.36}.E[X]=1(0.22)+2(0.35)+3(0.28)+4(0.15)=0.22+0.70+0.84+0.60=2.36​.

The mean does not have to be one of the values that XXX can actually take. It represents the long-run average across repeated observations.

Moment-generating function

The moment-generating function (MGF) of XXX is:

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

For a discrete random variable with finite support:

MX(t)=∑xetxP(X=x).M_X(t)=\sum_x e^{tx}P(X=x).MX​(t)=∑x​etxP(X=x).

For the example:

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.

The MGF generates moments by differentiation. In particular:

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

Differentiating gives:

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.

Evaluating at t=0t=0t=0, where each exponential term equals 111, gives:

MX′(0)=0.22+0.70+0.84+0.60=2.36,M_X'(0)=0.22+0.70+0.84+0.60=\boxed{2.36},MX′​(0)=0.22+0.70+0.84+0.60=2.36​,

which agrees with the direct calculation of the mean. Higher derivatives at 000 yield higher moments, such as E[X2]E[X^2]E[X2].


7. Linearity of Expectation and Variance

The expectation operator is linear. For random variables XXX and YYY and constants aaa and bbb:

E[aX+bY]=aE[X]+bE[Y].E[aX+bY]=aE[X]+bE[Y].E[aX+bY]=aE[X]+bE[Y].

This property holds even when XXX and YYY are not independent.

The variance measures the expected squared distance from the mean. If μ=E[X]\mu=E[X]μ=E[X], then:

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

Expanding the square and applying linearity:

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

Since μ\muμ is a constant, E[μ2]=μ2E[\mu^2]=\mu^2E[μ2]=μ2. Also, E[X]=μE[X]=\muE[X]=μ. Therefore:

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

This computational formula is often easier to use than the original definition.


8. The Poisson Distribution

A Poisson random variable counts the number of occurrences of an event in a fixed interval, such as a period of time. The model is appropriate when occurrences happen at a stable average rate and are treated as independent.

If the expected number of occurrences in the interval is λ\lambdaλ, then:

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,…

The Poisson mean is:

E[X]=λ.E[X]=\lambda.E[X]=λ.

The value of λ\lambdaλ must correspond to the interval being studied. A mean of 333 accidents over five years means λ=3\lambda=3λ=3 for a five-year interval.

Example: at least three accidents in five years

Suppose the number of accidents in the next five years has a Poisson distribution with λ=3\lambda=3λ=3. An insurer drops coverage if there are at least three accidents.

It is easiest to use the complement:

P(X≥3)=1−P(X≤2)=1−[P(X=0)+P(X=1)+P(X=2)].P(X\ge 3)=1-P(X\le 2) =1-[P(X=0)+P(X=1)+P(X=2)].P(X≥3)=1−P(X≤2)=1−[P(X=0)+P(X=1)+P(X=2)].

The first three probabilities are:

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

Therefore:

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

There is approximately a 57.68%57.68\%57.68% probability of three or more accidents in the five-year period.


9. The Exponential Distribution and Waiting Times

The exponential distribution models a continuous waiting time until an event occurs. It is commonly paired with the Poisson distribution: the Poisson distribution counts events over an interval, while the exponential distribution describes the waiting time until the next event.

If the event rate is λ\lambdaλ per unit of time, the exponential waiting time WWW has density:

fW(w)=λe−λw,w≥0.f_W(w)=\lambda e^{-\lambda w}, \qquad w\ge 0.fW​(w)=λe−λw,w≥0.

Its mean waiting time is:

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

The probability of waiting no longer than time ttt is:

P(W≤t)=∫0tλe−λw dw=1−e−λt.P(W\le t)=\int_0^t \lambda e^{-\lambda w}\,dw =1-e^{-\lambda t}.P(W≤t)=∫0t​λe−λwdw=1−e−λt.

Applying the model with careful units

Suppose the average number of accidents is 333 per five-year period. The rate per year is therefore:

λ=35\lambda=\frac{3}{5}λ=53​

accidents per year. For the first accident to occur within one year:

P(W≤1)=1−e−(3/5)(1)=1−e−0.6≈0.4512.P(W\le 1) =1-e^{-(3/5)(1)} =1-e^{-0.6} \approx\boxed{0.4512}.P(W≤1)=1−e−(3/5)(1)=1−e−0.6≈0.4512​.

Equivalently, time can be measured in five-year intervals. In those units the event rate is 333 per interval, and one year is 1/51/51/5 of an interval:

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

Both calculations agree. Keeping the time unit consistent with the rate is essential.


10. Continuous Probability Distributions

For a continuous random variable, probabilities are found from the probability density function (PDF) by integrating over an interval. A valid PDF must be nonnegative, and its total area over the real line must equal 111.

For a continuous random variable XXX with density f(x)f(x)f(x):

P(a≤X≤b)=∫abf(x) dx.P(a\le X\le b)=\int_a^b f(x)\,dx.P(a≤X≤b)=∫ab​f(x)dx.

The cumulative distribution function is:

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.

Where the density is continuous, the CDF is an antiderivative of the PDF. For continuous random variables, the probability at any single point is 000, so including or excluding an interval endpoint does not change the probability.

Example PDF and CDF

Suppose:

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

and f(x)=0f(x)=0f(x)=0 otherwise.

The CDF must account for the fact that the density is zero below 222 and that total accumulated probability reaches 111 at 666:

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

The formula is consistent at the endpoints:

  • At x=2x=2x=2, F(2)=0F(2)=0F(2)=0.

  • At x=6x=6x=6, F(6)=1F(6)=1F(6)=1.

The probability that XXX lies between 222 and 333 can be found from the CDF:

P(2≤X≤3)=F(3)−F(2)=9−432=532.P(2\le X\le 3) =F(3)-F(2) =\frac{9-4}{32} =\boxed{\frac{5}{32}}.P(2≤X≤3)=F(3)−F(2)=329−4​=325​​.

It can also be found directly by integrating the density:

∫23x16 dx=532.\int_2^3 \frac{x}{16}\,dx=\frac{5}{32}.∫23​16x​dx=325​.

Expected value of a continuous random 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.

For this PDF:

E[X]=∫26x(x16) dx=∫26x216 dx=[x348]26=216−848=133.\begin{aligned} 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} =\boxed{\frac{13}{3}}. \end{aligned}E[X]​=∫26​x(16x​)dx=∫26​16x2​dx=[48x3​]26​=48216−8​=313​​.​

The mean is approximately 4.3334.3334.333. It is the distribution’s long-run average value and, in the density’s area interpretation, represents the balance point of the distribution.

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent