Alex John Quijano
09/22/2021
Last session, we discussed about:
The Sample space
Events and independent events
Joint (not disjoint) and Disjoint
Basic probability rules
In this lecture, we will learn about,
Discrete and Continuous Random variables
More on probability functions
A light introduction to the law of large numbers (chapter 13 in your textbook)
A Random Variable (R.V.) is a type of variable where the value is a function that associates a numerical value with a potential outcome.
Random Variables are denoted by upper case letters (\(Y\))
Individual outcomes for R.V. are denoted by lower case letters (\(y\))
Having R.V.s in mathematical notations is helpful for writing complicated probabilities.
Sample space:
\[\Omega = \{H,T\}\]
Let \(Y\) be random variable representing flipping a coin, and \(y\) be the outcome of landing head (\(y=1\)) or tail (\(y=0\));
\(P(Y = 1) = \frac{1}{2} \longrightarrow\) the probability of landing a head
\(P(Y = 0) = \frac{1}{2} \longrightarrow\) the probability of landing a tailSample space: \[\Omega = \{\{H,H,H\},\{H,H,T\},\{H,T,T\},\{T,T,T\}, \\ \{T,T,H\},\{T,H,H\},\{H,T,H\},\{T,H,T\}\}\]
Let the random variable \(X\) to be the number of heads in this experiment, \[X = \{x_1,x_2,x_3\} = {0,1,2,3}\]
Example probabilities:
Here, \(\Omega\) is a discrete sample space and \(X\) is a discrete R.V.
Discrete Random Variable: An R.V. that can take on only a finite or countably infinite set of outcomes. We can say that a discrete R.V. has distinct values that can be counted.
Example: Coin Flips, Dice Rolls, Outcomes of a Test (positive/negative), gender (M/F), etc.
Continuous Random Variable: An R.V. that can take on any value along a continuum (but may be reported “discretely”)
Example: Height (really continuous, but we usually just report to the nearest inch/centimeter), temperatures, etc.
Probability Functions = Probability Distributions Table, Graph, or Formula that describes values a random variable can take on, and its corresponding probability (discrete R.V.) or density (continuous R.V.).
Example:
Example:
dbinom
function to compute the same probability distribution.Using the binomial PMF, we can answer probability questions much more easily.
Using the binomial PMF, we can answer probability questions much more easily.
The probability of observing exacty 7 heads is \[P(X = 7) = 0.074\]
Using the binomial PMF, we can answer probability questions much more easily.
The probability of observing at least 7 heads is \[P(X \ge 7) = \sum_{x=7}^{20} P(X = x) = 0.942\]
Note: We are adding the probabilities because each event is disjoint.
Using the binomial PMF, we can answer probability questions much more easily.
The probability of observing at most 7 heads is \[P(X \le 7) = \sum_{x=0}^{7} P(X = x) = 0.132\]
Note: We are adding the probabilities because each event is disjoint.
We are uncertain on predicting the outcome of one coin toss but we have an expected value that with - for example - 20 tosses, we will get about 10 heads, which is half of 20.
Suppose that we simulate tossing coins with increasing number of tosses (trials) and record the cumulative number heads.
For smaller number of tosses, we will see a lot of variation but as the number of tosses increases, the proportion of heads gets closer to \(\frac{1}{2}\) or the number of heads gets closer to the expected value.
In this lecture, we talked about the following:
Discrete and continuous random variables
The Bernoulli and the Binomial probability mass functions (pmf)
A light introduction to the law of large numbers
In the next lecture, we will talk about,
More on continuous random variables
Conditional Probabilities
A light introduction to the central limit theorem (chapter 13 in your textbook)
Prelude to hypothesis testing and confidence intervals (chapter 11 and 12 in your textbook)
Work within your groups to discuss the answers of the following problems.
Part A: Consider rolling a six-sided dice two times.
How many possible events are there? Make a table of possible events of rolling a two-sided dice twice and make another table that sums the numbers of each possible event.
What is the probability of rolling a (3,4) pair - in order?
What is the probability of rolling a sum of 8 or a sum of 6?
Part B: Consider binomial experiment where observing a six is a success (not observing a six is a failure). Suppose that the number of rolls is 3.
dbinom
function in R.Part C: The Binomial distribution simulates the number of successes in \(n\) independent trials, each of which is a “success” with probability \(p\) and a “failure” with probability \(1-p\). Discuss real-life applications of the binomial experiment.