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

Study methods

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

Probability and Statistics

Study Notes: Descriptive Statistics, Probability, and the Normal Distribution

Descriptive statistics and data interpretation

Descriptive statistics summarize and reveal patterns in data. They help describe a dataset before conclusions or decisions are made. Common tools include the mode, mean, median, standard deviation, coefficient of variation, histograms, and box plots.

Measures of center and spread

  • Mode: The value or values that occur most often. A dataset can have more than one mode.

  • Mean: The arithmetic average, found by adding the observations and dividing by their number.

  • Median: The middle value when observations are arranged in order. It is often used to compare typical performance because it is less affected by extreme observations than the mean.

  • Standard deviation: A measure of how dispersed observations are around the mean. A small standard deviation indicates that values cluster relatively closely; a large one indicates greater spread.

  • Coefficient of variation: A measure of spread relative to the mean, usually expressed as a percentage:

    CV=standard deviationmean×100%\text{CV}=\frac{\text{standard deviation}}{\text{mean}}\times 100\%CV=meanstandard deviation​×100%

    The coefficient of variation is useful when comparing variability across measurements with different means or scales. It is most meaningful when the data have a meaningful zero and the mean is nonzero.

Histograms

A histogram groups numerical observations into class intervals and displays how many observations fall in each interval.

  • The horizontal axis shows the class intervals.

  • The vertical axis shows frequency, or the number of observations in each interval.

  • The interval with the tallest bar has the greatest concentration of observations.

In the case study, the promotion-score histogram was reported to have its highest concentrations in the intervals from 505050 to 606060 and from 606060 to 707070.

Box plots, skewness, and outliers

A box plot summarizes a distribution using its median, quartiles, and whiskers. It can help compare groups by their centers and spreads and can identify potential outliers.

  • Skewness describes asymmetry in a distribution. A left-skewed distribution has a longer tail toward smaller values; a right-skewed distribution has a longer tail toward larger values.

  • Outliers are observations that lie unusually far from the rest of the data. A box plot marks them individually beyond the whiskers.

  • When comparing box plots, the median indicates the central value, while the box and whiskers give information about spread. A higher median indicates a higher typical score, but it does not necessarily indicate less variability.

In the case study, the work-score box plot was described as left-skewed, and the promotion-score box plot was reported to have two outliers on its lower-value side. The comparison of hospital types identified a median of 828282 as the highest reported performance value and named the Veterans Administration group; the discussion also suggested that this median might be shared with the private group. The key interpretive point is to distinguish the group with the highest median from the group with the least spread.


Probability and uncertainty

Probability supports decision-making under uncertainty. Decisions are often necessary even when outcomes—such as future sales, prices, or events—cannot be known in advance.

A probability is a numerical measure of the likelihood of an event. It is a pure number between 000 and 111, inclusive:

  • 000 represents an impossible event.

  • 111 represents a certain event.

  • Values between 000 and 111 represent varying degrees of likelihood.

Probability can be expressed as a fraction, decimal, or percentage. For example, a probability of 0.50.50.5 is the same as 50%50\%50%.

Events, experiments, and sample spaces

  • An experiment is a process that produces an observation or outcome, such as drawing a card or testing a manufactured item.

  • An outcome is one possible result of an experiment.

  • The sample space is the set of all possible outcomes.

  • An event is a specified outcome or collection of outcomes of interest.

When all outcomes are equally likely, the probability of an event can be calculated as:

P(A)=number of outcomes favorable to Atotal number of possible outcomesP(A)=\frac{\text{number of outcomes favorable to }A} {\text{total number of possible outcomes}}P(A)=total number of possible outcomesnumber of outcomes favorable to A​

This ratio applies directly when the possible outcomes are equally likely. In other settings, probability may instead be estimated from observed data or assigned using informed judgment.

Three ways of assigning probability

  • Classical (a priori) probability: Based on a known set of possible outcomes, often assumed to be equally likely. For example, each card in a well-shuffled deck has the same chance of being selected.

  • Empirical (relative-frequency) probability: Based on observed data or records. For example, a company may estimate the chance of a machine failure from the proportion of past operating days on which a failure occurred. An empirical estimate can change as additional observations become available.

  • Subjective probability: Based on informed judgment, expertise, or opinion when sufficient relevant data are unavailable. Expert estimates can provide a starting point, but experts may be affected by incomplete information or bias.

A probability based initially on judgment can be revised when new evidence becomes available. Such updating is the central idea of Bayesian analysis.


Combining events

Complements

The complement of an event AAA, written AcA^cAc, consists of all outcomes in which AAA does not occur. Since either AAA occurs or it does not:

P(Ac)=1−P(A)P(A^c)=1-P(A)P(Ac)=1−P(A)

For example, if 363636 people in a group of 707070 do not drink alcohol, the number who do drink is 70−36=3470-36=3470−36=34.

Mutually exclusive events

Two events are mutually exclusive if they cannot occur at the same time. For example, a single card drawn from a deck cannot be both a king and a queen.

For mutually exclusive events AAA and BBB:

P(A∪B)=P(A)+P(B)P(A\cup B)=P(A)+P(B)P(A∪B)=P(A)+P(B)

Events that can overlap

If two events can occur together, adding their probabilities counts the shared outcomes twice. The overlap must therefore be subtracted once:

P(A∪B)=P(A)+P(B)−P(A∩B)P(A\cup B)=P(A)+P(B)-P(A\cap B)P(A∪B)=P(A)+P(B)−P(A∩B)

Here, A∪BA\cup BA∪B means that AAA occurs, BBB occurs, or both occur; A∩BA\cap BA∩B means that both occur.

Card examples

A standard deck has 525252 cards, including 444 kings and 444 queens. Since a card cannot be both a king and a queen:

P(king or queen)=4+452=852=213P(\text{king or queen})=\frac{4+4}{52}=\frac{8}{52}=\frac{2}{13}P(king or queen)=524+4​=528​=132​

A deck also has 131313 diamonds, including one king of diamonds. Therefore:

P(king or diamond)=4+13−152=1652=413P(\text{king or diamond}) =\frac{4+13-1}{52} =\frac{16}{52} =\frac{4}{13}P(king or diamond)=524+13−1​=5216​=134​

The one king of diamonds is subtracted because it belongs to both events.

Independent events

Events AAA and BBB are independent when the occurrence of one does not change the probability of the other. For independent events:

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

Independence is an assumption that must be justified; probabilities should not automatically be multiplied merely because two events are being considered.


Conditional probability and contingency tables

A conditional probability is the probability of an event given that another event has occurred. The condition restricts attention to a smaller population: the outcomes in the conditioning event.

The probability of BBB given AAA is:

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

provided that P(A)>0P(A)>0P(A)>0. The numerator counts outcomes in which both events occur, while the denominator counts all outcomes in which the condition AAA occurs.

A useful way to reason about several related attributes is to create a contingency table. Rows and columns represent categories, and each cell records the count or probability for a particular combination. Row totals and column totals are marginal totals.

  • A joint probability concerns the simultaneous occurrence of attributes.

  • A marginal probability concerns one attribute regardless of the category of another attribute.

  • A conditional probability concerns one attribute within the restricted group specified by another.

The table-based approach is a practical way to keep track of overlaps and avoid double-counting.

Example: drinking and smoking

Suppose a group contains 373737 men and 333333 women, for 707070 people total. Of these, 363636 are teetotalers, meaning they do not drink alcohol. Thus, the number who drink is:

70−36=3470-36=3470−36=34

Among the drinkers, 131313 men and 777 women drink but do not smoke. Therefore, the number who both drink and smoke is:

34−(13+7)=1434-(13+7)=1434−(13+7)=14

The probability that a randomly selected person both drinks and smokes is:

1470=0.20\frac{14}{70}=0.207014​=0.20

Information about people who smoke but do not drink can be useful for completing a full table, but it is not needed for this calculation. The important step is to subtract the drinkers who do not smoke from the total number of drinkers.

Example: single people and college degrees

Suppose a population has 600600600 people, of whom 100100100 are single and 400400400 have college degrees. If 606060 are both single and college graduates, the number who are single or college graduates is:

100+400−60=440100+400-60=440100+400−60=440

The overlap is subtracted once because it was included in both group counts. Therefore:

P(single or college graduate)=440600P(\text{single or college graduate})=\frac{440}{600}P(single or college graduate)=600440​

This is an application of the union rule for events that can overlap.

Example: sales and interest rates

Suppose the probability that sales increase is 0.250.250.25, the probability that interest rates increase is 0.740.740.74, and the probability that sales or interest rates increase is 0.890.890.89. Then:

P(sales increase and interest rates increase)=0.25+0.74−0.89=0.10P(\text{sales increase and interest rates increase}) =0.25+0.74-0.89 =0.10P(sales increase and interest rates increase)=0.25+0.74−0.89=0.10

The union rule is rearranged to find the probability of the overlap.


Bayes’ theorem and updating probability

Bayes’ theorem calculates the probability of a possible cause or state after evidence has been observed. It reverses a conditional probability: evidence may be described as likely under a particular state, while the question asks how likely that state is given the evidence.

For events AAA and BBB:

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

When the evidence BBB can occur under either AAA or its complement AcA^cAc, the denominator can be expanded:

P(A∣B)=P(B∣A)P(A)P(B∣A)P(A)+P(B∣Ac)P(Ac)P(A\mid B) = \frac{P(B\mid A)P(A)} {P(B\mid A)P(A)+P(B\mid A^c)P(A^c)}P(A∣B)=P(B∣A)P(A)+P(B∣Ac)P(Ac)P(B∣A)P(A)​
  • Prior probability: The probability assigned to a state before observing the new evidence.

  • Likelihood: The probability of observing the evidence if that state is true.

  • Posterior probability: The revised probability of the state after taking the evidence into account.

Example: defective products from two machines

Suppose a new machine produces 75%75\%75% of all items and has a defect rate of 8%8\%8%. An older machine produces the remaining 25%25\%25% and has a defect rate of 23%23\%23%. If a randomly chosen item is found to be defective, the probability that it came from the new machine is:

P(new∣defective)=0.08(0.75)0.08(0.75)+0.23(0.25)≈0.511P(\text{new}\mid\text{defective}) = \frac{0.08(0.75)} {0.08(0.75)+0.23(0.25)} \approx 0.511P(new∣defective)=0.08(0.75)+0.23(0.25)0.08(0.75)​≈0.511

Thus, approximately 51.1%51.1\%51.1% of the defective items are expected to come from the new machine. Although the new machine has the lower defect rate, it produces many more items, so its share of all defective items is not negligible. This example shows why the overall production proportions must be included when interpreting test or defect evidence.

Example: an oil test

Suppose the prior probability that a well will be successful is 0.400.400.40, while the probability of failure is 0.600.600.60. A detailed test is positive for 60%60\%60% of successful wells and for 20%20\%20% of unsuccessful wells.

The probability of a successful well with a positive test is:

0.60(0.40)=0.240.60(0.40)=0.240.60(0.40)=0.24

The probability of an unsuccessful well with a positive test is:

0.20(0.60)=0.120.20(0.60)=0.120.20(0.60)=0.12

Therefore, the probability of success given a positive detailed test is:

P(success∣positive test)=0.240.24+0.12=23≈0.667P(\text{success}\mid\text{positive test}) = \frac{0.24}{0.24+0.12} = \frac{2}{3} \approx 0.667P(success∣positive test)=0.24+0.120.24​=32​≈0.667

The test raises the estimated chance of success from the prior value of 40%40\%40% to a posterior value of about 66.7%66.7\%66.7%. Whether obtaining the test is worthwhile depends on the costs of testing and the value of the improved decision.


The normal distribution

The normal distribution is a continuous, bell-shaped probability distribution used to model many measurements and natural variations. Examples include weights, lengths, and other quantities that can take fractional values.

A normal distribution is determined by two parameters:

  • The mean μ\muμ, which locates its center.

  • The standard deviation σ\sigmaσ, which determines its spread.

For a normal distribution:

mean=median=mode=μ\text{mean}=\text{median}=\text{mode}=\mumean=median=mode=μ

The distribution is symmetric about its mean. Values equally far above and below the mean have matching positions in the distribution.

The empirical rule

For an approximately normal distribution:

  • About 68%68\%68% of observations lie within one standard deviation of the mean.

  • About 95%95\%95% lie within two standard deviations.

  • About 99.7%99.7\%99.7% lie within three standard deviations.

In symbolic form, these intervals are approximately:

μ±σ,μ±2σ,μ±3σ\mu\pm\sigma,\qquad \mu\pm2\sigma,\qquad \mu\pm3\sigmaμ±σ,μ±2σ,μ±3σ

The percentages are approximations that follow from the shape of the normal distribution.

Tails and the density curve

The normal curve’s tails extend indefinitely in both directions and approach, but do not touch, the horizontal axis. This is an asymptotic property. In principle, the curve assigns some probability to values far from the mean, although that probability may be extremely small.

The height of the normal curve at a point is a probability density, not the probability of observing exactly that value. For a continuous variable, probability is represented by the area under the curve over an interval:

P(a<X<b)=∫abf(x) dxP(a<X<b)=\int_a^b f(x)\,dxP(a<X<b)=∫ab​f(x)dx

A single exact point has zero area, so for a continuous variable:

P(X=x)=0P(X=x)=0P(X=x)=0

The normal density function is:

f(x)=1σ2πexp⁡(−(x−μ)22σ2)f(x)=\frac{1}{\sigma\sqrt{2\pi}} \exp\left(-\frac{(x-\mu)^2}{2\sigma^2}\right)f(x)=σ2π​1​exp(−2σ2(x−μ)2​)

Standardizing with a zzz-score

A normal variable can be converted to the standard normal distribution, which has mean 000 and standard deviation 111. The conversion is:

z=x−μσz=\frac{x-\mu}{\sigma}z=σx−μ​

A zzz-score tells how many standard deviations a value lies above or below the mean. This transformation changes the scale and origin but preserves the probability areas. Once a value has been converted to a zzz-score, standard normal probabilities can be found from a table or a statistical tool.


Normal-distribution calculations

Consider package weights that follow a normal distribution with mean 0.2950.2950.295 kg and standard deviation 0.0250.0250.025 kg:

X∼N(0.295,  0.0252)X\sim N(0.295,\;0.025^2)X∼N(0.295,0.0252)

A useful first step is to sketch the curve and mark the relevant value or interval. This helps determine which area is being requested, particularly for probabilities in the right tail or between two values.

Probability of weighing less than 0.2800.2800.280 kg

Standardizing gives:

z=0.280−0.2950.025=−0.6z=\frac{0.280-0.295}{0.025}=-0.6z=0.0250.280−0.295​=−0.6

The probability is the cumulative area to the left of this value:

P(X<0.280)=P(Z<−0.6)≈0.2743P(X<0.280)=P(Z<-0.6)\approx 0.2743P(X<0.280)=P(Z<−0.6)≈0.2743

About 27.43%27.43\%27.43% of packages are expected to weigh less than 0.2800.2800.280 kg.

Probability of weighing more than 0.3500.3500.350 kg

The standardized value is:

z=0.350−0.2950.025=2.2z=\frac{0.350-0.295}{0.025}=2.2z=0.0250.350−0.295​=2.2

A cumulative normal function gives the area to the left, so the right-tail probability is found by subtracting from 111:

P(X>0.350)=1−P(Z≤2.2)≈0.0139P(X>0.350)=1-P(Z\leq 2.2)\approx 0.0139P(X>0.350)=1−P(Z≤2.2)≈0.0139

About 1.39%1.39\%1.39% of packages are expected to weigh more than 0.3500.3500.350 kg.

Probability of weighing between 0.2600.2600.260 and 0.3400.3400.340 kg

The standardized endpoints are:

z1=0.260−0.2950.025=−1.4,z2=0.340−0.2950.025=1.8z_1=\frac{0.260-0.295}{0.025}=-1.4, \qquad z_2=\frac{0.340-0.295}{0.025}=1.8z1​=0.0250.260−0.295​=−1.4,z2​=0.0250.340−0.295​=1.8

The probability between the endpoints is the difference between the two cumulative areas:

P(0.260<X<0.340)=P(Z<1.8)−P(Z<−1.4)≈0.8833P(0.260<X<0.340) = P(Z<1.8)-P(Z<-1.4) \approx 0.8833P(0.260<X<0.340)=P(Z<1.8)−P(Z<−1.4)≈0.8833

About 88.33%88.33\%88.33% of packages are expected to fall in this interval.

Finding a weight exceeded by 80%80\%80% of packages

If 80%80\%80% of packages exceed a weight xxx, then 20%20\%20% are at or below it:

P(X≤x)=0.20P(X\leq x)=0.20P(X≤x)=0.20

The standard normal value for a cumulative probability of 0.200.200.20 is approximately z=−0.8416z=-0.8416z=−0.8416. Therefore:

x=μ+zσ=0.295+(−0.8416)(0.025)≈0.27396 kgx=\mu+z\sigma =0.295+(-0.8416)(0.025) \approx 0.27396\text{ kg}x=μ+zσ=0.295+(−0.8416)(0.025)≈0.27396 kg

The weight is approximately 0.2740.2740.274 kg, or 274274274 grams. About 80%80\%80% of packages weigh more than this value.

Using software for normal probabilities

A cumulative normal distribution function returns the probability to the left of a specified value.

  • For a left-tail probability, use the cumulative probability directly.

  • For a right-tail probability, calculate 111 minus the cumulative probability.

  • For a probability between two values, subtract the lower cumulative probability from the higher one.

  • An inverse normal function finds the value associated with a specified cumulative probability.

For example, spreadsheet software commonly provides normal-distribution and inverse-normal functions. A cumulative option must be selected when the required result is an area or probability; a density value alone is not a probability.

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent