{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Economics 400\n",
"## Bayesian Econometrics\n",
"\n",
"This course examines the use of Bayesian estimation methods for a wide variety of settings in applied economics. After a brief primer on Bayesian statistics, we will examine the use of the Metropolis-Hastings algorithm for parameter estimation via Markov Chain Monte Carlo methods. The student will write their own Metropolis-Hastings estimation algorithm for an ordinary least squares model. Building on this foundation, we will explore heirarchical models (such as mixed regression), multivariate probit, and time series models and we will use Markov Chain sampling methods and how they are implemented in Python pymc. \n",
"\n",
"**Prerequisites**: \n",
"ECON 308 (Econometrics) is required for this course. It is also **highly recommended** that you have had ECON 408 (Cross Section) or are willing to learn independently maximum likelihood estimation. It is also advantageous to have some programming skills and a working knowledge of linear algebra. This class is a very serious undertaking and if you aren't willing to go the extra mile and get up to speed, I can promise you it will be a nightmare. \n",
"\n",
"Review Materials:\n",
"1. [Linear Algebra](http://rlhick.people.wm.edu/stories/bayesian_lin_alg.html)\n",
"2. [Maximum Likelihood](http://rlhick.people.wm.edu/econ407/notes/mle.html)\n",
"3. Python Basics [(Pandas)](http://rlhick.people.wm.edu/stories/bayesian_pandas.html), [(some statistical functions)](http://rlhick.people.wm.edu/stories/bayesian_stats.html).\n",
"\n",
"\n",
"Please install Anaconda Python [following these instructions.](\n",
"http://rlhick.people.wm.edu/stories/bayesian_install_python.html)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Logistics\n",
"* **Office Hours** : I am available on Tuesdays from 4-6pm, or by appointment. My office, the experimental economics lab on the third floor, has working space so feel free to work there during my office hours. Because of personal issues this semester, I won't be on campus on Monday and Friday, so please plan ahead accordingly.\n",
">**Important Note: My office has changed to Morton 305.**\n",
"\n",
"* **Email Policy** : I will respond to emails but only if they contain the tag `[BAYESIAN]` in the subject line. If they do not, the google will likely delete your email. Emails must contain concise questions no longer than what would be amenable to respond to email. If you have a coding problem, you must send me *all* code necessary to reproduce your problem.\n",
"* **Grades**: Your grade will be based on 5-10 short (shorter than cross-section problem sets) weekly assignments (50% of course total grade), a take home mid-term (20%), and a final project (30%).\n",
"\t- The **homework assignments** will consist of hands-on problem solving assignments. In each, you will be given a dataset and will need to conduct an econometric analysis thinking critically about which technique to employ as well as key tests that should be run. The write-up **must** use the Jupyter Notebook and you will be emailing me your work. A good problem set will include clear interpretations of your results, tables with clear variable names, and be well-formatted with code, tables, and writeup combined in a convenient (for me) way. You will have at least 1 week to complete the assignment once you receive it from me. If I can't execute (run) the worksheet, the assignment is not completed. The assignments can be worked on in groups of two (although this isn't mandatory). If you choose to work in a group, turn in separate Jupyter notebooks and at the top include your teammates name and the grade you would assign for their contribution to the group work. \n",
"\t- The **mid-term** is scheduled March 3. Unfortunately, I can't reschedule either the mid-term or the final the exam, so if this time doesn't work for you please drop the course. If you you are forced to miss the mid-term for medical reasons, the 20% weight will be proportionally allocated to all other future assignments. Under no circumstances will a make-up mid-term be granted. \n",
" - The **final project** will be your application of a Bayesian Econometric Technique to a problem of your choosing. You should plan on meeting with me **no later than Spring Break** to refine your project idea. \n",
"\n",
"* **Important Dates**\n",
"\n",
"|Date |Item |\n",
"|------|------|\n",
"|Feb 11 | Class Cancelled |\n",
"|March 7 - 15 | Spring Break|\n",
"|March 3 | Mid-Term |\n",
"|May 4 | Final Exam (9am-12pm) |\n",
"\n",
"* **Policy on Late Assignments** : University policy will not allow me to reschedule the due date for the final exam (see the Dean of Students for exceptions). Course assignments must be turned in on time. Late work will be accepted for up to two additional days (with Saturday and Sunday counting as 1 day in total) with a letter grade deduction for each late day. After two days, late assignments will not be accepted. See below for some examples:\n",
"\n",
"|Due Date | Turned in | Your Grade | Your Grade after Penalty |\n",
"|--------|-----------|------------|--------------------------|\n",
"|Tuesday | Thursday | A | C |\n",
"|Thursday | Saturday or Sunday | A | C |\n",
"|Tuesday | Friday | A | F (not accepted)|\n",
"|Thursday | Monday | A | F (not accepted) |\n",
"\n",
"* **Hardcopy Policy** : No hardcopies are accepted under any circumstances.\n",
"* **Grade Discrepancies and Grade Questions** : I am happy to discuss questions you have about your grade on class assignments. Any questions you have regarding a potential grade change on an assignment must be cleared up within 1 week of receiving your work back from me. The only exception to this policy is if I made an arithmetic error or data entry in adding your score up and entering it into blackboard.\n",
"* **Course Materials**\n",
"All course materials are available on my website for this course at the links listed below. I will **only** be using blackboard for posting grades and problem set solutions.\n",
"\n",
"|Item | Link |\n",
"|-----|------|\n",
"|Syllabus|[`http://rlhick.people.wm.edu/stories/syllabus_econ400.html`](./syllabus_econ400.html)|\n",
"|Notes | [`http://rlhick.people.wm.edu/stories/notes_econ400.html`](./notes_econ400.html)\n",
"\n",
"Additionally, I have a [Google Drive Folder for this course](https://drive.google.com/folderview?id=0Bz4jwKiBQ3QWVG93Q1dHVFJpSXM&usp=sharing), where I will be posting the weekly excercises and in-class code.\n",
"\n",
"* **Book** : The highly recommended book for the class is [_Bayesian Data Analysis_, 3rd edition by Gelman et al.](http://www.amazon.com/Bayesian-Analysis-Chapman-Statistical-Science/dp/1439840954/ref=sr_1_1?ie=UTF8&qid=1448383027&sr=8-1&keywords=bayesian+data+analysis)\n",
"\n",
"* **A note on coding** : Many of you don't have alot of coding experience outside of stata. You will find the early parts of this class frustrating as you struggle to translate your logic into workable code. The curious student who is willing to experiment (and creatively search google) will keep frustration levels to a minimum. To help the learning process, you can\n",
" - Work in groups of two for the homework assignments.\n",
" - Ask anyone to help solve specific coding syntax errors.\n",
" - I will host office hours at my office on Tuesday afternoons as described above with a work area.\n",
" - The google is a great resource for syntax problems. In particular, I find stackoverflow.com to have the best python advice anywhere."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Class Schedule\n",
"\n",
"|Topic | Approx. Duration | Summary & Notes | \n",
"|------|------------------|-----------------|\n",
"|Introduction | 3 weeks | Brief Introduction to Python | \n",
"| | | Bayesian Statistics |\n",
"| | | Markov Chains and Sampling Methods |\n",
"| | | Application: OLS |\n",
"|\n",
"|Heterogeneity | 2 weeks | Heirarchical Models |\n",
"| | | Finite Mixture |\n",
"| | | |\n",
"|Error Integration | 1 week | Multinomial Probit |\n",
"| | | |\n",
"| Switching Models | 2 weeks | Endogenous Breakpoints |\n",
"| | | | \n",
"| Time Series Models | As Time Allows | Real Business Cycle Models|"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 2",
"language": "python",
"name": "python2"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 2
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython2",
"version": "2.7.11"
}
},
"nbformat": 4,
"nbformat_minor": 0
}