Introduce basic concepts and terminology for random variables. Textbook section 3.4
Introduce basic concepts and terminology for random variables. Textbook section 3.4
In this lecture, we focus on getting an intuitive grasp on the notion of random variable. In our next lecture, we will be more precise in our discussion of the topic.
It's often useful to model a process using what's called a random variable.
Suppose we toss a coin ten times and add up the number of heads that have appeared. Tossing a coin ten times is a random process, the total number of heads after ten tosses is a random variable.
It's often useful to model a process using what's called a random variable.
Suppose we toss a coin ten times and add up the number of heads that have appeared. Tossing a coin ten times is a random process, the total number of heads after ten tosses is a random variable.
In general, a random variable assigns a numerical value to events from a random process.
It's often useful to model a process using what's called a random variable.
Suppose we toss a coin ten times and add up the number of heads that have appeared. Tossing a coin ten times is a random process, the total number of heads after ten tosses is a random variable.
In general, a random variable assigns a numerical value to events from a random process.
We will see later that random variables have distributions associated with them, and we want to be able to describe the distributions of random variables.
It's often useful to model a process using what's called a random variable.
Suppose we toss a coin ten times and add up the number of heads that have appeared. Tossing a coin ten times is a random process, the total number of heads after ten tosses is a random variable.
In general, a random variable assigns a numerical value to events from a random process.
We will see later that random variables have distributions associated with them, and we want to be able to describe the distributions of random variables.
The sample mean is an important example of a random variable and its distribution is an example of a sampling distribution.
We typically denote random variables by capital letters at the end of the alphabet such as X, Y, or Z.
For example, let X be the random variable that is the sum of the number of heads that we obtain after tossing a coin ten times. The possible values that X can take on are X=0, X=1, X=2, …, X=10.
We typically denote random variables by capital letters at the end of the alphabet such as X, Y, or Z.
For example, let X be the random variable that is the sum of the number of heads that we obtain after tossing a coin ten times. The possible values that X can take on are X=0, X=1, X=2, …, X=10.
Typical questions that we ask are ones such as, what is the probability that X=2, or what is the probability that X is less than 5. What do these questions mean in the context of our coin tossing example?
We typically denote random variables by capital letters at the end of the alphabet such as X, Y, or Z.
For example, let X be the random variable that is the sum of the number of heads that we obtain after tossing a coin ten times. The possible values that X can take on are X=0, X=1, X=2, …, X=10.
Typical questions that we ask are ones such as, what is the probability that X=2, or what is the probability that X is less than 5. What do these questions mean in the context of our coin tossing example?
X1 | X2 | X3 | X4 | X5 | X6 | X7 | X8 | X9 | X10 | total_heads | |
---|---|---|---|---|---|---|---|---|---|---|---|
round_1 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 1 | 1 | 1 | 5 |
round_2 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
round_3 | 1 | 0 | 0 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 7 |
round_4 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 4 |
round_5 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 4 |
round_6 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 4 |
X1 | X2 | X3 | X4 | X5 | X6 | X7 | X8 | X9 | X10 | total_heads | |
---|---|---|---|---|---|---|---|---|---|---|---|
round_1 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 1 | 1 | 1 | 5 |
round_2 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
round_3 | 1 | 0 | 0 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 7 |
round_4 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 4 |
round_5 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 4 |
round_6 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 4 |
This plot shows the density instead of count for the previous barplot.
This plot shows the density instead of count for the previous barplot.
We can compute the mean and variance for the number of heads, in which case we get:
## [1] "The mean is 5.035400"
## [1] "The variance is 2.385024"
We can compute the mean and variance for the number of heads, in which case we get:
## [1] "The mean is 5.035400"
## [1] "The variance is 2.385024"
We can compute the mean and variance for the number of heads, in which case we get:
## [1] "The mean is 5.035400"
## [1] "The variance is 2.385024"
This tells us that the "average" number of heads out of ten tosses is about 5. How does this correspond with your real life experience or expectations?
These values provide estimates for the expected value and variance of our random variable. These concepts will be defined and discussed in detail in the next lecture.
In this lecture, we introduced the basic notion of random variable.
Keyboard shortcuts
↑, ←, Pg Up, k | Go to previous slide |
↓, →, Pg Dn, Space, j | Go to next slide |
Home | Go to first slide |
End | Go to last slide |
Number + Return | Go to specific slide |
b / m / f | Toggle blackout / mirrored / fullscreen mode |
c | Clone slideshow |
p | Toggle presenter mode |
t | Restart the presentation timer |
?, h | Toggle this help |
o | Tile View: Overview of Slides |
s | Toggle scribble toolbox |
Esc | Back to slideshow |
Introduce basic concepts and terminology for random variables. Textbook section 3.4
Introduce basic concepts and terminology for random variables. Textbook section 3.4
In this lecture, we focus on getting an intuitive grasp on the notion of random variable. In our next lecture, we will be more precise in our discussion of the topic.
It's often useful to model a process using what's called a random variable.
Suppose we toss a coin ten times and add up the number of heads that have appeared. Tossing a coin ten times is a random process, the total number of heads after ten tosses is a random variable.
It's often useful to model a process using what's called a random variable.
Suppose we toss a coin ten times and add up the number of heads that have appeared. Tossing a coin ten times is a random process, the total number of heads after ten tosses is a random variable.
In general, a random variable assigns a numerical value to events from a random process.
It's often useful to model a process using what's called a random variable.
Suppose we toss a coin ten times and add up the number of heads that have appeared. Tossing a coin ten times is a random process, the total number of heads after ten tosses is a random variable.
In general, a random variable assigns a numerical value to events from a random process.
We will see later that random variables have distributions associated with them, and we want to be able to describe the distributions of random variables.
It's often useful to model a process using what's called a random variable.
Suppose we toss a coin ten times and add up the number of heads that have appeared. Tossing a coin ten times is a random process, the total number of heads after ten tosses is a random variable.
In general, a random variable assigns a numerical value to events from a random process.
We will see later that random variables have distributions associated with them, and we want to be able to describe the distributions of random variables.
The sample mean is an important example of a random variable and its distribution is an example of a sampling distribution.
We typically denote random variables by capital letters at the end of the alphabet such as X, Y, or Z.
For example, let X be the random variable that is the sum of the number of heads that we obtain after tossing a coin ten times. The possible values that X can take on are X=0, X=1, X=2, …, X=10.
We typically denote random variables by capital letters at the end of the alphabet such as X, Y, or Z.
For example, let X be the random variable that is the sum of the number of heads that we obtain after tossing a coin ten times. The possible values that X can take on are X=0, X=1, X=2, …, X=10.
Typical questions that we ask are ones such as, what is the probability that X=2, or what is the probability that X is less than 5. What do these questions mean in the context of our coin tossing example?
We typically denote random variables by capital letters at the end of the alphabet such as X, Y, or Z.
For example, let X be the random variable that is the sum of the number of heads that we obtain after tossing a coin ten times. The possible values that X can take on are X=0, X=1, X=2, …, X=10.
Typical questions that we ask are ones such as, what is the probability that X=2, or what is the probability that X is less than 5. What do these questions mean in the context of our coin tossing example?
X1 | X2 | X3 | X4 | X5 | X6 | X7 | X8 | X9 | X10 | total_heads | |
---|---|---|---|---|---|---|---|---|---|---|---|
round_1 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 1 | 1 | 1 | 5 |
round_2 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
round_3 | 1 | 0 | 0 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 7 |
round_4 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 4 |
round_5 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 4 |
round_6 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 4 |
X1 | X2 | X3 | X4 | X5 | X6 | X7 | X8 | X9 | X10 | total_heads | |
---|---|---|---|---|---|---|---|---|---|---|---|
round_1 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 1 | 1 | 1 | 5 |
round_2 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
round_3 | 1 | 0 | 0 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 7 |
round_4 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 4 |
round_5 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 4 |
round_6 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 4 |
This plot shows the density instead of count for the previous barplot.
This plot shows the density instead of count for the previous barplot.
We can compute the mean and variance for the number of heads, in which case we get:
## [1] "The mean is 5.035400"
## [1] "The variance is 2.385024"
We can compute the mean and variance for the number of heads, in which case we get:
## [1] "The mean is 5.035400"
## [1] "The variance is 2.385024"
We can compute the mean and variance for the number of heads, in which case we get:
## [1] "The mean is 5.035400"
## [1] "The variance is 2.385024"
This tells us that the "average" number of heads out of ten tosses is about 5. How does this correspond with your real life experience or expectations?
These values provide estimates for the expected value and variance of our random variable. These concepts will be defined and discussed in detail in the next lecture.
In this lecture, we introduced the basic notion of random variable.