Topic 4 - Discrete Random Variables Flashcards
What is a random variable?
Given an experiment with sample space S, a random variable is a function from the sample space S to the real numbers R
So a random variable X assigns a numerical value X(s) to each possible outcome s of the experiment
For example the random variable where rolling a dice could be the ‘number of times 4 comes up’
What is the difference between a discrete and continuous random variable?
See notes image
Give 2 examples of a random experiment stating what the X and random variable would/could be
Random Experiment: Roll a dice twice
Let X be the r.v. ‘number of times 4 comes up’
then X can take value 0, 1, or 2
Random Experiment: Toss a coin twice
Sample space of four outcomes {HH, HT, TH, TT}
Let X be the r.v. ‘number of heads’, which can take values 0, 1 and 2.
X(HH)=2; X(HT)=X(TH)=1, X(TT)=0
What is the random variable denoted as?
Uppercase X
What is a probability distribution function (PDF)/probability mass function (PMF)?
A function which describes the probability that random variable X takes specific value x
Written as: P(X = x)
What is a probability distribution function (PDF) also known as?
Probability mass function (PMF)
What is a probability mass function (PMF) also known as?
Probability distribution function (PDF)
What are the properties of probability distribution?
The probabilities can be greater than or equal to 0 but must be less than or equal to 1
The individual probabilities must sum to 1
What is the difference between the probability mass/distribution function and the cumulative distribution function?
Probability mass/distribution function is the probability that X takes the value of x … P(X = x)
Cumulative distribution function is the probability that X takes a range of x values … P(X<=x0) for example
What is the expected value or mean of a discrete distribution?
Expected value denoted by E(x)
E(x) = the sum of (the variable x multiplied by the probability of that x occurring)
What must you remember about expected value/mean?
E(x) (the sum of the variable x multiplied by the probability of that x occurring) equals 1
How do you calculate the variance of a discrete random variable X?
Variance (sigma^2) = E(X-mu)^2 = sum of (x - mu)^2 * P(x)
… variance (sigma squared) is equal to the sum of all the x values minus the mean squared times by the respective probabilities
… for each x value minus the mean mu squared, you times by the respective probability
How do you calculate the standard deviation of a discrete random variable X?
Standard deviation (sigma) = the root of the variance = the root of E(X-mu)^2 = the root of the sum of (x - mu)^2 * P(x)
… standard deviation (sigma) is equal to the root of the sum of all the x values minus the mean squared times by the respective probabilities
… for each x value minus the mean mu squared, you times by the respective probability
What is the variance if all the values take the form of a constant a and the expected value is also a?
Variance is 0 as all values are equal to constant a
What is the expected value if all the values take the form of a constant a?
E (a) = a