Presentation is loading. Please wait.

Presentation is loading. Please wait.

Quantitative Economics

Similar presentations


Presentation on theme: "Quantitative Economics"— Presentation transcript:

1 Quantitative Economics
SAB – 107 M-W: am – pm Fall 2016 Instructor: Sankalp Sharma

2 Who am I?

3 A word on my teaching philosophy

4 About this Class In-class expectation Out-of-class expectation
Homework Grading

5 No cellphones or laptops during the class !!
In-class Expectation Key to learning: interaction Review previous class’ notes before class (same file will be updated) Attend all classes (cannot emphasize enough) Ask questions… But don’t be a troll! No cellphones or laptops during the class !!

6 Out-of-class Expectation
No gains without practice. Reading not enough, you must practice problems. Form groups to practice. Understand concept, memorization won’t help you.

7 Homework Frequently assigned. Usually only one question.
A random student will be asked to solve the HW on the board.

8 Grading Exams will be long and difficult.
Everything taught in class is fair game. But grading will be easy. 40% midterm, 40% final, 20% HW, (bonus: 20% class interaction)

9 Questions?

10 The Road Map Ahead Math Primer Statistics Primer
Demand theory: Mathematical Application Producer theory: Mathematical Application Simple and Multiple Linear Regression

11 Math Primer Calculus training.
Functions (single & multiple variables). Implicit Functions. Maximization of a function of one variable.

12 Statistics Primer Probability theory
Discrete Random Variables & Their Probability Distributions Continuous Random Variables & Their Probability Distributions Hypothesis Testing

13 Demand theory: Mathematical Application
Preferences & Utility Utility Maximization Income & Substitution Effects Demand Relationships Among Goods

14 Producer theory: Mathematical Application
Production Functions Cost Functions Profit Maximization

15 Simple & Multiple Linear Regression
Linear Statistical Models The Method Of Least Squares Properties of the Least Squares Estimator Inferences Concerning the Parameters

16 So let’s begin…

17 Functions Best explained using real life examples.
Consider an industry producing chips: For $2 you can buy a packet, for $4 you can buy 2 packets. How do we show this graphically?

18 A simple graph, explaining a function
y $4 $2 1 2 x

19 Did you all get that?

20 Mathematical form Y = f(x) Here, it is: Y = 2x When x = 0, y = ?
$4 $2 1 2 x

21 Mathematical form Y = f(x) Here, it is: Y = 2x When x = 0, y = 0
$4 $2 1 2 x

22 Quick Mathematical Notation:
x 0 =1 x 1 =x x 2 =x∗x 𝑥 = 𝑥 1 2 = 𝑥 0.5

23 A different example Draw a graph for the following functions: y= x 2 y=2x+2 y= x 2 +4x+4

24 So what did you find?

25 Implicit function - Same idea, just the opposite variable. So if y = f(x), then we need to find the functional form of x = f(y) ..and how do you find that?

26 Implicit Function: Example
Earlier we had: y = 2x, Implicit function: x= y 2

27 Implicit functions: your turn
Find the implicit function, for the previous examples: y= x 2 y=2x+2 y= x 2 +4x+4

28 Is there even a point to all this?
- Once you understand a function… … you have to understand the shape and structure of a function. y slope Key concept  slope of a function $4 $2 1 2 x

29 Slope Figuring out the slope, would allow us to reach the maximum point of a function. The slope of a function differs with a different value for “x”. How do we find a slope of a function such f(x), differential calculus

30 But why are we interested in reaching the maximum point of a function?
- Well because “utility” is typically a function. - Wait what?... - Where did “utility” come from?

31 What is utility?

32  It is a set of preferences.
What is utility?  It is a set of preferences.

33 U(.) What does a typical utility function (U) look like?
Food, wealth, health, etc.

34 U(.) What does “my” utility function look like?
Food, travel, health, swimming, relationship with significant other, Game of Thrones

35 Utility: The higher the better

36 Utility: In-depth In real life difficult to measure someone’s level of utility Think of water (measured in gallons) But how does one measure somebody’s satisfaction level. For eg: you eat two cups of ice-cream, can you tell me how “happy you are” vs. when you have three cups?

37 Utils Is the scale used to measure utility. (For eg: a scale of 1 to 10) It is an arbitrary scale No real-life meaning. Still useful to get a sense of someone’s level of utility.

