STAT 230 - Introduction to probability | Fall 2020
Week 1
Definitions of probability
Definition - Classical probability:
- (number of ways that an even can occur) / (total number of outcomes in S)
Definition - Relative frequency definition:
- the probability an even in an experiment or the fraction of times that the event occurs in a very long
(theoretically infinite) series
Definition - Subjective probability:
- 'best guess' by person making a statement of the chances
Probability model
- a sample space of all possible outcomes is defined
- a set of events is defined. An even is a subset of the sample space
- a way of assigning probabilites, which are numbers between 0 and 1, to events specified
Definition - Random experiment:
- repetitions of a random experiment are called trials
- experiment must be repeatable
- may obtain different outcomes under controlled conditions
- there are probabilities associated with each outcome
Definition - Discrete sample spaces: A sample space with a finite number of sample points, or countable many many sample points
Definition - countable: A set S is countable if the lements can be put in a 1-1 correspondence with the positive integers
- the set of all integers is a countable set
Definition - Event: an even A, defined on a discrete sample space S, is a subset of S
Definition - Simple event: An event consisting of only one sample point
Definition - Compount event: if an event consists of two or more sample points. A is said to occur on a trial of the experiment if one of the simple events in A occurs.
Definition - Probability Distribution on S): Let S be a discrete sample space.
Let P(a1),P(a2),⋯ be a set of numbers associated with sample points such that
- 0≤P(ai)≤1
- Σi=1P(ai)=1
Definition - Probability of an event: Let S be a discrete sample space. Let A be an event defined on S.
- Then P(A) is the sum of the probabilities of all simple events that are in A
Definition (addition rule): if we can do job1 p ways, or job2 q ways but not both then we can do p+q ways
Definition (multiplication rule: if we can do p ways job1 and q ways job2 then p*q ways total
Definition - n choose k: (kn)=(n−k)!⋅k!n!
Week 2
Sets and probability 1
Definition - Union: (A∪B) is the set of all points in either A or B
Definition - Intersection: (A∩B) is the set of all points which are in both A and B
Definition - Complement: The complement of A written as Aˉ is the set of all points in S which are not in A
De Morgan's Laws:
- A∪Bˉ=Aˉ∩Vˉ
- A∩Bˉ=Aˉ∪Bˉ
Definition - Mutually Exclusive: Two events are mutually exclusive if A∪B=∅
Definition - Probability Set Function: P associates a real value P(A) with each even A defined on sample space S
- 0≤P(A) for every A
- P(S)=1
- If A1,⋯,An are mutually exclusive then probability of all of them is equal to sum of individual probabilities
- these three properties are called the Axioms of probability
Sets and probability 2
Theorem:
- Probability of event A is between 0 and 1 (inclusive)
- Probability of complement of A is 1−P(A)
- If A is a subset of B then P(A)≤P(B)
- If A and B are mutually exclusive then P(A∪B)=P(A)+P(B)
- P(A∪B)=P(A)+P(B)−P(A∩B)
- P(A∪B∪C)=P(A)+P(B)+P(C)−P(A∩B)−P(A∩C)−P(B∩C)+P(A∩B∩C)
Independent events
Definition - n independent events): A1,⋯,An are independent if and only if
P(A_{i_1} \cap A_{i_2} \cap \cdots \cap A_{i_k}) = P(A_{i_1})\cdots P(A_{i_k) for all sets (i1,⋯,ik) of distinc subscripts chosen from (1,⋯,n)
- it is not sufficient to only have pairwise independence
Week 3
Independent Events: examples
Example: Out of 10 keys, 2 keys open a door. 2 Keys are drawn at random.
- probability of first key opens the door a = 2/10
- probability of second key opens the door b = 2/10
- probability of P(A) and P(B) = (2 * 1) / (10 * 9)
- this is not equal to 2/10 * 2/10 so they are independent
Problem: If A and B are positive probability events and are independent is it posible they are mutually exclusive?
- P(A∩B)=P(A)P(B)>0 (since they are independent)
- if they were mutually exclusive then P(A∩B)=0 but from above we know that is not true, so they cannot be mutually exclusive
Conditional Probability
definition - Conditional Probability: The conditional probability of A occuring giving B occurs is defined by P(A∣B)=P(B)P(A∩B) provided P(B)=0
Theorem: A and B are independent if and only if P(A∣B)=P(A) and P(B∣A)=P(B)
- just multiply out denominator of the definition of conditional probability to get definition of independence
Theorem: (Multiplication rule): For any two events A and B,
- P(A∩B)=P(A∣B)P(B) and
- P(A∩B)=P(B∣A)P(A)
Theorem: (Law of Total Probability): Let the sample space S, be partitioned into k mutually exclusive sets B1,⋯,Bk such that P(Bi)>0 for i=1,⋯,k and S=B1∪B2∪⋯∪Bk
- then for any even A, P(A)=Σi=1kP(A∩Bi).
Week 4
Random vairables and distributions 2
**Definition (c.d.f):$$ A cummulative distribution function (c.d.f.) is defined as the funciton F(x)=P(X≤x), for all real x
- $F(x) is non decreasing
- 0≤F(x)≤1 for all x
- limx→−∞F(x)=0 and limx→∞F(x)=1
f(x)=F(x)−F(x−1)
Theorem: Suppose X takes values a,a+1,a+2,⋯,b with all values being equally likely. Then X has a discrete uniform distribution on its domain. The probability function of the discrete uniform is
f(x)=b−a+11
- for x=a,a+1,a+2,⋯,b, and 0 otherwise
Theorem: We have a collection of N obejects which can be classified into two distinct types, r of type 1, and N−r of type 2.
Pick a sample of n<N at random without replacement
Let X be the number of type 1 in the sample.
Then X has a hypergeometric distributionm with probability function
f(x)=(ways−to−choose−sample−of−n)ways−to−choose−x−type−1)⋅(ways−to−choose−n−x−type−2)
=(nN)(xr)l(n−xN−r)
- the range for X is max(0,n−N+r)≤x≤min(r,n)
Theorem:
Σall−x(xa)(n−xb)=(na+b)
Definition - acceptance sampling is a statistical method which is used for deciding whether a batch of items produced by a company is acceptable or not for distribution (sale)
Binomial distribution
Definition Suppose we have an experiment with 2 possible outcomes which, for convenience, we call Success (S) and Failure (F). Suppose that P(S)=p. Repeat the experiment (called a trial). Such a sequence of independent trials are called Bernoulli trials.
Key assumptions:
- the probability of success, p, must be constant over n trials
- the n trials must be independent
Theorem: the probability function of x for binomial distribution is
f(x)=(xn)px(1−p)n−x
- for x=0,1,2,⋯,n
Theorem - (binomial theorem):
Σx=0n(xn)axbn−x=(a+b)n
The main difference between Binomial distribution and Hypergeometric is that binomial requires independent trials and the hypergeometric requires the draws be made from a collection without replacement