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

Probability, Descriptive Statistics, and the Normal Distribution

Data scientists often make decisions before the outcome is known. A business may need to estimate whether sales will rise, a manufacturer may need to assess the chance of defective products, and a health professional may need to interpret a patient’s risk. Descriptive statistics help summarize the data already collected, while probability helps reason about uncertain events and possible future outcomes.

These ideas work together: a statistical summary describes observed data, and probability provides a framework for using data and assumptions to make decisions.

Describing data

Descriptive statistics turn a large set of observations into a smaller collection of useful summaries. A dataset might contain satisfaction scores for several workplace attributes—such as work, pay, and promotion—or performance scores from different types of hospitals. Each summary answers a different question, so no single statistic tells the whole story.

Mean, median, and mode

The mean is the arithmetic average: the sum of the observations divided by the number of observations. It gives a sense of the dataset’s overall level, but unusually high or low observations can pull it away from what is typical.

The median is the middle observation after the data are arranged in order. Half the observations fall at or below it, and half fall at or above it. Because extreme values have relatively little influence on the median, it is often useful for comparing typical performance when the data contain outliers.

The mode is the value that appears most often. A dataset may have one mode, more than one mode, or no clearly repeated mode. For example, if satisfaction scores of 727272 and 848484 occur most frequently, the dataset is bimodal: it has two modes. That can indicate that the observations cluster around two commonly occurring values rather than one.

Standard deviation and coefficient of variation

The standard deviation describes how spread out observations are around their mean. A small standard deviation indicates that observations tend to lie close to the mean; a larger one indicates greater spread.

A standard deviation is measured in the same units as the data, which can make comparisons between datasets difficult when their means or scales differ. The coefficient of variation expresses spread relative to the mean:

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

A lower coefficient of variation indicates less spread relative to the average. This makes it useful for comparing consistency across different attributes or groups, provided that the mean is meaningful and not close to zero.

For example, a satisfaction score with a coefficient of variation of 10.38%10.38\%10.38% is less variable relative to its mean than one with a coefficient of variation of 27.98%27.98\%27.98%. The comparison is about relative variation, not which attribute has the higher average score.

Histograms, box plots, and skew

A histogram groups numerical observations into intervals, or bins. The horizontal axis shows the intervals, and the vertical axis shows how many observations fall in each interval. The bin with the tallest bar has the greatest concentration of observations. If promotion scores cluster most heavily in the intervals from 505050 to 606060 and from 606060 to 707070, those intervals contain the largest concentrations in the histogram.

A box plot provides a compact view of a distribution. It displays the median, the middle portion of the data, and values that lie unusually far from the rest. Comparing several box plots can reveal differences in typical values and spread among groups.

A distribution is left-skewed when its longer tail extends toward lower values; it is right-skewed when the longer tail extends toward higher values. Skew describes the shape of the distribution, not whether its values are good or bad.

An outlier is an observation that lies unusually far from the rest of the data under the method used to construct the box plot. In the example discussed in the source, the promotion box plot has two outliers on the low-value side. When several groups’ box plots are compared in the same space, the outliers across the groups can be counted together.

A comparison of medians also needs a clear interpretation. If the outcome is a performance score where higher scores indicate better performance, the group with the higher median has the stronger typical score. The example identifies veterinary administration as having a median of approximately 828282, with private administration reported as similar; the university group has a lower median. A separate question—such as which group is more consistent—would require comparing spread, not just medians.

A summary statistic answers only the question it measures: the median describes a typical central value, while spread and skew describe different features of the data.

Think About It: If two hospital groups have the same median performance score but one has a much wider box plot, what does the median reveal—and what does it leave out?

Probability as a tool for decisions

Probability is a way to describe uncertainty using numbers. It matters because decisions often have to be made even when the future cannot be known with certainty. A probability can represent how likely an event is, based on equally likely outcomes, observed data, expert judgment, or a combination of information.

Three ways to assign probability

A classical probability is used when the possible outcomes are known and treated as equally likely. For example, if one card is selected at random from a well-shuffled standard deck, each card has the same chance of being selected.

An empirical probability is estimated from observed outcomes or historical records. If a machine breaks down on a certain number of days out of the days it was observed, the observed frequency can be used to estimate the chance of a breakdown on a future day. Such an estimate depends on the data collected and on whether future conditions resemble past ones.

A subjective probability is an informed judgment about how likely something is, often based on expert opinion when relevant data are scarce. Experts can provide a useful starting estimate, but their judgments may be affected by incomplete knowledge, assumptions, or bias. As new data become available, an estimate can be revised.

In Bayesian reasoning, a starting estimate is called a prior probability. New evidence is used to update it into a posterior probability. The updated estimate is not simply a replacement of guesswork with certainty; it is a way to combine an initial estimate with new information.