38 Utils: No real life interpretation without context
- For eg: Let’s say Papa Johns comes up with a new Pizza. Most likely, you will tell your friend how many slices you ate and whether you liked it or not. … and not whether you received 7 utils or 10 utils from it.

39 Utility: Mathematical Representation
Suppose there are two types of pizzas: Papa Johns and Dominoes. Utility value = quantity of papa johns pizzas 2 A different utility value: *Utility value = √(quantity of papa johns pizzas) Utility value = y, quantity of papa johns pizzas = x

40 Introduction to Differentiation
- … And nothing more. Consider the previous function: y=√x Or, y= x 1 2 Rules of differentiation: d dx y = 1 2 × x 1 2 −1

41 Steps involved: - Step 1: Bring the power of x “down” and multiply with x, like this: y= x 1 2 ,  then, differentiation leads to 1 2 × x 1 2 And, step 2: subtract 1 from the exponent/power. So, d dx y = 1 2 × x 1 2 −1 …and viola! You are done.

42 Practice Problems: Let’s return to our previous problems: y= x 2 y=2x+2 y= x 2 +4x+4

43 Homework 1: Functions & Differentiation
Graph the following functions: y = 3x+4 x 2 +7 y = 𝑥 3) Write the implicit function of the above functions: Differentiate the following functions: 𝑦 = 𝑥 4 + 𝑥 3 + 𝑥 2 𝑦 = 𝑥 𝑥

44 Now that we have mastered Differentiation, let’s find the maximum value of a function. ….using differentiation

45 Midterm October 26th 2016: Wednesday

46 Finding the value that maximizes a function
- Intuition: Suppose you are going up a hill. - The slope is …? When you are at the top, the slope is…?

47 Finding the value that maximizes a function
- Intuition: Suppose you are going up a hill. - The slope is …? When you are at the top, the slope is…? The slope is zero.

48 Finding the value that maximizes a function
- Therefore, we equate the differentiated function to zero - And then solve for the variable.

49 Find “x”, which maximizes the following function:
y=4 𝑥 2 −5𝑥+7 𝑦= 1 3 𝑥 3 +2 x 2 +4x 𝑦=2𝑥

50 Is the value really the maximum?
Test whether a function is really the maximum. Take double differential of equation. If optimal function is less than zero, then the value indeed maximizes the function.

51 Example: Checking if indeed maximum
y= 1 3 x 3 −x 𝑑 𝑑𝑦 𝑦 = 𝑥 2 −1=0 𝑥=±1 Take, second differential of we get, 2𝑥 First put x = 1, we get : 2 1 >0 Not a maximum Now put x = -1 2 −1 <0 Conclusion: x=-1 maximum,

52 Visually, you can see… y x

53 - Technically x = -1 is called a “local maximum” However, for our purposes, you don’t have to worry about that.

54 Practice: Check the maximum for the previous problems.
y= 𝑥 2 −2𝑥 2) y = 3x+4 x 2 +7

55 Statistics Primer - Math helps formulate an “idea” into a concrete structure. - Statistics helps test the validity of the “idea” by using empirical methods.

56 Statistics Primer Let’s start with the basics: What is “Mean”?
What is the “Median”? What is “Mode”? What is “variance”? What is “standard deviation”?

57 Mean Simply the average of a set of numbers:
The “mean” of the following group of numbers is: 1,89, 34, 12, 60, 7?

58 Median Is the mid-point of a set of numbers. 5, 20, 1, 99, 7 What is the median when the set is: 20, 1, 99, 7

59 Mode Is defined as the number that occurs the most. What is the mode here? c What is the mode here: 3, 9, 6, 6, 5, 9, 3 1, 2, 3, 4

60 Variance Explains the spread of the data. Formula  𝜎 2 =∑ 𝑥 𝑖 −𝜇 2 /𝑁 Find the variance of the following set of numbers: 6, 3, 9, 6, 6, 5, 9, 3

61 Variance & SD: Steps - Find the “mean” of the set of numbers (𝜇) - Find the total numbers in the set (N) . - Find deviation and square them. - Calculate 𝜎 Take square root to find 𝜎

