Discrete and random variables Flashcards
What is a random variable?
A random variable is a quantity that can take a range of values, which cannot be predicted with certainty but is described probabilistically. e.g. rolling a dice
what is a statistical distribution
A statistical distribution is the arrangement of values of a variable, showing their observed or theoretical frequency of occurrence.
what is a discrete random variable
A discrete random variable can only take a countable number of values. Example: The number of heads in 3 coin tosses.
what is the sample space
The sample space is the set of all possible outcomes of a random experiment. For example, when tossing a coin, the sample space is {Heads, Tails}.
What is an empirical distribution?
An empirical distribution represents the observed frequencies of different outcomes from a sample. Example: The number of recyclable items picked up during a walk.
what is the probability mass function
The PMF of a discrete random variable π gives the probability that π takes a specific value π₯
P(X=x)
What is an important property of the PMF?
The sum of all probabilities in the PMF equals 1:
βP(X=x)=1
what is the cumulative distribution function
The CDF is the probability that π takes a value less than or equal to a given π₯. It is the cumulative sum of the PMF: ππ(πβ€π₯).
What is the complement rule in the context of CDF?
ππ(π>2)=1βππ(πβ€2)
How do you calculate the mean (expected value) of a random variable π?
The mean (or expected value) is the weighted average of all possible values of π, weighted by their probabilities:
E(x) = sum of all xPr(X=x) up to n
what does variance do
quantify the spread, or degree to which values differ from the expected value the variance of X
What is the formula for calculating the variance of a random variable π?
π£ππ(π)=β(π₯βπΈ(π))^2(ππ(π=π₯))
What is the standard deviation of a random variable π?
π π(π)=βπ£ππ(π)
3 theoretical distributions for particular discrete random variables
- Bernoulli distribution
- binomial RV
- poisson
what is bernoulli distribution
A discrete random variable that can only take two possible outcomes: 0 (failure) or 1 (success)
What are the probabilities in a Bernoulli distribution?
1 with probability π
0 with probability π=1βπ
Pr(X=1)=p (success)
Pr(X=0)=1βp (failure)
expected value for Bernoulli distribution
πΈ(π)=π
variance for Bernoulli distribution
πππ(π)=π(1βπ)
what is binomial random variable
A Binomial RV represents the number of successes in π independent Bernoulli trials with the same probability of success, π
how is binomial RV written
Let π be a Binomial RV described by two parameters:
πβΌBinomial(π,π).
where:
number of trials π
probability of success π.
What are the key conditions for a Binomial distribution? (4)
Each trial has only two possible outcomes (success/failure).
There is a fixed number of trials, π
The probability of success,
π, is the same for all trials.
Each trial is independent of the others.
What does the PMF formula represent for binomial distribution?
The probability of getting exactly x successes in π independent trials.
PMF formula for binomial distribution
check book
Consider the probability of success of a trial is 0.1 and there are 10 trials. What is the probability of exactly 2 successes?
0.1937