Consider the demand and supply system
p = ad +bdqd +ud
p = as +bsqs +us
with the equilibrium conditionqd = qs = q. The parametersbd andbs are −2 and 1.5, respectively. Find the parametersad andas are such thatq = 5 andp = 10.
Throughout this question useN = 100, and set the random seed to 14022022. The variableud has a standard deviation of 3. All randomly generated variables have a mean of zero and are normally distributed unless something else is specified. All Monte Carlo studies should be done with 10,000 repetitions.
Part a. Illustrate the supply and demand curves in a graph, together with a sample of simulated price and quantity data. Provide an additional graph where you have included the OLS estimated line of demand equation above. Are your estimates close to the true values ofad andbd ?
Solve the question inPython language on Jupyter notebook.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here