STAT 230 - Introduction to probability | Fall 2020

Week 1

Definitions of probability

Definition - Classical probability:

Definition - Relative frequency definition:

Definition - Subjective probability:

Probability model

  1. a sample space of all possible outcomes is defined
  2. a set of events is defined. An even is a subset of the sample space
  3. a way of assigning probabilites, which are numbers between 0 and 1, to events specified

Definition - Random experiment:

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

Definition - Event: an even AA, 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),⋯P(a_1), P(a_2), \cdots be a set of numbers associated with sample points such that

  1. 0≤P(ai)≤10 \leq P(a_i) \leq 1
  2. Σi=1P(ai)=1\Sigma_{i=1} P(a_i) = 1

Definition - Probability of an event: Let S be a discrete sample space. Let A be an event defined on S.

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: (nk)=n!(n−k)!⋅k!\binom{n}{k} = \frac{n!}{(n-k)! \cdot k!}

Week 2

Sets and probability 1

Definition - Union: (A∪B)(A \cup B) is the set of all points in either A or B

Definition - Intersection: (A∩B)(A \cap B) is the set of all points which are in both A and B

Definition - Complement: The complement of AA written as Aˉ\bar{A} is the set of all points in SS which are not in AA

De Morgan's Laws:

Definition - Mutually Exclusive: Two events are mutually exclusive if A∪B=∅A \cup B = \emptyset

Definition - Probability Set Function: PP associates a real value P(A)P(A) with each even A defined on sample space S

  1. 0≤P(A)0 \leq P(A) for every AA
  2. P(S)=1P(S) = 1
  3. If A1,⋯ ,AnA_1, \cdots, A_n are mutually exclusive then probability of all of them is equal to sum of individual probabilities

Sets and probability 2

Theorem:

Independent events

Definition - n independent events): A1,⋯ ,AnA_1,\cdots, A_n 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)(i_1, \cdots, i_k) of distinc subscripts chosen from (1,⋯ ,n)(1, \cdots, n)

Week 3

Independent Events: examples

Example: Out of 10 keys, 2 keys open a door. 2 Keys are drawn at random.

Problem: If A and B are positive probability events and are independent is it posible they are mutually exclusive?

Conditional Probability

definition - Conditional Probability: The conditional probability of A occuring giving B occurs is defined by P(A∣B)=P(A∩B)P(B)P(A|B) = \frac{P(A \cap B)}{P(B)} provided P(B)≠0P(B) \neq 0

Theorem: A and B are independent if and only if P(A∣B)=P(A)P(A|B) = P(A) and P(B∣A)=P(B)P(B|A) = P(B)

Theorem: (Multiplication rule): For any two events A and B,

  1. P(A∩B)=P(A∣B)P(B)P(A \cap B) = P(A|B)P(B) and
  2. P(A∩B)=P(B∣A)P(A)P(A \cap B) = P(B|A)P(A)

Theorem: (Law of Total Probability): Let the sample space SS, be partitioned into kk mutually exclusive sets B1,⋯ ,BkB_1, \cdots, B_k such that P(Bi)>0P(B_i) > 0 for i=1,⋯ ,ki = 1, \cdots, k and S=B1∪B2∪⋯∪BkS = B_1 \cup B_2 \cup \cdots \cup B_k

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)F(x) = P(X \leq x), for all real xx

  1. $F(x) is non decreasing
  2. 0≤F(x)≤10 \leq F(x) \leq 1 for all xx
  3. limx→−∞F(x)=0lim_{x \rightarrow - \infty} F(x) = 0 and limx→∞F(x)=1lim_{x \rightarrow \infty} F(x) = 1

f(x)=F(x)−F(x−1)f(x) = F(x) - F(x-1)

Discrete uniform and hypergeometric distributions

Theorem: Suppose XX takes values a,a+1,a+2,⋯ ,ba, a+1, a+2, \cdots, b with all values being equally likely. Then XX has a discrete uniform distribution on its domain. The probability function of the discrete uniform is

f(x)=1b−a+1f(x) = \frac{1}{b-a+1}

Theorem: We have a collection of NN obejects which can be classified into two distinct types, rr of type 1, and N−rN-r of type 2.
Pick a sample of n<Nn < N at random without replacement
Let XX be the number of type 1 in the sample.
Then XX has a hypergeometric distributionm with probability function

f(x)=ways−to−choose−x−type−1)⋅(ways−to−choose−n−x−type−2)(ways−to−choose−sample−of−n)f(x) = \frac{ways-to-choose-x-type-1) \cdot (ways-to-choose-n-x-type-2)}{(ways-to-choose-sample-of-n)}

=(rx)l(N−rn−x)(Nn)= \frac{ {r \choose x} l{N-r \choose n-x} }{ {N \choose n} }

Theorem:

Σall−x(ax)(bn−x)=(a+bn)\Sigma_{all-x} {a \choose x} {b \choose n-x} = {a+b \choose n}

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 (SS) and Failure (FF). Suppose that P(S)=pP(S) = p. Repeat the experiment (called a trial). Such a sequence of independent trials are called Bernoulli trials.
Key assumptions:

  1. the probability of success, pp, must be constant over nn trials
  2. the nn trials must be independent

Theorem: the probability function of x for binomial distribution is

f(x)=(nx)px(1−p)n−xf(x) = {n \choose x} p^x(1 - p)^{n-x}

Theorem - (binomial theorem):

Σx=0n(nx)axbn−x=(a+b)n\Sigma_{x = 0}^n {n \choose x} a^xb^{n-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