Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Microeconomics Expert

Assignment

1 Lalonde NSW Data

A. Load the Lalonde experimental dataset with the lalonde data method from the module causalinference.utils. The outcome variable is earnings in 1978, and the co- variates are, in order:

Black       Indicator variable; 1 if Black, 0 otherwise.
Hispanic   Indicator variable; 1 if Hispanic, 0 otherwise.
Age         Age in years.
Married    Marital status; 1 if married, 0 otherwise. Nodegree Indicator variable; 1 if no degree, 0 otherwise. Education Years of education.
E74         Earnings in 1974.
U74         Unemployment status in 1974; 1 if unemployed, 0 otherwise.
E75         Earnings in 1975.
U75         Unemployment status in 1975; 1 if unemployed, 0 otherwise.

Using CausalModel from the module causalinference, provide summary statistics for the outcome variable and the covariates. Which covariate has the largest normalized difference?

B. Estimate the propensity score using the selection algorithm est propensity s. In se- lecting the basic covariates set, specify E74, U74, E75, and U75. What are the additional linear terms and second-order terms that were selected by the algorithm?

C. Trim the sample using trim s to get rid of observations with extreme propensity score values. What is the cut-off that is selected? How many observations are dropped as a result?

D. Stratify the sample using stratify s. How many propensity bins are created? Report the summary statistics for each bin.

E. Estimate the average treatment effect using OLS, blocking, and matching. For matching, set the number of matches to 2 and adjust for bias. How much do the estimates differ?

2 Document Classification

A. From the module sklearn.datasets, load the training data set using the method fetch 20newsgroups. This dataset comprises around 18000 newsgroups posts on 20 topics. Print out a couple sample posts and list out all the topic names.

B. Convert the posts (blobs of texts) into bag-of-word vectors. What is the dimensionality of these vectors? That is, what is the number of words that have appeared in this data set?

C. Use your favorite dimensionality reduction technique to compress these vectors into ones of K = 30 dimensions.

D. Use your favorite supervised learning model to train a model that tries to predict the topic of a post from the vectorized representation of the post you obtained in the previous step.

E. Use the test data to tune your model. Make sure to include K as a hyperparameter as well. Use accuracy score from sklearn.metrics as your evaluation metric. What is the highest accuracy you are able to achieve?

Microeconomics, Economics

  • Category:- Microeconomics
  • Reference No.:- M92798066

Have any Question?


Related Questions in Microeconomics

Question businesses continually pressure the federal

Question: Businesses continually pressure the Federal Reserve to lower nominal interest rates. They argue that this action will lead to beneficial results in the economy. Using the Ep - Y diagram in the Simple Keynesian ...

Question the united states economy is experiencing a

Question: The United States economy is experiencing a moderate economic downturn. The Republican President has addressed the downturn using stereotypical Republican methods. The economy failed to improve significantly, a ...

Question what are the economic differences during the time

Question: What are the economic differences during the time between Bush and Obama? What are the impacts of these differences on the national debt? The response must be typed, single spaced, must be in times new roman fo ...

Question suppose you want to hasten the transition from a

Question: Suppose you want to hasten the transition from a depletable fossil fuel to solar energy. Using graphs in your explanation, compare the effects of a per unit tax on the depletable resource to an equivalent per u ...

Question suppose p 20 - 2q is the market demand function

Question: Suppose P = 20 - 2Q is the market demand function for a local monopoly. The marginal costis 2Q. The local monopoly tries to maximize its profits by equating MC = MR and charging auniform price. What will be the ...

Question if you were a subsidiary manager at a

Question: If you were a subsidiary manager at a multinational, what are the lessons you can draw from "being a subsidiary manager at a multinational" that can help you successfully convince the headquarters that your ide ...

Question - andy lange president of the university of south

Question - Andy Lange, president of the University of South Wisconsin, is concerned with the declining business at the University Book Store. The students tell him that the prices are simply too high. Andy, however, has ...

Question from 1982 through 2000 the sampp 500 stock price

Question: From 1982 through 2000, the S&P 500 stock price index rose an average of 14.7% per year (all figures in this problem are annual averages). Over the same period, the Aaa corporate bond rate fell from 13.8% to 7. ...

Question - jamie corporation had the following information

Question - Jamie Corporation had the following information: $250,000 Cost of goods sold: Direct materials $50,000 Direct labor 37,500 62.500 150.000 Gross profit $100.000 Selling and administrative expenses Operating inc ...

Question what type of economic policy did mexico follow

Question: What type of economic policy did Mexico follow from the end of World War II until the 1980s? Describe the three-stage strategy that supporters of this policy emphasized, was the outcome of these policies for Me ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As