62 Solution 𝑥 𝑖 Deviation 𝑥 𝑖 – 𝑢 𝑥 𝑖 − 𝑢 2 6 0.125 0.015625 3 -2.875
𝑥 𝑖 − 𝑢 2 6 0.125 3 -2.875 9 3.125 5 -0.875 5.875 36.875 Use formula: Variance (𝜎 2 )= =6.27 SD (𝜎)=

63 Find the variance and sd of the following set of numbers
1) 1,89, 34, 12, 60, 7? 2) 5, 20, 1, 99, 7

64 Solution for 1)

65 Solution for 2)

66 Probability Definition: “The chance of an occurrence of an event”. Example: “What is the probability of raining today?” “What is the probability that you will get an A in this class”?

67 Probability Probability is bounded between 0 and 1.
A probability of 0 means the “event” cannot occur. A probability of 1 means the “event” will occur. All probabilities lie between: 0≤𝑝≤1

68 Probability Example: Suppose there is a bag containing only a partial deck of cards, with only suits of Spades and Clubs. If you were to draw a card, what is the probability that you pick a red card? …and what is the probability that you pick a black card?

69 The Sum of all probabilities must equal 1
Example: Suppose that the probability of a girl being born is 0.5 (or 1 2 ). Then the probability of a boy being born is? How would we write this? 𝑃 𝑔𝑖𝑟𝑙 =0.5 We know that 𝑃 𝑏𝑜𝑦 +𝑃 𝑔𝑖𝑟𝑙 =1 Therefore, 𝑃 𝑏𝑜𝑦 =0.5

70 Probability Specifics:
Experiment: Activity with an observable result. Trials: Simply a repetition this event. Outcomes: Simply the result of each trial. Sample space: The set of outcomes. Sample point: Elements of sample space. Event: Subset of the sample space

71 Example: Suppose Rick Grimes is at a gun range. There is a plastic bottle dangling about 25 meters away from the spot, where you are supposed to start shooting from. Experiment: Rick is going to start shooting, knowing that he could either hit or miss. Trial: Every shot he takes is a trial. Outcome: For every shot, he either hits or misses. Sample Space: The collection of hits and misses.

72 Example: Explained further
- Suppose Rick took 2 shots with his gun? What is the sample space? SS = {HH, HM, MH, MM} *H = Hit, M = Miss Event: That he hits twice? 𝑛 𝐴 =? Number of elements in SS = ?

73 Example: Explained further
- Suppose Rick took 2 shots with his gun? What is the sample space? SS = {HH, HM, MH, MM} *H = Hit, M = Miss Event (A): That he hits twice? 𝑛 𝐴 =1 Number of elements in SS = 4

74 Finding the probability: Main Formula
𝑃 𝐴 = 𝑛 𝐴 𝑛(𝑆) So from the previous slides: The probability that Rick hit the bottle both times is? 𝑃 𝐴 = 𝑛 𝐴 𝑛(𝑆) = 1 4

75 Practice Problems What is the probability that Rick hits exactly once?
What is the probability that Rick misses exactly once? What is the probability that Rick misses both times?

76 Homework 2: - Suppose now Rick takes 3 shots.
Write down his sample space? What is the probability that he hits all three times? What is the probability that he never hits? More challenging one! 4) What is the probability that he hits at least once?

77 Finding all sample points
When Rick shot twice, how did we find all sample points?

78 Finding all sample points
When Rick shot twice, how did we find all sample points? Consider the number of outcomes at each shot: Hit or Miss. Multiply total outcomes with each other.

79 Question: Let’s say Rick now throws a pair of die:
Use the combinatorial theorems to determine the number of sample points in the sample space S. Find the probability that the sum of the numbers appearing on the dice is equal to 7.

80 Solution?

81 More basic practice How many different seven-digit telephone numbers can be formed if the first digit cannot be zero? Q: What is the probability that the 5th and 7th digits both have the number 1.

82 The Combination Formula
𝑛 𝐶 𝑟 = 𝑛! 𝑟! 𝑛−𝑟 ! For example: (10 𝐶 2 )= 10! 2! 10−2 ! = 10×9×8! 2!×8! =45 Useful for finding total sample events in selection problems.

83 Let’s look at More Questions
Q: Consider the problem of selecting two applicants for a job out of a group of five and imagine that the applicants vary in competence, 1 being the best, 2 second best, and so on, for 3, 4, and 5. These ratings are of course unknown to the employer. Find the probability the employer selects the best and one of the two poorest applicants? The employer selects at least one of the two best?