Events, experiments, and sample spaces

An event is an outcome or collection of outcomes of interest. The process used to observe outcomes is an experiment. The sample space is the set of all possible outcomes of that experiment.

For a single draw from a deck, for instance, the experiment is selecting a card. The sample space consists of all possible cards. An event might be “the selected card is a king.”

For equally likely outcomes, the probability of an event can be found by dividing the number of outcomes favorable to it by the total number of possible outcomes:

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​

A probability is a pure number between 000 and 111, inclusive. A probability of 000 represents an impossible event under the model, and a probability of 111 represents certainty under the model. A probability cannot be negative or greater than 111.

Think About It: What would make a historical frequency a poor estimate of the chance of a future event? One important possibility is that the conditions have changed.

Combining events

Many questions ask about more than one event: whether a card is a king or a queen, whether a product is defective and came from a particular machine, or whether sales rise or interest rates rise. The rules for combining events depend on whether the events overlap and whether they influence each other.

Mutually exclusive events

Two events are mutually exclusive if they cannot occur at the same time in the experiment. In a single card draw, “the card is a king” and “the card is a queen” are mutually exclusive: the one card cannot be both.

The word or in probability usually includes the possibility of both events occurring. For events that can overlap, the general addition rule is:

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. The intersection A∩BA\cap BA∩B is the event that both occur. The intersection is subtracted because adding P(A)P(A)P(A) and P(B)P(B)P(B) counts the overlap twice.

If the events are mutually exclusive, their intersection has probability 000, so the rule simplifies:

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

For a standard deck of 525252 cards, there are 444 kings and 444 queens. Since no card is both, the probability of drawing a king or a queen is:

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

Now consider drawing a king or a diamond. There are 444 kings and 131313 diamonds, but the king of diamonds belongs to both groups. It must be subtracted once:

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

This is the practical meaning of avoiding double counting: every favorable outcome should be counted exactly once.

Independent events and conditional probability

Two events are independent when the occurrence of one does not change the probability of the other. For independent events, the probability that both occur is the product of their individual probabilities:

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

That multiplication rule cannot automatically be used for events that may influence one another.

A conditional probability is the probability of one event given that another event has occurred. The notation P(B∣A)P(B\mid A)P(B∣A) means “the probability of BBB, given AAA.” Its general definition 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)​

The condition narrows the relevant set of outcomes. Instead of considering the whole population, the calculation considers only the cases where AAA has occurred, then asks how often BBB also occurs within that subset. For example, a doctor might ask about the chance of a heart attack among people in a particular age group with a particular health condition. The condition changes which population is being considered.

The conditional multiplication rule follows from the definition:

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

If AAA and BBB are independent, then P(B∣A)=P(B)P(B\mid A)=P(B)P(B∣A)=P(B), giving the independent-events rule. Thus, independence is a special case of conditional probability—not a reason to multiply probabilities without checking the relationship between the events.

Marginal, joint, and conditional probabilities

A marginal probability describes one event without specifying another. A joint probability describes two events occurring together. A conditional probability describes one event within the subset where another event has occurred.

A two-way table can organize these relationships. For example, rows might indicate whether a person drinks alcohol, while columns indicate whether the person smokes. The interior cells show joint counts; row and column totals are marginal counts. Dividing an appropriate count by the relevant total produces a probability.

A table is especially helpful because it makes the denominator visible. A probability based on all people uses the total population; a conditional probability based only on smokers uses the number of smokers.

Using counts to solve a drinking-and-smoking problem

Suppose a group has 707070 people: 373737 men and 333333 women. Of the group, 363636 do not drink, so the number who drink is:

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

The information also says that 131313 men and 777 women drink but do not smoke. Thus, the number who drink but do not smoke is:

13+7=2013+7=2013+7=20

Everyone who drinks either smokes or does not smoke. Therefore, the number who both drink and smoke is:

34−20=1434-20=1434−20=14

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

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

The information about other categories, such as nonsmoking women, may be useful for filling a full table, but it is not needed to answer this particular question. A good solution uses the information that connects directly to the event being counted.

“Or” probabilities from counts

A similar table-based approach works for a question such as “single or has a college degree.” Suppose a population contains 600600600 people, including 100100100 single people and 400400400 degree holders. If 606060 people are both single and degree holders, then the number who are single or have a degree is:

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

The overlap is subtracted because it was included in both counts. The probability is therefore:

440600\frac{440}{600}600440​

This count-based calculation is the same inclusion–exclusion principle used for the card example.

Combining probabilities for sales and interest rates

Suppose the probability that sales rise is 0.250.250.25, the probability that interest rates rise is 0.740.740.74, and the probability that at least one of these events occurs is 0.890.890.89. The addition rule can be rearranged to find the probability that both occur:

P(S∩I)=P(S)+P(I)−P(S∪I)P(S\cap I) = P(S)+P(I)-P(S\cup I)P(S∩I)=P(S)+P(I)−P(S∪I)

Substituting the given values gives:

P(S∩I)=0.25+0.74−0.89=0.10P(S\cap I) = 0.25+0.74-0.89 = 0.10P(S∩I)=0.25+0.74−0.89=0.10

Thus, the probability that both sales and interest rates rise is 0.100.100.10. This calculation does not assume the events are independent; it uses the information about their union.

Think About It: Why would the answer to “sales rise or interest rates rise” be wrong if the cases where both rise were counted twice?

Updating probabilities with new evidence

A particularly important probability question works backward: given evidence, how likely is a possible cause? This is the idea behind Bayes’ theorem. It updates a prior probability using information about how likely the evidence is under different possibilities.

A machine-quality example

Suppose a factory uses two machines. The new machine produces three times as many units as the old one, so the new machine accounts for 75%75\%75% of output and the old machine for 25%25\%25%. The new machine has a defect rate of 8%8\%8%, while the old machine has a defect rate of 23%23\%23%.

The probability that a randomly selected defective product came from the new machine is not simply 75%75\%75% or 8%8\%8%. The calculation must account for both production volume and defect rate:

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

The numerator represents defective products from the new machine. The denominator represents defective products from both machines. Numerically:

P(new∣defective)=0.060.1175≈0.511P(\text{new}\mid \text{defective}) = \frac{0.06}{0.1175} \approx 0.511P(new∣defective)=0.11750.06​≈0.511

So approximately 51.1%51.1\%51.1% of the defective products are expected to come from the new machine, despite its lower defect rate. It produces many more units, which partly offsets its lower rate of defects.

The distinction between P(defective∣new)P(\text{defective}\mid\text{new})P(defective∣new) and P(new∣defective)P(\text{new}\mid\text{defective})P(new∣defective) is essential. The first asks for the defect rate among products from the new machine. The second asks which machine is the source of a defective product. Reversing the condition changes the question and generally changes the answer.

An oil-exploration example

Suppose the prior probability that a new well will find oil is 0.400.400.40. A detailed test is positive for 60%60\%60% of successful wells and for 20%20\%20% of unsuccessful wells. The question is: given a positive detailed test, what is the probability that the well will be successful?

The probability of both success and a positive test is:

P(success and positive)=(0.40)(0.60)=0.24P(\text{success and positive}) = (0.40)(0.60) = 0.24P(success and positive)=(0.40)(0.60)=0.24

The probability of a positive test overall includes positive tests from both successful and unsuccessful wells:

P(positive)=(0.40)(0.60)+(0.60)(0.20)=0.36P(\text{positive}) = (0.40)(0.60)+(0.60)(0.20) = 0.36P(positive)=(0.40)(0.60)+(0.60)(0.20)=0.36

Therefore:

P(success∣positive)=0.240.36=23≈0.667P(\text{success}\mid\text{positive}) = \frac{0.24}{0.36} = \frac{2}{3} \approx 0.667P(success∣positive)=0.360.24​=32​≈0.667

The prior probability was 0.400.400.40; after a positive test, the posterior probability is approximately 0.6670.6670.667. The test improves the estimate because positive results are more common for successful wells than for unsuccessful ones. The test is useful, but it does not guarantee success.

In general, Bayes’ theorem can be written as:

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

The denominator accounts for all the ways the evidence BBB could occur. That is what makes the result a properly updated probability rather than just a measure of how often the evidence appears under one outcome.

Think About It: In the machine example, why does a lower defect rate not automatically mean that most defective products came from the old machine?

The normal distribution

Many continuous measurements—such as weights, lengths, or process measurements—can be modeled with a normal distribution. Its graph is the familiar bell-shaped curve. The normal model is useful because it describes how values cluster around a center while becoming less common farther from that center.

Shape and parameters

A normal distribution is symmetric around its mean, μ\muμ. Its mean, median, and mode are equal:

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

Its spread is described by the standard deviation, σ\sigmaσ. A smaller standard deviation gives a narrower, taller bell; a larger standard deviation gives a wider, flatter bell. The mean and standard deviation together determine the normal distribution’s location and spread.

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

The function’s height at a point is a density, not the probability of getting exactly that value. For a continuous variable, probability is represented by area under the curve. The total area under the curve is 111, and the probability of an interval is the area between its endpoints:

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

The probability of one exact point is 000 in a continuous model; an interval is needed to obtain a positive probability.

The curve’s tails approach the horizontal axis but do not touch it. This is an asymptotic property: extreme values become increasingly unlikely, but the model does not assign an exact finite boundary beyond which values are impossible.

The empirical rule

