Due: April 27, 2018
NOTE: For this problem set please make sure to hand in your own individual copy.
1 Lalonde NSW Data
A. Load the Lalonde experimental dataset with the lalonde data method from the mod-
ule 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
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
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 match-
ing, set the number of matches to 2 and adjust for bias. How much do the estimates
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
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
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?
Are you busy and do not have time to handle your assignment? Are you scared that your paper will not make the grade? Do you have responsibilities that may hinder you from turning in your assignment on time? Are you tired and can barely handle your assignment? Are your grades inconsistent?
Whichever your reason may is, it is valid! You can get professional academic help from our service at affordable rates. We have a team of professional academic writers who can handle all your assignments.
Our essay writers are graduates with diplomas, bachelor's, masters, Ph.D., and doctorate degrees in various subjects. The minimum requirement to be an essay writer with our essay writing service is to have a college diploma. When assigning your order, we match the paper subject with the area of specialization of the writer.
- Plagiarism free papers
- Timely delivery
- Any deadline
- Skilled, Experienced Native English Writers
- Subject-relevant academic writer
- Adherence to paper instructions
- Ability to tackle bulk assignments
- Reasonable prices
- 24/7 Customer Support
- Get superb grades consistently
1. Place an order
You fill all the paper instructions in the order form. Make sure you include all the helpful materials so that our academic writers can deliver the perfect paper. It will also help to eliminate unnecessary revisions.
2. Pay for the order
Proceed to pay for the paper so that it can be assigned to one of our expert academic writers. The paper subject is matched with the writer’s area of specialization.
3. Track the progress
You communicate with the writer and know about the progress of the paper. The client can ask the writer for drafts of the paper. The client can upload extra material and include additional instructions from the lecturer. Receive a paper.
4. Download the paper
The paper is sent to your email and uploaded to your personal account. You also get a plagiarism report attached to your paper.
PLACE THIS ORDER OR A SIMILAR ORDER WITH BEST CUSTOM WRITINGS TODAY AND GET AN AMAZING DISCOUNT