84 Solution? - I would start with writing down all sample points. - Just taught you an easy formula to verify that you are correct.

85 Question: A group of three undergraduate and five graduate students are available to fill certain student government posts. If four students are to be randomly selected from this group, find the probability that exactly two undergraduates will be among the four chosen.

86 Question: More Challenging!
If the first 2 cards are both spades, what is the probability that the next 3 cards are also spades? If the first 3 cards are all spades, what is the probability that the next 2 cards are also spades? If the first 4 cards are all spades, what is the probability that the next card is also a spade?

87 Review of Set Theory Let A and B be two sets: A B

88 Set Theory: Important Concepts
Let S be the sample space of which both A and B are part of. 1) 𝐴 ⊂𝐵 : A is a subset of B. (Example?) 2) 𝐴∪𝐵 : is the “union” of A and B. (Example?) 3) 𝐴∩𝐵 : is the “intersection” of A and B. (Example?) 4) 𝐴∪ 𝐴 =𝑆: everything not part of A is part of its “complement”.

89 Question:- Find the following relations:
A = {1,2,3,4,5,6}, B={4,5,6,7,8} 1) 𝐴∪𝐵 2) 𝐴∩𝐵 3) 𝐴

90 Set Theory: Distributive Laws
𝐴∩ 𝐵∪𝐶 = 𝐴∩𝐵 ∪ 𝐴∩𝐶 𝐴∪ 𝐵∩𝐶 = 𝐴∪𝐵 ∩ 𝐴∪𝐶 Prove the above laws for the previous examples: A = {1,2,3,4,5,6}, B={4,5,6,7,8}

91 Conditional Probability
The conditional probability of an event A, given that an event B has occurred, is equal to: 𝑃 𝐴 𝐵 = 𝑃 𝐴∩𝐵 𝑃(𝐵) provided P(B) > 0. The symbol P(A|B) is read “probability of A given B.” Also, 𝑃 𝐵 𝐴 = 𝑃 𝐴∩𝐵 𝑃(𝐴)

92 Example: Q: Suppose that a balanced die is tossed once. Find the probability of a 1, given that an odd number was obtained.

93 Independent Events - Two events are said to be independent, if anyone of the following holds: P(A|B)=P(A) P(B|A)=P(B) P(A∩B)=P(A).P(B)

94 Homework 3 Q: If two events, A and B, are such that P(A) = .5, P(B) = .3, and P(A ∩ B) = .1, find the following: 1) P(A|B) 2) P(B|A) 3) P(A|A ∪ B) 4) P(A|A ∩ B) 5) P(A ∩ B|A ∪ B)

95 Question for Practice Q: Suppose that a balanced die is tossed once. Find the probability of a 1, given that an odd number was obtained. Recall Formula: 𝑃 𝐴|𝐵) = 𝑃 𝐴∩𝐵 𝑃(𝐵)

96 Steps Define A and B correctly. Find 𝑃(𝐴∩𝐵)? Find 𝑃(𝐵)?
Plug in formula to solve.

97 Question: A more challenging one.
Q: A survey of consumers in a particular community showed that 10% were dissatisfied with plumbing jobs done in their homes. Half the complaints dealt with plumber A, who does 40% of the plumbing jobs in the town. Find the probability that a consumer will obtain an unsatisfactory plumbing job, given that the plumber was A. a satisfactory plumbing job, given that the plumber was A.

98 Solution? Steps: Define events A and B Find 𝑃 𝐴∩𝐵 ? Find 𝑃(𝐵)

99 Solution Define: Let’s define P(B): as the probability that “plumber A” was the one who came for the job. Therefore P(B)=?

100 Solution Define: Let’s define P(A): as the probability that “plumber A” was the one who came for the job. Therefore P(A)=40%=0.4 Let’s define P(U) as the probability that an “unsatisfactory job was done”. P(U)=?

101 Solution Define: Let’s define P(A): as the probability that “plumber A” was the one who came for the job. Therefore P(A)=40%=0.4 Let’s define P(U) as the probability that an “unsatisfactory job was done”. P(U)=0.10

102 Solution? P(U|A)= 𝑃 𝑈∩𝐴 𝑃(𝐴) = 𝑃(𝐴|𝑈)×𝑃 𝑈 𝑃(𝐴) Answer?

