Regression Analysis Project Guidelines
Regression Analysis Project Guidelines
I'm pleased to share the final project assignments for our Econometrics and Research Methods
course. Each group will work with one of the datasets I've selected, each requiring different data
manipulation techniques and regression approaches.
Group formation
The groups for this project don't have to be the same as for your previous assignment and you’re
free to form new groups. Ideally, groups should consist of 5 students.
Groups larger than 5 students are permitted but will be held to higher standards during grading
to account for the additional resources.
Each group should choose a different dataset. Duplicate selections (where two groups choose
the same dataset) will only be permitted after each of the 5 datasets has been chosen by at least
one group.
Project requirements
Each group is expected to:
Deliverables
This project requires two outputs:
Timeline
Final deadline: Our last class (28.05/29.05, depending on your group)
• You can switch between tools as needed - for example, use R functions to find
the best interaction terms, and then implement them in Gretl.
• For data preparation, any software you are comfortable with is fine (Excel with
VBA; R; Python), just document the process.
2. Special note about Wages dataset (project 5): this dataset is already clean and
analysis, requiring minimal processing. Because of this, it is specifically reserved for
groups with fewer than 5 students. Larger groups should select one of the other
datasets that require more comprehensive data work. The grading structure for this
particular project differs from the standard rubric:
• Model Specification and Estimation: 50 points (increased from the standard 25)
2. Document cleaning steps: Keep track of all data preparation decisions (which
observations were dropped, how missing values were handled, thresholds for
winsorization, variable transformations and why)
4. Compare models: Try different specifications and compare results: a model table is
required
Please let me know the index numbers of your group mates and which dataset you would like to
work with in the comments to this post. I'm available during office hours if you have any
questions about the project requirements. We can schedule appointments outside my office
hours if needed.
The project grading rubric (towards the end of this file) details how you'll be evaluated.
Below you can find table of contents with all available datasets, analyses’ goals, requirements
and “blueprints”.
[Moro et al., 2014] S. Moro, P. Cortez and P. Rita. A Data-Driven Approach to Predict the Success
of Bank Telemarketing. Decision Support Systems, In press,
[Link]
Analysis Goal: Explain what factors make a client more likely to subscribe to a term deposit
(binary outcome) based on demographic and economic factors. Use binary response model
and/or linear probability model.
Attribute information:
For more information, read [Moro et al., 2014].
1 - age (numeric)
4 - education (categorical:
"basic.4y","basic.6y","basic.9y","[Link]","illiterate","[Link]","[Link]","
unknown")
11 - duration: last contact duration, in seconds (numeric). Important note: this attribute highly
affects the output target (e.g., if duration=0 then y="no"). Yet, the duration is not known before a
call is performed. Also, after the end of the call y is obviously known. Thus, this input should only
be included for benchmark purposes and should be discarded if the intention is to have a
realistic model.
# other attributes:
12 - campaign: number of contacts performed during this campaign and for this client
(numeric, includes last contact)
13 - pdays: number of days that passed by after the client was last contacted from a previous
campaign (numeric; 999 means client was not previously contacted)
14 - previous: number of contacts performed before this campaign and for this client (numeric)
3. Impute Missing Values: Substitute missing values in categorical variables with mode.
4. Create Interaction Terms: Run the R function for finding the best interaction term and
include it in the model.
5. Feature Engineering: Create binary flag (dummy) for clients contacted in previous
campaigns
Blueprint:
1. Start with exploratory data analysis: analyze the dataset and make informed choices
about which variables to include in the model. Please remember that
correlations/scatterplots/histograms should be done again after
cleaning/normalizing/imputing missing values/handling outliers.
2. Clean categorical variables; normalize continuous variables; handle missing values and
outliers. Show summary statistics/relevant plots before and after clean up.
5. Test for significance of different variable groups (model including campaign data + bank
client data demographic vs. model including campaign + socioeconomic data)
2. Categorical Creation:
3. Feature Engineering:
4. Regional Analysis:
5. Outlier Detection:
6. Variable Creation:
o Health risk index (combination of risk factors)
o Premium-to-risk ratio
Blueprint:
1. Explore distribution of charges
Property_Area – From what kind of area Applicant comes from, categorical with levels
Rural/Semirural and Urban,
3. Income Transformations:
5. Feature Engineering:
o Create loan term indicators (consider term categories, like short-term, mid-term
and long-term loans or term-to-amount)
Attribute Information:
Please refer to “housing_data_description.txt”
• Deal with categorical variables with many levels (bin together similar categories; create
dummies and use only some of them in the modeling, etc.)
o Use neighborhood medians for structural features (we can assume that houses
built within a particular neighborhood are structurally similar due to being built
around similar time, in a fitting architectural style, etc), i.e. number of bedrooms,
garage size, basement square footage, etc.
2. Variable Transformations:
3. Feature Engineering:
o Calculate house age and remodel age at the time of selling (YrSold – YearBuilt;
YrSold - YearRemodAdd)
5. Interaction Terms:
o Neighborhood × age
7. Multicollinearity Check:
Blueprint:
1. Extensive data cleaning for missing values
Dataset 5: Wages
Source: Greene's Econometric Analysis textbook
Type: Cross-sectional
Size: 4165 observations
Analysis Goal
Estimate a Mincer earnings equation1 to analyze returns to education and experience, while
testing for evidence of wage discrimination.
Attribute Information
EXP =Work experience,
1
model that explains wage income as a function of schooling and experience.
OCC =Occupation, 1 if blue collar,
MS =1 if married,
FEM =1 if female,
ED =Years of education,
LWAGE=Log of wage.
Blueprint
1. Base Specification:
2. Extended Models:
Grading rubric
Total Points: 100
Needs
Satisfactory
Criterion Excellent (5) Good (4) Improvement Poor (1)
(3)
(2)
Comprehensive
strategy with
Basic Minimal
multiple Appropriate
imputation treatment;
Missing Value appropriate methods used No missing
performed; significant
Treatment methods; with basic value treatment
limited missing values
justification for explanation
justification remain
chosen
approach
Thorough
identification
Outliers Basic outlier Limited outlier
with
Outlier identified and detection with detection; No outlier
visualizations;
Handling appropriately simple inappropriate detection
multiple
handled treatment treatment
treatment
methods tested
Creative,
theoretically Few new
Useful new
Feature justified new Basic feature variables with No feature
variables with
Engineering variables with creation unclear engineering
clear purpose
demonstrated purpose
value
Needs
Satisfactory
Criterion Excellent (5) Good (4) Improvement Poor (1)
(3)
(2)
Needs
Satisfactory
Criterion Excellent (5) Good (4) Improvement Poor (1)
(3)
(2)
Multiple
informative Good Basic Limited
Data visualizations with visualizations visualizations visualizations Few or no
Visualization proper formatting with proper covering key with formatting visualizations
and insightful formatting relationships issues
interpretation
Insightful
Recognition of Basic
identification of No discussion
Pattern major patterns identification of Limited pattern
patterns, of data
Identification and obvious recognition
anomalies, and patterns
relationships patterns
relationships
Thorough
Good
correlation
correlation Basic No analysis of
Variable analysis with Limited analysis
analysis with correlation variable
Relationships visualization and of relationships
basic analysis relationships
discussion of
discussion
implications
Multiple competing
models with Appropriate Basic model No justification
Model Inappropriate
theoretical model with with limited for model
Selection model choice
justification; clear justification justification choice
comparison
Appropriate
Appropriate Basic Problematic Inappropriate
Estimation estimation method
estimation estimation estimation estimation
Method with discussion of
method method approach method
alternatives
Comprehensive
Good testing of Basic Limited
Assumption diagnostic tests with No assumption
key assumption assumption
Testing visual and statistical testing
assumptions testing testing
confirmation
Needs
Criterion Excellent (5) Good (4) Satisfactory (3) Improvement Poor (1)
(2)
Precise Correct
interpretation interpretation Some Major
Coefficient Basic correct
with economic with misinterpretation misinterpretation
Interpretation interpretation
significance and consideration of coefficients of results
units of significance
Clear hypothesis
Appropriate Limited No formal
Hypothesis testing with Basic hypothesis
hypothesis hypothesis hypothesis
Testing appropriate testing
testing testing testing
statistical tests
Comprehensive
Good Basic
Model Fit assessment Limited No discussion of
assessment of assessment of
Assessment using multiple assessment of fit model fit
model fit model fit
metrics
Needs
Criterion Excellent (5) Good (4) Satisfactory (3) Improvement Poor (1)
(2)
Thorough
discussion of Good Basic
Limitations Limited mention No discussion of
limitations with discussion of acknowledgment
Discussion of limitations limitations
potential limitations of limitations
improvements
Needs
Criterion Excellent (5) Good (4) Satisfactory (3) Improvement Poor (1)
(2)
Professional Well-presented
Tables presentation with tables and Basic tables and Poor Inadequate
and proper formatting, figures with figures with some presentation of presentation
Figures numbering, and proper formatting issues results of results
informative captions formatting
• Robustness to outliers