The ASTA team
Consider an experiment.
The state space S is the set of all possible outcomes.
Example: We roll a die. The possible outcomes are S={1,2,3,4,5,6}.
Example: We measure wind speed (in m/s). The state space is [0,∞).
An event is a subset A⊆S of the sample space.
Example: Rolling a die and getting an even number is the event A={2,4,6}.
Example: Measuring a wind speed of at least 5m/s is the event [5,∞).
Consider two events A and B.
The union A∪B of is the event that either A or B occurs.
The intersection A∩B of is the event that both A and B occurs.
Example: We roll a die and consider the events A={2,4,6} that we get an even number and B={4,5,6} that we get at least 4. Then
A∪B={2,4,5,6}
A∩B={4,6}
Ac={1,3,5}
The probability of an event is the proportion of times the event A would occur when the experiment is repeated many times.
The probability of the event A is denoted P(A).
Example: We throw a coin and consider the outcome A={Head}. We expect to see the outcome Head half of the time, so P(Head)=12.
Example: We throw a die and consider the outcome A={4}. Then P(4)=16.
Properties:
P(S)=1
P(∅)=0
0≤P(A)≤1 for all events A
Consider two events A and B.
If A and B are mutually exclusive (never occur at the same time, i.e. A∩B=∅), then
P(A∪B)=P(A)+P(B).
P(A∪B)=P(A)+P(B)=16+16=13.
P(A∪B)=P(A)+P(B)−P(A∩B).
P(A∪B)=P(A)+P(B)−P(A∩B)=13+13−16=12.
Consider events A and B.
The conditional probability of A given B is defined by P(A|B)=P(A∩B)P(B) if P(B)>0.
Example: We toss a coin two times. The possible outcomes are S={HH,HT,TH,TT}. Each outcome has probability 14. What is the probability of at least one head if we know there was at least one tail?
Two events A and B are said to be independent if P(A|B)=P(A).
Example: Consider again a coin tossed two times with possible outcomes HH,HT,TH,TT.
Let A={at least one H} and B={at least one T}.
We found that P(A|B)=23 while P(A)=34, so A and B are not independent.
Two events A and B are said to be independent if and only if P(A∩B)=P(A)P(B).
Proof: A and B are independent if and only if P(A)=P(A|B)=P(A∩B)P(B). Multiplying by P(B) we get P(A)P(B)=P(A∩B).
Example: Roll a die and let A={2,4,6} be the event that we get an even number and B={1,2} the event that we get at most 2. Then,
A stochastic variable is a function that assigns a real number to every element of the state space.
Example: Throw a coin three times. The possible outcomes are S={HHH,HHT,HTH,HTT,THH,THT,TTH,TTT}.
Example: Consider the question whether a certain machine is defect. Define
Example: X is the temperature in the lecture room.
A stochastic variable X may be
Discrete: X can take a finite or infinite list of values.
Examples:
Number of heads in 3 coin tosses (can take values 0,1,2,3)
Number of machines that break down over a year (can take values 0,1,2,3,…)
Continuous: X takes values on a continuous scale.
Examples:
Let X be a discrete stochastic variable which can take the values x1,x2,…
The distribution of X is given by the probability function, which is given by f(xi)=P(X=xi),i=1,2,…
Example: We throw a coin three times and let X be the number of heads. The possible outcomes are S={HHH,HHT,HTH,HTT,THH,THT,TTH,TTT}. The probability function is
Let X be a discrete random variable with probability function f. The distribution function of X is given by F(x)=P(X≤x)=∑y≤xf(y),x∈R.
Example: For the three coin tosses, we have
The mean or expected value of a discrete random variable X with values x1,x2,… and probability function f(xi) is μ=E(X)=∑ixiP(X=xi)=∑ixif(xi).
Interpretation: A weighted average of the possible values of X, where each value is weighted by its probability. A sort of “center” value for the distribution.
The variance is the mean squared distance between the values of the variable and the mean value. More precisely, σ2=∑i(xi−μ)2P(X=xi)=∑i(xi−μ)2f(xi).
A high variance indicates that the values of X have a high probability of being far from the mean values.
The standard deviation is the square root of the variance σ=√σ2.
The advantage of the standard deviation over the variance is that it is measured in the same units as X.
Example Let X be the number of heads in 3 coin tosses. What is the variance and standard deviation?
The distribution of a continuous random variable X is given by a probability density function f, which is a function satisfying
f(x) is defined for all x in R,
f(x)≥0 for all x in R,
∫∞−∞f(x)dx=1.
The probability that X lies between the values a and b is given by
P(a<X<b)=∫baf(x)dx.
Notes:
Condition 3. ensures that P(−∞<X<∞)=1.
The probability of X assuming a specific value a is zero, i.e. P(X=a)=0.
The uniform distribution on the interval (A,B) has density f(x)={1B−AA≤x≤B0otherwise
Example: If X has a uniform distribution on (0,1), find P(13<X≤23).
P(13<X≤23)=P(13<X<23)+P(X=23)=∫2/31/3f(x)dx+0=∫2/31/31dx=13.
Let X be a continuous random variable with probability density f. The distribution function of X is given by F(x)=P(X≤x)=∫x−∞f(y)dy,x∈R.
Consider again the uniform distribution on the interval (0,1) with density f(x)={10≤x≤10otherwise Find the mean and variance.
Solution: The mean is μ=E(X)=∫∞−∞xf(x)dx=∫10x⋅1dx=[12x2]10=12, and the variance is computed using the formula σ2=E(X2)−E(X)2=∫∞−∞x2f(x)dx−μ2=∫10x2dx−μ2=[13x3]10−(12)2=13−14=112.
Let X be a random variable and a,b be constants. Then,
Example: If X has mean μ and variance σ2, then
Space, Right Arrow or swipe left to move to next slide, click help below for more details