103 Solution? P(U|A)= 𝑃 𝑈∩𝐴 𝑃(𝐴) = 𝑃(𝐴|𝑈)×𝑃 𝑈 𝑃(𝐴) Answer: 𝑃 𝑈 𝐴 = 0.1× =0.125 Find part 2) of this question?

104 Question: A challenging one again!
Q: Articles coming through an inspection line are visually inspected by two successive inspectors. When a defective article comes through the inspection line, the probability that it gets by the first inspector is .1. The second inspector will “miss” five out of ten of the defective items that get past the first inspector. What is the probability that a defective item gets by both inspectors?

105 Additive Law of Probability
The probability of the union of two events is: 𝑃 𝐴∪𝐵 =𝑃 𝐴 +𝑃 𝐵 −𝑃(𝐴∩𝐵) If A and B are mutually exclusive  𝑃 𝐴∩𝐵 =0, then 𝑃 𝐴∪𝐵 =𝑃 𝐴 +𝑃 𝐵

106 Typically when we talk about:
𝑃 𝐴∪𝐵 −→ we are talking about the probability of A “or” B. And, 𝑃 𝐴∩𝐵 −→we are talking about the probability of A “and” B.

107 Intuition using graphs
You can see that the common area must be subtracted. A B

108 Practice Problems If A and B are independent events with P(A) = .5 and P(B) = .2, find the following: 𝑃 𝐴∪𝐵 𝑃 𝐴 ∩ 𝐵 𝑃 𝐴 ∪ 𝐵

109 Question: Q: Can A an B be mutually exclusive if P(A) = .4 and P(B) = .7? If P(A) = .4 and P(B) = .3? Why?

110 Question: A smoke detector system uses two devices, A and B. If smoke is present, the probability that it will be detected by device A is .95; by device B, .90; and by both devices, .88. If smoke is present, find the probability that the smoke will be detected by either device A or B or both devices. Find the probability that the smoke will be undetected.

111 Practice problems Q: Diseases I and II are prevalent among people in a certain population. It is assumed that 10% of the population will contract disease I sometime during their lifetime, 15% will contract disease II eventually, and 3% will contract both diseases. Find the probability that a randomly chosen person from this population will contract at least one disease. Find the conditional probability that a randomly chosen person from this population will contract both diseases, given that he or she has contracted at least one disease.

112 Question Suppose that there is a 1 in 50 chance of an injury on a single skydiving attempt. 1) If we assume that the outcomes of different jumps are independent, what is the probability that a skydiver is injured if she jumps twice? 2) Your friend Sirius claims if there is a 1 in 50 chance of injury on a single jump then there is a 100% chance of injury if a skydiver jumps 50 times. Is your friend correct? Why?

113 Homework 4: Q: In a game, a participant is given three attempts to hit a ball. On each try, she either scores a hit, H, or a miss, M. The game requires that the player must alternate which hand she uses in successive attempts. That is, if she makes her first attempt with her right hand, she must use her left hand for the second attempt and her right hand for the third. Her chance of scoring a hit with her right hand is .7 and with her left hand is .4. Assume that the results of successive attempts are independent and that she wins the game if she scores at least two hits in a row. If she makes her first attempt with her right hand, what is the probability that she wins the game?

114 Cellphones Not Allowed in the Exam Room
Midterm October 26th (Wednesday), am. Room 204 1 hour 15 mins. Material covered upto today. Revise every single slide of this file (minus the introductory slides). Understanding every concept is key to scoring a high score. Calculators will be required. Cellphones Not Allowed in the Exam Room

115 Midterm If you have any questions, email me at:
Or drop by to ask in-person - Office: 118 As always, if the above two resources fail then, any question you have can always be answered at:

116 Histograms Covered last class.
Make sure you understand the example discussed.

117 Random Variable What is a random variable?

118 Random Variable (RV) What is a random variable?
The answer follows from the name itself: A random variable is a variable, which can take on any value. Two types of random variables: Discrete Continuous

119 Discrete Random Variable
A random variable Y is said to be discrete if it can assume only a finite or countably infinite number of distinct values. Eg: Think of a number of defective TV sets in a shipment of 100. - In general, discrete RV often represent counts associated with real phenomena.

120 Continuous RV RV’s where you can associate an infinite number of values, for any given range. Eg: think of time or distance as an example.

