数理经济学PPT
- 格式:pptx
- 大小:1.50 MB
- 文档页数:42
.Chapter1Basic Probability Theory•A random experiment is a process that generates well-defined outcomes. One and only one of the possible experimental outcomes will occur,but there is uncertainty associated with which one will occur.•Fundamental axioms of modern econometrics:–An economic system can be viewed as a random experiment governed by some probability distribution or probability law.–Any economic phenomena(often in form of data)can be viewed as an outcome of this random experiment.•Two essential elements of a random experiment:–The set of all possible outcomes—sample space.–The likelihood with which each outcome will occur—probability func-tion.•Definition:Sample Space.The possible outcomes of the random experiment are called basic outcomes,and the set of all basic outcomes is called the sample space,denoted by S.When an experiment is performed, the realization of the experiment is one outcome in the sample space.•Examples:Finite Sample Space.Experiment Sample SpaceToss a coin{Head,Tail}Roll a die{1,2,3,4,5,6}Play a football game{Win,Lose,Tie}•Example:Infinite Discrete Sample Space.Consider the number of accidents that occur at a given intersection within a month.The sample space is the set of all nonnegative integers{0,1,2,···}.•Example:Continuous Sample Space.When recording the lifetime of a light bulb,the outcome is the time until the bulb burns out.Therefore the sample space is the set of all nonnegative real number{t:t∈R,t≥0}.•Definition:Event.An event A is a subset of basic outcomes from the sample space S.The event A is said to occur if the random experiment gives rise to one of the constituent basic outcomes in A.That is,an event occurs if any of its basic outcomes has occurred.•Example:A die is rolled.Event A is defined as“number resulting is even”. Event B is”number resulting is4”.Then A={2,4,6}and B={4}.•Remarks:–The words”set”and”event”are interchangeable.–Basic outcome∈sample space,event⊂sample space.•Definition:Containment.The event A is contained in the event B, or B contains A,if every sample point of A is also a sample point of B. Whenever this is true,we will write A⊂B,or equivalently,B⊃A.•Definition:Equality.Two events A and B are said to be equal,A=B, if A⊂B and B⊂A.•Definition:Empty Set.The set containing no elements is called the empty set and is denoted by∅.The event corresponding to∅is called a null(impossible)event.•Definition:Complement.The complement of A,denoted by A c,is the set of basic outcomes of a random experiment belonging to S but not to A.•Definition:Union.The union of A and B,A∪B,is the set of all basic outcomes in S that belong to either A or B.The union of A and B occurs if and only if either A or B(or both)occurs.•Definition:Intersection.The intersection of A and B,denoted by A∩B or AB,is the set of basic outcomes in S that belong to both A and B.The intersection occurs if and only if both events A and B occur.Venn Diagram:Use circles(or other shapes)to denote sets(events).The inte-rior of the circle represents the elements of the set,while the exterior represents elements which are not in the set.Figure1:Venn Diagrams:(a)Complement,(b)Union,and(c)Intersection•Definition:Difference.The difference of A and B,denoted by A\B or A−B,is the set of basic outcomes in S that belong to A but not to B, i.e.A\B=A∩B c.The symmetric difference,A÷B,contains basic outcomes that belong to A or to B,but not to both of them.Figure2:Venn Diagrams:Symmetric Difference.1.3Review of Set Theory•Definition:Exclusiveness.If A and B have no common basic out-comes,they are called mutually exclusive(or disjoint).Their intersection is empty set,i.e.,A∩B=∅.•Definition:Collectively Exhaustive.Suppose A1,A2,···,A n are n events in the sample space S,where n is any positive integer.If∪n i=1A i=S, then these n events are said to be collectively exhaustive.•Definition:Partition.A class of events H={A1,A2,···,A n}formsa partition of the sample space S if these events satisfy(1)A i∩A j=∅for all i=j(mutually exclusive).(2)A1∪A2∪···∪A n=S(collectively exhaustive).Laws of Set Operations•Complementation(A c)c=A,∅C=S •CommutativityA∪B=B∪A,A∩B=B∩A.•AssociativityA∪(B∪C)=(A∪B)∪C,A∩(B∩C)=(A∩B)∩C.•Distributivity:A∩(B∪C)=(A∩B)∪(A∩C),A∪(B∩C)=(A∪B)∩(A∪C). More Generally,for n≥1,B∩(∪n i=1A i)=∪n i=1(B∩A i),B∪(∩n i=1A i)=∩n i=1(B∪A i).•De Morgan’s Laws:(A∪B)c=A c∩B c,(A∩B)c=A c∪B c. More Generally,for n≥1,(∪n i=1A i)c=∩n i=1(A c i),(∩n i=1A i)c=∪n i=1(A c i).Use Venn diagrams to check De Morgan’s Laws for the case of two events(A∪B)c=A c∩B c.Figure3:Validation of(A∪B)c=A c∩B c.Left panel:(A∪B)c;right panel:A c∩B c.•How to prove the general case of De Morgan’s Laws(n>2)(∪n i=1A i)c=∩n i=1(A c i).•Proof.x∈(∪n i=1A i)c⇔x/∈A i for any i=1,···,n⇔x∈A c i for all i=1,···,n⇔x∈∩n i=1(A c i).Hence,the equality holds.•Definition:Probability Function.Suppose a random experiment has a sample space S .The probability function P maps an event to a real number between 0and 1.It satisfies the following properties:(1)0≤P (A )≤1for any event A in B .(2)P (S )=1.(3)Countable Additivity :If countable number of events A 1,A 2,···∈B are mutually exclusive (pairwise disjoint),then P (∪∞i =1A i )=∑∞i =1P (A i ).•Definition:Countable Set.A set S is called countable if the set can be put into1-1correspondence with a subset of the natural numbers.•Remarks:–We can use a(finite or infinite)sequence to list all elements in a countable set.–Finite sets are countable.–The set of natural numbers,the set of integers,and the set of rational numbers are countable sets.–The set of all real numbers in interval(a,b),b>a,is uncountable.Properties of Probability Function:•P (Φ)=0.•P (A c )=1−P (A ).•If C 1,C 2,···are mutually exclusive and collectively exhaustive,thenP (A )=∞∑i =1P (A ∩C i ).•If A ⊂B ,P (A )≤P (B ).•Subadditivity :For events A i ,i =1,2,···,P (∪∞i =1A i )=∞∑i =1P (A i \∪i −1j =1A j )≤∞∑i =1P (A i ).•Theorem:For any n events A1,···,A n,P(∪n i=1A i)=∑i P(A i)−∑i1<i2P(A i1A i2)+∑i1<i2<i3P(A i1A i2A i3)+···+(−1)n+1P(A1A2···A n).•Proof by induction.–When n=2,the theorem is true.–Assume for n=k events,the theorem is true.–For n=k+1events,we haveP(∪k+1i=1A i)=P(A k+1)+P(∪k i=1A i)−P(∪k i=1(A i A k+1)).Apply the formula of n=k events to P(∪k i=1A i)and P(∪k i=1(A i A k+1)), we obtain the formula for n=k+1events.1.5Methods of Counting•For the so-called classical or logical interpretation of probability,we will assume that the sample space S contains afinite number N of outcomes and all of these outcomes are equally probable.•For every event A,P(A)=number of outcomes in AN.•How to determine the number of total outcomes in the space S and in various events in S?1.5Methods of Counting•We consider two important counting methods:permutation and combi-nation.•Fundamental Theorem of Counting.If a random experiment con-sists of k separate tasks,the i-th of which can be done in n i ways,i=1,···,k,then the entire job can be done in n1×n2×···×n k ways.•Example:Permutation.Suppose we will choose two letters from fourletters{A,B,C,D}in different orders,with each letter being used at mostonce each time.How many possible orders could we obtain?There are12ways:{AB,BA,AC,CA,AD,DA,BC,CB,BD,DB,CD,DC}.The word“ordered”means that AB and BA are distinct outcomes.Permutations•Problem:Suppose that there are k boxes arranged in row and there are n objects,where k≤n.We are going to choose k from the n objects tofill in the k boxes.How many possible different ordered sequences could you obtain?–First,one object is selected tofill in box1,there are n ways.–A second object is selected from the remaining n−1objects.Therefore, there are n−1ways tofill box2.–..–The last box(box k),there are n−(k−1)ways tofill it.•The total number of different ways tofill box1,2,···,k isn(n−1)···(n−(k−1))=n! (n−k)!.•The experiment is equal to selecting k objects out of the n objectsfirst, then arrange the selected k objects in a sequence.•Each different arrangement of the sequence is called a permutation.•The number of permutations of choosing k out of n,denoted by P k n,isP k n=n! (n−k)!.•Convention:0!=1.•Example:The Birthday Problem.What is the probability that at least two people in a group of k people(2<k≤365)will have the same birthday?–Let S={(x1,x2,···,x k)},x i represents the birthday of person i.How many outcomes in S?365k.–How many ways the k people can have different birthdays?P k365.–The probability that all k people will have different birthday is P k365/365k.–The probability that at least two people will have the same birthday is p=1−P k365/365k.–k=10,p=0.1169482;k=20,p=0.4114384,k=30,p=0.7063162, k=40,p=0.8912318,k=50,p=0.9703736;k=60,p=0.9941227.Combinations•Choosing a subset of k elements from a set of n distinct elements.•The order of the elements is irrelevant.For example,the subsets{a,b}and {b,a}are identical.•Each subset is called a combination.•The number of combinations of choosing k out of n is denoted by C k n.We haveC k n=the number of choosing k out of n with ordering the number of ordering k elements=P k n/k!=n!/k!(n−k)!.•Example:Combination.Suppose we will choose two letters from four letters{A,B,C,D}.Each letter is used at most once in each arrangement but now we are not concerned with their ordering.How many possible pairs could we have?There are six pairs:{A,B},{A,C},{A,D},{B,C},{B,D},{C,D}.•Example:A class contains15boys and30girls,and10students are to be selected at random for a special assignment.What is the probability that exactly3boys will be selected?–The number of combinations of10students out of45students is C1045.–The number of combinations of3boys out of15boys is C315.–The number of combinations of7girls out of30girls is C730.–Thus,p=C315C730/C1045.•C k n is also denoted by (nk).This is also called a binomial coefficientbecause of its appearance in the binomial theorem(x+y)n=n∑k=0(nk)x k y n−k.•Properties of the binomial coefficients–∑nk=0C k n=2n,∑nk=0(−1)k C k n=0.–∑ik=0C k n C i−kn=C i2n.–C k n+C k−1n=C k n+1.•Example:The Matching Problem.A person types n letters,types the corresponding addresses on n envelopes,and then places the n letters in the n envelopes in a random manner.What is the probability p n that at least one letter will be placed in the correct envelope?•ANS:–Let A i be the event that letter i,i=1,···,n,is placed in the correct envelope.We need to determine the value of P(∪n i=1A i).–Use formulaP(∪n i=1A i)=∑i P(A i)−∑i1<i2P(A i1A i2)+∑i1<i2<i3P(A i1A i2A i3)+···+(−1)n+1P(A1A2···A n).–∑i1<···<i kP(A i1···A ik)=C k n×(n−k)!/n!=1/k!.–P(∪n i=1A i)=1−12!+13!−···+(−1)n+11n!=n∑i=1(−1)i+11i!=−[n∑i=0(−1)i1i!−1]≈1−e−1≈0.632.1.6Conditional Probability•Different economic events are generally related to each other.Because of the connection,the occurrence of event B may affect or contain the information about the probability that event A will occur.•Example:Financial Contagion.A large drop of the price in one market can cause a large drop of the price in another market,given the speculations and reactions of market participants.•Definition:Conditional Probability.Let A and B be two events in(S,B,P).Then the conditional probability of event A given event B, denoted as P(A|B),is defined asP(A|B)=P(A∩B) P(B)provide that P(B)>0.•Properties of Conditional Probability:–P(A)=P(A|S).–P(A|B)=1−P(A c|B).–Multiplication RulesP(A∩B)=P(B)P(A|B)=P(A)P(B|A).•Example:Suppose two balls are to be selected,without replacement,from a box containing r red balls and b blue balls.What is the probability that thefirst is red and the second is blue?ANS:Let A={thefirst ball is red},B={the second ball is blue}.ThenP(A∩B)=P(A)P(B|A)=rr+b·br+b−1.•Theorem:Chain Rule.For any events A1,A2,···,A n,we haveP(A1A2···A n)=P(A1)P(A2|A1)P(A3|A1A2)···P(A n|A1···A n−1) provided P(A1···A n−1)>0.•Remark–P(A1···A n−1)>0implies P(A1)>0,P(A1A2)>0,···.•Theorem:Rule of Total Probability.Let{A i,i=1,2,···}be a partition(i.e.,mutually exclusive and collectively exhaustive)of S,P(A i)> 0for i≥1.For any event B in S,P(B)=∞∑i=1P(B|A i)P(A i).•Example:Suppose B1,B2,and B3are mutually exclusive.If P(B i)=1/3 and P(A|B i)=i/6for i=1,2,3.What is P(A)?(Hint:B1,B2,B3are also collectively exhaustive.)•Bayes’Theorem:P(B|A)=P(A|B)P(B)P(A).•Remarks:–We consider P(B)as the prior probability about the event B.–P(B|A)is posterior probability given that A has occurred.•Alternative Statement of Bayes’Theorem:Suppose E1,···,E n are n mutually exclusive and collectively exhaustive events in the sample space S.ThenP(E i|A)=P(A|E i)P(E i)P(A)=P(A|E i)P(E i)∑ni=1P(A|E i)P(E i).•Example:Auto-insurance Suppose an insurance company has three types of customers:high risk,medium risk and low risk.From the com-pany’s consumer database,it is known that25%of its customers are high risk,25%are medium risk,and50%are low risk.Also,the database shows that the probability that a customer has at least one accident in the current year is0.25for high risk,0.16for medium risk,and0.10for low risk.What is the probability that a new customer is high risk,given that he has had one accident during the current year?•ANS:Let H,M,L are the events that the customer is a high risk,medium risk or low risk customer.Let A be the event that the customer has had one accident during the current year.ThenP(H|A)=P(A|H)P(H)P(A|H)P(H)+P(A|M)P(M)+P(A|L)P(L).Given P(H)=0.25,P(M)=0.25,P(L)=0.50,P(A|H)=0.25, P(A|M)=0.16,P(A|L)=0.10,we haveP(H|A)=0.410.•Example:In a certain group of people the ratio of the number of men to the number of women is r.It is known that the incidence of color blindness among men is p,and the incidence of color blindness among women is p2. Suppose that the person that we randomly selected is color blind,what is the probability that the person is a man?•ANS:Let M and W denote the events“man selected”and“woman se-lected”,and D be the event“the selected person is color blind”.ThenP(M|D)=P(D|M)P(M)P(D|M)P(M)+P(D|W)P(W)=pr1+rpr1+r+p21+r=rr+p.•Example:In a TV game there are three curtains A,B,and C,of which two hide nothing while behind the third there is a Big Prize.The Big Prize is won if it is guessed correctly which curtain hides it.You choose one of the curtains,say A.Before curtain A is pulled to reveal what is behind it,the game host pulls one of the two other curtains,say B, and shows that there is nothing behind it.He then offers you the option to change your decision(from curtain A to curtain C).Should you stick to your original choice or change to C?•ANS:Let A,B,and C be the events“Big Prize is behind curtain A”(respectively,B and C).We can assume P(A)=P(B)=P(C)=1/3. Let B∗be the event“host shows that there is nothing behind curtain B”. ThenP(A|B∗)=P(B∗|A)P(A)P(B∗|A)P(A)+P(B∗|B)P(B)+P(B∗|C)P(C).–If the prize is behind curtain A,the host randomly pulls curtain B or curtain C,so P(B∗|A)=1/2.–If the prize is behind curtain B,P(B∗|B)=0.–If the prize is behind curtain C,P(B∗|C)=1.Therefore,P(A|B∗)=12×1312×13+0×13+1×13=1/3.Similarly,P(C|B∗)=2/3.•If two events A and B are unrelated.Then we expect that the information of B is irrelevant to predicting P(A).In other words,we expect that P(A|B)=P(A).•Definition:Independence.Two events A and B are said to be statis-tically independent if P(A∩B)=P(A)P(B).•Remarks:–By this definition,P(A|B)=P(A∩B)/P(B)=P(A)P(B)/P(B)=P(A).Similarly,we have P(B|A)=P(B).Therefore,the knowledge of B does not help in predicting A.–If P(A)=0,then any event B is independent of A.•Example:Random Walk Hypothesis(Fama1970).If a stock market is fully efficient,then the stock price P t will follow a random walk; that is,P t=P t−1+X t,where the stock price change{X t=P t−P t−1}is independent across different periods.•Example:Geometric Random Walk Hypothesis.The stock price {P t}is called a geometric random walk if X t=ln P t−ln P t−1is independent across different time periods.Note that X t≈P t−P t−1approximates theP t−1relative stock price change.•Example:Suppose two events A and B are mutually exclusive.If P(A)> 0and P(B)>0,can A and B be independent?•ANS:A and B are not independent becauseP(A∩B)=0=P(A)P(B).•Theorem:Let A and B be two independent events.Then(a)A and B c;(b)A c and B;(c)A c and B c are all independent.•Proof.(a)P(AB c)=P(A)−P(AB)=P(A)−P(A)P(B)=P(A)[1−P(B)]=P(A)P(B c),A andB c are independent.•Remark:Intuitively,A and B c should be independent.Because if not, we would be able to predict B c from A,and thus predict B.•Definition:Independence Among Several Events.Events A1,···,A nare(jointly)independent if,for every possible collection of events A i1,···,A iK,where K=2,···,n and i1<i2<···<i K∈{1,2,···,n},P(A i1∩···∩A iK)=P(A i1)···P(A iK).•Remark:We need to verify2n−1−n conditions.For example,three events A,B,and C are independent ifP(A∩B)=P(A)P(B),P(A∩C)=P(A)P(C),P(B∩C)=P(B)P(C),P(A∩B∩C)=P(A)P(B)P(C).•Remark:It is possible tofind that three events are mutually(pairwise) independent but not jointly independent.It is also possible tofind three events A,B,C that satisfy P(A∩B∩C)=P(A)P(B)P(C)but not independent.•Example:SupposeS={a,b,c,d}and each basic outcome is equally likely to occur.Let A1={a,b},A2= {b,c},and A3={a,c}.Then we haveP(A1)=P(A2)=P(A3)=12,P(A1A2)=P(A1A3)=P(A2A3)=14,butP(A1A2A3)=0=1 8 .•Example:Suppose S={a,b,c,d,e,f,g,h}and each basic outcome is equally likely to occur.Let A1={a,b,c,d},A2={a,b,c,d},and A3={a,e,f,g}.ThenP(A1)=P(A2)=P(A3)=1 2 ,P(A1A2A3)=1 8 ,butP(A1A2)=1/2=P(A1)P(A2).•Theorem:If the events A1,A2,···,A n are independent,the same is true for events B1,B2,···,B n,where for each i,the event B i stands for either A i or its complement A c i.•Theorem:If the events A1,A2,···,A n are independent,thenP(A1∪···∪A n)=1−{[1−P(A1)]···[1−P(A n)]}.•Example:Consider experiments1,2,···,n such that in each of them an event D may or not occur.Let P(D)=p for every experiment,and let A k be the event“D occurs at the k-th experiment”.•ANS:A1∪···∪A n is the event“D occurs at least once in the n experi-ments”.ThenP(A1∪···∪A n)=1−{[1−P(A1)]···[1−P(A n)]}=1−(1−p)n.。