Consider the market for a homogeneous good say bananas The d

Consider the market for a homogeneous good (say bananas). The demand function is q d (p) = p , where > 0 is a constant, and < 0 stands for the elasticity of demand. The supply function is q s (p) = p , where > 0 stands for the elasticity of supply. Write Python codes to analyze this market in the following cases.

(a) Set = 1 and consider the following values for the elasticities: = 1 and = 2. Plot the two indirect functions (note: the price has to be on the y-axis). Report the equilibrium price and quantity.

(b) Now set = 2 and consider the following values for the elasticities: = {2; 0.5} and = {1; 3}. Write a do-loop where at each iteration the equilibrium price and quantity are computed and displayed (for all four combinations). Report these four set of values in a table and comment.

(c) Now consider a different demand function, namely q d (p) = e p 0.01p. The supply function is q s (p) = p 2 . Adapt the code we discussed in class to find the numerical solution of the market equilibrium (note: the procedure might fail when using a poor initial guess). Report the solution.

In [188]: def g(x): y - np.exp(-x) return y y = np.exp (-X) yprime = dif f ( y , x, 1) f, axarr = pit. subplots ( 2 ) axarr[0].plot(x,g(x), color - \'r axarr[0].set_title( \'Question 1.d\') axarr[1].plot (x, color - \'y\')

Solution

What is \'Price Elasticity Of Demand\'
Price elasticity of demand is a measure of the relationship between a change in the quantity demanded of a particular good and a change in its price. Price elasticity of demand is a term in economics often used when discussing price sensitivity. The formula for calculating price elasticity of demand is:

Price Elasticity of Demand = % Change in Quantity Demanded / % Change in Price

If a small change in price is accompanied by a large change in quantity demanded, the product is said to be elastic (or responsive to price changes). Conversely, a product is inelastic if a large change in price is accompanied by a small amount of change in quantity demanded.

Consider the market for a homogeneous good (say bananas). The demand function is q d (p) = p , where > 0 is a constant, and < 0 stands for the elasticity

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site