121 Probability Distribution for a Discrete RV
Try and understand the intuition through probability theory. Notation: (Important to know) 𝑌: upper case letter  to denote a RV, 𝑦: lower case letter  to denote a particular value that the RV might assume. Eg: let Y denote any one of the six possible values that could be observed on the upper face when a die is tossed.

122 Probability Distribution of an RV
The expression (Y = y) can be read, the set of all points in S assigned the value y by the random variable Y. Now think terms of probability: The probability that Y takes on the value y, P(Y = y), is defined as the sum of the probabilities of all sample points in S that are assigned the value y. - Sometimes P(Y = y) is denoted by p(y).

123 Probability Distribution of an RV
The probability distribution for a discrete variable Y can be represented by a formula, a table, or a graph that provides 𝒑(𝒚) = 𝑷(𝒀 = 𝒚) for all y. Eg: y P(Y=y) 1/5 1 3/5 2

124 Discrete Probability Distribution: Properties
0≤𝑝 𝑦 ≤1 𝑖=1 𝑛 𝑝 𝑦 =1  summation is over all values of y with non-zero probability. y P(Y=y) 1/5 1 3/5 2 Sum

125 Question: Q: A supervisor in a manufacturing plant has three men and three women working for him. He wants to choose two workers for a special job. Not wishing to show any biases in his selection, he decides to select the two workers at random. Let Y denote the number of women in his selection. Find the probability distribution for Y. Go step by step: Find total sample points. Then try and understand how many values 𝑌 can take (that is y). Find 𝑃(𝑌=𝑦) for each 𝑦, which is the probability distribution

126 More Practice Problems
When the health department tested private wells in a county for two impurities commonly found in drinking water, it found that 20% of the wells had neither impurity, 40% had impurity A, and 50% had impurity B. (Obviously, some had both impurities.) If a well is randomly chosen from those in the county, find the probability distribution for Y , the number of impurities found in the well. Hint: Think in terms of “unions” and “intersections”

127 A Challenging one! You and a friend play a game where you each toss a balanced coin. If the upper faces on the coins are both tails, you win $1; if the faces are both heads, you win $2; if the coins do not match (one shows a head, the other a tail), you lose $1. Give the probability distribution for your winnings, Y , on a single play of this game.

128 The Expected Value of a Random Variable
Probability distribution for a random variable is a theoretical model for the empirical distribution of data associated with a real population. -The Expectation is nothing but the mean of the said RV.

129 Mathematical notation
Let Y be a Discrete RV, then: The “expectation” of Y is: 𝐸 𝑌 = 𝑦 𝑦𝑝(𝑦)

130 Best explained using an example
Find the expectation of the previous 3 examples: 1) 2) 3)

131 Expectations generalized
Some times you would need to find the expectation of a function of a RV. In that case: 𝐸 𝑔 𝑌 = 𝑦 𝑔 𝑦 𝑝(𝑦) Where, 𝑔 𝑌 = 𝑌 2 +𝑌

132 Properties of Expectation:
𝐸 𝑎𝑋 =𝑎𝐸 𝑋  where ‘a’ is some constant. 𝐸 𝑎𝑋+𝑏𝑌 =𝑎𝐸 𝑋 +𝑏𝐸(𝑌)  ‘b’ some constant 𝐸 𝑎 =𝑎

133 Let’s look at some problems.
Let Y be a random variable with p(y) given in the accompanying table. Find E(Y ), E(1/Y ), E( 𝑌 2 − 1) y P(Y=y) 1 0.4 2 0.3 3 0.2 4 0.1 Sum

134 Variance of a RV Formula: 𝑉 𝑌 =𝐸 𝑌−𝐸 𝑌 2 Also written as: 𝑉 𝑌 =𝐸 𝑌 2 − 𝐸 𝑌 2

135 - Find V(Y) in the previous example:

136 Another example The maximum patent life for a new drug is 17 years. Subtracting the length of time required by the FDA for testing and approval of the drug provides the actual patent life for the drug—that is, the length of time that the company has to recover research and development costs and to make a profit. The distribution of the lengths of actual patent lives for new drugs is given below: Find the mean patent life for a new drug. Find the standard deviation of Y = the length of life of a randomly selected new drug. What is the probability that the value of Y falls in the interval μ ± 2𝜎? Years 3 4 5 6 7 8 9 10 11 12 p(y) 0.03 0.05 0.07 0.10 0.14 0.20 0.18 0.12

137 More practice Q: A single fair die is tossed once. Let Y be the number facing up. Find the expected value and variance of Y.

138 Further Practice In a gambling game a person draws a single card from an ordinary 52- card playing deck. A person is paid $15 for drawing a jack or a queen and $5 for drawing a king or an ace. A person who draws any other card pays $4. If a person plays this game, what is the expected gain?

139 Continuous Random Variables
Let Y denote any random variable. The distribution function of Y , denoted by F(y), is such that F(y) = P(Y ≤ y) for −∞ < y < ∞. - The latter term (−∞ < y < ∞) is known as the support of the random variable.

140 Key difference from the Discrete Case
P(Y=y) = 0 The reason being that Y is continuous. Else we would have a discontinuity jump at point y.

141 Continuous RV: Continued
F(y) is known as the distribution function of Y. Refresher, we have already found F(y) for the Discrete case. In the continuous case: 𝐹 𝑦 = ∞ 𝑦 𝑓 𝑦 𝑑𝑦

142 Normal Distribution Life begins and end with this distribution.
By far the most common used distribution. According to the Central Limit Theorem: with a large enough sample size: Any type of data is “Normally” distributed

143 Applied microeconomics
Utility Maximization. Cost minimization. Profit Maximization (perfect competition and monopoly).

144 Utility Maximization Everything that we have learnt so far will be utilized here. Make sure that you understand utility. And differentiation.

145 The Lagrangian Method In mathematical optimization, the method of Lagrange multipliers (named after Joseph Louis Lagrange) is a strategy for finding the local maxima and minima of a function subject to equality constraints. Whole idea in a nutshell: 𝑀𝑎𝑥 𝑥 𝑓(𝑥) Subject to: 𝑔 𝑥 = 𝑔

146 Lagrangian: Set-up 𝐿 𝑥,𝜆 =𝑓 𝑥 −𝜆(𝑔 𝑥 − 𝑔 ) Where 𝜆 is the Lagrange multiplier. It explains the rate of the function 𝑓(𝑥) as the 𝑔 is increased.

147 Let’s dive right into it
Suppose Minerva Mcgonagall wants to maximize her utility subject to her income: (2𝑥+3𝑦=10) 𝑈 𝑥,𝑦 = 𝑥 2 𝑦 2 𝑈 𝑥,𝑦 = 𝑥 2 +𝑥 𝑦 2 𝑈 𝑥,𝑦 = 𝑥 + 𝑦 𝑈 𝑥,𝑦 =𝑥+𝑦

148 Understanding the intuition
Marginal Rate of Substitution equaling the price ratio. Utility functions Leontif. Cobb Douglas.

149 Homework Suppose Albus Dumbledore wants to maximize his utility subject to his income: 𝑥+4𝑦=16 𝑈=𝑥+𝑦 𝑈=min⁡(𝑥,𝑦)

150 Indirect Utility function
Let 𝑈 𝑥 1 , 𝑥 2 ,…, 𝑥 𝑛 be some utility function Then the indirect utility function is given by: V( 𝑝 1 , 𝑝 2 ,…, 𝑝 𝑛 )=𝑈( 𝑥 1 ∗ , 𝑥 2 ∗ ,…, 𝑥 𝑛 ∗ )

151 Practice problems Find the indirect utility functions for the previous problems.

152 Cost-Minimization Here we minimize the consumer’s budget subject to some utility function. Answer remains the same: The Lagrangian is given by: 𝑀𝑖𝑛 𝐿 𝑥,𝑦,𝜆 =𝑔 𝑥 −𝜆(𝑈 𝑥,𝑦 − 𝑈 )

153 Linear Regression Consider the following equation: 𝑌=𝑎+𝑏𝑋+𝜖
Interpretation: Increasing ‘X’ by 1, increases Y by amount ‘b’. Assumptions: 𝐸 𝜖 =0, 𝑉𝑎𝑟 𝜖 = 𝜎 2 𝜕𝑌 𝜕𝑋 =𝑏 𝐸 𝑌 =𝑎+𝑏𝑋


Download ppt "Quantitative Economics"

Similar presentations


Ads by Google