Probability for Data Science
- 88Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
- spaceFlip card
- KI knew it
- DI didn't know it
- ←Previous card
- →Next card
What does probability measure?
Probability is the numerical measure of how likely an event is to occur.
Or swipe the card
88 cards
What does probability measure?
Probability is the numerical measure of how likely an event is to occur.
What is an event in probability?
An event is a specific outcome or a collection of outcomes.
What is a sample space?
The sample space is the set of all possible outcomes.
What is a favorable outcome?
A favorable outcome is an outcome that satisfies the event of interest.
How is the probability of an event calculated when outcomes are equally likely?
For equally likely outcomes, P(A)=number of possible outcomesnumber of favorable outcomes.
What numerical range can a probability take?
Probabilities are conventionally expressed as real numbers from 0 to 1, inclusive.
What do probabilities of 1 and 0 mean?
P(A)=1 means the event is certain; P(A)=0 means it cannot occur.
How do probability values compare the likelihood of events?
A larger probability indicates that an event is more likely.
What is the theoretical probability of getting heads on a fair coin toss?
A coin has two equally likely outcomes, so the probability of heads is 21=0.5.
What is the probability of rolling a 4 on a standard six-sided die?
A six-sided die has one favorable face out of six, so P(4)=61≈0.167.
What is the probability of rolling a number divisible by 3 on a standard six-sided die?
The favorable outcomes are 3 and 6, so the probability is 62=31≈0.33.
How do you find the probability that independent events occur together?
For independent events, the probability that both occur is the product of their individual probabilities.
What is an experiment in probability?
An experiment is a process that consists of one or more trials and produces recorded outcomes.
What is a trial?
A trial is one performance of an experiment with its outcome recorded.
In a coin-toss experiment repeated 20 times, what counts as the experiment and what counts as a trial?
Tossing a coin 20 times and recording all outcomes is one experiment containing 20 trials.
How does experimental probability differ from theoretical probability?
An experimental probability is estimated from observed trial results; a theoretical probability is derived from the possible outcomes and probability model.
When is it useful to estimate probability experimentally?
Experimental probabilities are useful when true probabilities are unknown or difficult to calculate.
Must an experimental probability equal the theoretical probability?
An experimental probability may differ from the theoretical probability, but it can provide a good approximation.
A customer waits in line on 8 out of 10 visits. What are the experimental probabilities of a queue and no queue?
If a person waits in a queue on 8 of 10 visits, the estimated queue probability is 108=0.8; the no-queue estimate is 0.2.
What formula is used to calculate experimental probability?
Experimental probability=total number of trialsnumber of successful trials.
What does expected value represent?
An expected value describes the outcome or average result anticipated over many repetitions of an experiment.
How do you calculate the expected number of times a categorical event occurs in n trials?
For a categorical event with theoretical probability P(A) across n trials, the expected count is E(A)=P(A)n.
If a card is drawn, replaced, and shuffled 20 times, how many spades are expected?
A spade has probability 41 on each draw, so over 20 draws with replacement the expected count is 41×20=5.
Does an expected count guarantee that the observed count will equal it?
An expected count of 5 does not guarantee exactly 5 occurrences; other counts, including 4, 6, or even 20, are possible.
How is the expected value of a numerical outcome calculated?
For numerical outcomes, multiply each possible value by its probability and add the products: E(X)=∑xxP(X=x).
An archer scores 10, 20, or 100 points with probabilities 0.5, 0.4, and 0.1. What is the expected score?
The expected score is 0.5(10)+0.4(20)+0.1(100)=23 points.
Why can an expected score of 23 be meaningful even though an archer cannot score 23 in one shot?
The value 23 is a weighted average, not a score possible from one shot; a single shot scores only 10, 20, or 100.
How can expected values support predictions, and why might a prediction use an interval?
Expected values help make predictions from past data, but uncertainty often makes a range of outcomes more useful than one exact value.
What is a probability frequency distribution?
A probability frequency distribution lists the probabilities associated with all possible outcomes, often in a table or graph.
How many possible outcomes are there when two standard six-sided dice are rolled?
Rolling two six-sided dice gives 6×6=36 ordered outcomes.
What is the probability that the sum of two standard dice is 7?
Six of the 36 outcomes sum to 7, so P(sum=7)=366=61.
What is the frequency of an outcome, and what is the frequency of a sum of 8 when rolling two dice?
The frequency of an outcome is the number of times it appears in the sample space or recorded data. For two dice, a sum of 8 has frequency 5.
How do you construct a frequency distribution table?
List the distinct outcomes in order and record how often each occurs.
How do you convert a frequency distribution into a probability frequency distribution?
Divide each outcome's frequency by the sample-space size: P(outcome)=sample-space sizefrequency.
How can a probability frequency distribution be represented?
In a graph, the horizontal axis can show outcomes and the vertical axis their probabilities; a table can also display the distribution.
How can a graph of a probability frequency distribution identify the most probable outcome for two dice?
The outcome with the tallest bar has the greatest individual probability. For two dice, the sum 7 is the most probable sum.
Does being the most probable outcome mean an outcome is likely to occur on a particular trial?
A most probable outcome is not necessarily likely enough to justify a bet; for two dice, the probability of a sum of 7 is only 61.
What is the complement of an event?
The complement of an event is everything in the sample space that is not included in that event.
How is the complement of event A denoted?
The complement of A is written A′.
What is the complement of the complement of an event?
Taking the complement twice returns the original event: (A′)′=A.
What is the sum of probabilities when all possible outcomes have been accounted for exactly once?
The probabilities of mutually exclusive outcomes that exhaust the sample space sum to 1.
Why do the probabilities of heads and tails on a coin sum to 1?
A coin must land heads or tails, so P(H)+P(T)=1.
What can a sum of probabilities greater than 1 indicate?
A sum greater than 1 can indicate that outcomes counted as separate may occur simultaneously, causing double-counting.
What can a sum of probabilities less than 1 indicate?
A sum less than 1 indicates that some possible outcomes have not been accounted for.
How do you calculate the probability of an event's complement?
P(A′)=1−P(A).
What is the complement of rolling an even number on a standard die?
On a standard die, the complement of rolling an even number is rolling an odd number.
What is the probability of not rolling a 3 on a standard six-sided die?
Not rolling a 3 includes five faces, so P(3′)=1−61=65.
What does n! mean?
A factorial is the product of the positive integers from 1 to n: n!=1×2×⋯×n.
What is 3!?
3!=1×2×3=6.
What are the factorial conventions for zero and negative numbers?
By definition, 0!=1; negative numbers do not have factorials in this treatment.
How can a factorial be expressed using the factorial of a neighboring integer?
n!=n(n−1)! and (n+1)!=(n+1)n!.
How can (n+k)! be expanded in terms of n!?
(n+k)!=n!(n+1)(n+2)⋯(n+k).
How can (n−k)! be expressed using n!?
(n−k)!=(n−k+1)(n−k+2)⋯nn!.
How can the quotient k!n! be simplified when n>k?
If n>k, then k!n!=(k+1)(k+2)⋯n, because the common factors cancel.
What does a permutation count?
Permutations count the different ways to arrange a set of elements.
When is a permutation appropriate?
The order matters, and every element in the set is arranged.
How many ways can n distinct elements be arranged, and why?
There are n! arrangements of n distinct elements: the positions have n,n−1,…,1 choices.
How many podium arrangements are possible for three distinct drivers?
The three drivers can occupy the podium in 3!=6 different orders.
What do variations count, and how do they differ from permutations?
Variations count ways to select and arrange some elements; order matters, but unlike permutations, not every available element must be used.
What is the formula for variations with repetition?
With repetition, each of the p positions has n choices, so V(n,p)=np.
How many two-letter codes can be made from A, B, and C if repetition is allowed?
There are 32=9 two-letter codes when each position can be any of A, B, or C, including repeated letters.
How many two-letter codes can be made from the 26-letter alphabet if repetition is allowed?
There are 262=676 two-letter codes when both positions can use any of the 26 letters and repetition is allowed.
What is the formula for variations without repetition?
Without repetition, V(n,p)=(n−p)!n!.
How many ordered relay lineups can be formed by choosing four of five runners without repetition?
There are 5×4×3×2=120 ways to select and order four of five relay runners without repeating a runner.
What does a combination count?
Combinations count selections in which order does not matter.
How are combinations and variations related with respect to order?
All orderings of the same selected elements are one combination, although they count as separate variations.
What is the formula for combinations without repetition?
Without repetition, C(n,p)=p!(n−p)!n!.
How many groups of three can be selected from ten people?
There are 3!7!10!=120 ways to choose three people from ten when order does not matter.
How many groups of four can be selected from ten people?
There are 4!6!10!=210 ways to choose four people from ten when order does not matter.
Why is the number of combinations without repetition equal to the number of variations divided by p!?
For selections without repetition, C(n,p)=p!V(n,p), since each selected group has p! possible orderings.
What is the symmetry property of combinations?
Choosing p elements from n is equivalent to choosing the n−p elements left out: C(n,p)=C(n,n−p).
How does combination symmetry explain that choosing four of six fruits gives the same count as choosing two to leave out?
Choosing 4 of 6 fruits is equivalent to choosing the 2 left behind; both counts are (46)=(26)=15.
What is the formula for combinations with repetition?
For selections with repetition where order does not matter, C(n,p)=p!(n−1)!(n+p−1)!.
How do you choose among permutations, variations, and combinations?
Use permutations to arrange all elements, variations to select and arrange some elements, and combinations to select elements when order is irrelevant.
How do you count outcomes formed by choosing one option independently for each of several distinct positions?
If there are independent positions with a1,a2,…,ak choices, the total number of outcomes is a1a2⋯ak.
A lunch has three sandwich choices, two side choices, and two drink choices. How many different menus are possible?
There are 3×2×2=12 menus: choose one of three sandwiches, one of two sides, and one of two drinks.
An ad has three heading choices, five thumbnails, three descriptions, and two buttons. How many versions are possible?
There are 3×5×3×2=90 possible ads.
How do you count ways to choose five distinct lottery numbers from 1 to 69?
The five lottery numbers can be selected in (569)=5!64!69! ways because order does not matter and numbers are not repeated.
What is the probability of selecting the correct Powerball number from 26 possibilities?
One Powerball number is selected from 26 possibilities, so its probability is 261.
Approximately how many outcomes are possible for the described lottery jackpot, and what is the chance of winning with one ticket?
The number of jackpot outcomes is 26(569), approximately 300 million; one ticket therefore has a winning probability of about 300,000,0001.
How does the number of tickets affect the probability of winning a lottery with N equally likely outcomes?
If tickets represent distinct favorable outcomes, buying t tickets gives probability Nt of winning when there are N equally likely outcomes.
If a meal deal offers 26 pizza types and requires two different pizzas, how many pizza pairs are possible when order does not matter?
Treat the two pizzas as an unordered selection without repetition: (226)=325 choices.
How many pairs of drinks can be selected from four types if repetition is allowed and the two positions are distinguished?
With four drink types and two drink positions where the same type can be chosen twice, there are 42=16 possibilities.
How many unordered pairs of desserts can be selected from seven types when the same dessert may be chosen twice?
If two desserts are selected from seven types, repetition is allowed, and order does not matter, there are (27+2−1)=28 choices.
How many Family Deal orders are possible with 325 pizza pairs, 16 drink choices, and 28 dessert pairs?
Multiply the independent choices: 325×16×28=145,600 possible Family Deal orders.
How many ways can two different drinks be assigned to two specified people when there are four drink types?
If two distinct drinks are assigned to two labeled recipients, order matters and repetition is not allowed: V(4,2)=2!4!=12.
How many Double Delight orders are possible with 325 pizza pairs, 12 assigned drink pairs, and 28 dessert pairs?
Multiply the choices for pizzas, assigned drinks, and desserts: 325×12×28=109,200 possible orders.
How many more possible orders does the Family Deal have than the Double Delight, and what counting lesson does this illustrate?
The Family Deal has 145,600−109,200=36,400 more possible orders; small differences in constraints can substantially change the number of outcomes.

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