For a bell-shaped normal distribution, a widely used approximation is the empirical rule:

  • About 68%68\%68% of observations lie within 111 standard deviation of the mean.
  • About 95%95\%95% lie within 222 standard deviations.
  • About 99.7%99.7\%99.7% lie within 333 standard deviations.

These percentages help interpret how far an observation lies from the center. They are approximate and apply to a normal distribution, not automatically to every dataset.

Standardizing with a zzz-score

A measurement may be expressed in kilograms, centimeters, or another unit. To compare values across normal distributions, the value can be converted to a standard score, or zzz-score:

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

The zzz-score tells how many standard deviations an observation lies above or below the mean. A value below the mean has a negative zzz-score; a value above the mean has a positive one.

Standardizing transforms a normal variable with mean μ\muμ and standard deviation σ\sigmaσ into a standard normal variable with mean 000 and standard deviation 111. This lets probability calculations use one common reference distribution instead of requiring a different table for every measurement scale.

A package-weight example

Suppose package weights follow a normal distribution with mean 0.2950.2950.295 kilograms and standard deviation 0.0250.0250.025 kilograms. Let XXX represent a package’s weight.

Probability that a package weighs less than 0.2800.2800.280 kilograms

The standardized value is:

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 sought is the 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 kilograms under this model.

Probability that a package weighs more than 0.3500.3500.350 kilograms

Here 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 normal cumulative probability usually gives the area to the left. The area to the right 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 kilograms.

Probability that a package weighs between 0.2600.2600.260 and 0.3400.3400.340 kilograms

The lower and upper standardized values are:

zlower=0.260−0.2950.025=−1.4z_{\text{lower}} = \frac{0.260-0.295}{0.025} = -1.4zlower​=0.0250.260−0.295​=−1.4 zupper=0.340−0.2950.025=1.8z_{\text{upper}} = \frac{0.340-0.295}{0.025} = 1.8zupper​=0.0250.340−0.295​=1.8

The probability between the limits is the cumulative area at the upper limit minus the cumulative area at the lower limit:

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

Thus, approximately 88.33%88.33\%88.33% of packages are expected to fall in that interval.

Finding a cutoff from a probability

Sometimes the question runs in the opposite direction: instead of finding the probability for a given weight, it asks for the weight associated with a given percentage.

Suppose 80%80\%80% of packages are expected to weigh more than a cutoff. Then 20%20\%20% are expected to weigh less than that cutoff. The relevant percentile is therefore the lower 20%20\%20% point of the distribution. Its standard score is approximately −0.842-0.842−0.842, so the cutoff weight is:

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

The cutoff is approximately 0.2740.2740.274 kilograms, or 274274274 grams. About 80%80\%80% of packages are expected to exceed it.

Using software for normal probabilities

A spreadsheet can calculate normal probabilities without manually consulting a table. A cumulative normal function returns the area to the left of a value. The right-tail probability is found by subtracting that result from 111, and an interval probability is found by subtracting the cumulative probability at the lower endpoint from the cumulative probability at the upper endpoint.

An inverse normal function works in the opposite direction: it takes a cumulative probability, mean, and standard deviation, then returns the corresponding cutoff value. For example, a lower-tail probability of 0.200.200.20 returns the cutoff below which 20%20\%20% of observations are expected to fall.

A sketch remains useful even when software performs the arithmetic. Marking the mean and the requested interval helps distinguish left-tail, right-tail, and between-value questions—and helps catch a calculation that uses the wrong area.

Think About It: If a spreadsheet reports a cumulative probability at a value above the mean, what operation gives the probability of being greater than that value?

Comprehensive review

Descriptive statistics summarize what has been observed. The mean, median, and mode describe different kinds of central value; standard deviation and coefficient of variation describe spread; histograms reveal concentrations across intervals; and box plots help compare medians, dispersion, skew, and outliers.

Probability describes uncertainty. Classical probability uses equally likely outcomes, empirical probability uses observed frequencies, and subjective probability uses informed judgment. Events are organized through a sample space, and probabilities are always between 000 and 111. The addition rule prevents overlap from being counted twice. Conditional probability changes the population under consideration, while independence means that one event does not change the probability of another.

Bayesian reasoning combines prior information with new evidence. It is especially useful when the question asks for the likely cause of evidence, such as which machine produced a defective item or how likely a well is to succeed after a positive test.

Finally, the normal distribution models continuous data with a symmetric bell-shaped curve. Its mean determines its center, its standard deviation determines its spread, and areas under the curve represent probabilities. Standardizing values with a zzz-score makes those areas easier to calculate, while cumulative and inverse-cumulative functions help find probabilities and cutoffs.

Together, these methods provide a practical path from raw observations to informed decisions: summarize the data, state the event of interest clearly, select the appropriate probability relationship, and interpret the result in the context of the decision.

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent