Course:FRE521E/Syllabus
| FRE 521E: Economic Analysis Using Machine Learning | |
|---|---|
![]() | |
| FRE 521E | |
| Section: | |
| Instructor: | Kevin Laughren |
| Email: | Via Canvas Inbox |
| Office: | MCML 352 |
| Office Hours: | Thu 12:00 – 2:00 pm |
| Class Schedule: | Term 2, late Feb – early Apr Tue/Thu 10:30 – 11:50 am |
| Classroom: | MCML 154 |
| Important Course Pages | |
| Syllabus | |
| Lecture Notes | |
| Assignments | |
| Course Discussion | |
Land Acknowledgement
UBC's Point Grey Campus is located on the traditional, ancestral, and unceded territory of the xʷməθkʷəy̓əm (Musqueam) people. The land it is situated on has always been a place of learning for the Musqueam people, who for millennia have passed on their culture, history, and traditions from one generation to the next on this site.
Welcome to FRE 521E and Course Description
This course presents modern machine learning approaches in R from an applied economist's perspective. We read research papers that apply machine learning in the fields of agricultural, resource, or environmental economics, and discuss why machine learning can improve on or outperform classic econometrics given the context and goals of the researchers.
In class we learn the coding basics of each machine learning method, then students take home an assignment that involves extending the code and clearly communicating their findings and modelling choices. For a term project, students will choose from a curated list of datasets, build a machine learning model, fine-tune the model parameters, and communicate the modelling and findings in accessible language.
Course Details
| Lectures | Tuesdays and Thursdays, 10:30 – 11:50 am, MCML 154 |
|---|
Lectures will be taught in person because it is the most effective way to clarify questions about the material in real time and troubleshoot applied coding exercises. All lectures will be recorded and the links uploaded to Canvas.
Instructor
| Instructor | Kevin Laughren, UBC Food and Resource Economics |
|---|---|
| Contact | Via Canvas Inbox. I commit to responding to all messages on Monday, Tuesday, and Thursday afternoons. |
| Office Hours | Thursdays, 12:00 – 2:00 pm, MCML 352 I invite you to attend office hours if you want to clarify course content, validate your understanding of the content, seek additional resources, or for any other purpose that can enhance your learning experience during the course. |
Learning Outcomes
By the end of this course, students will be able to:
- Identify when an applied economics problem could benefit from a machine learning approach (e.g., prediction problems, large amounts of unstructured data, modelling high-dimensional relationships without restrictive functional forms).
- Describe the trade-offs associated with machine learning approaches versus classic econometric approaches, and random versus adaptive data collection.
- Apply modern machine learning methods such as random forests, boosted models, and neural networks to generate economic insight.
- Communicate economic insights using the outputs of machine learning models.
- Design and evaluate adaptive data sampling programs.
Real-World Applications in Climate, Food, and Environment
Applied economists are valued by businesses and multidisciplinary research teams for their ability to generate actionable insights from data. Increasingly, we are asked to go beyond our core causal frameworks and apply machine learning on big data to generate economically relevant predictions. By predicting outcomes like wind speeds, crop yields, coral coverage, invasive species, and consumer behaviour, we can improve the efficiency of research, investment, and environmental protection.
- Identifying applied economics problems where prediction is more important than estimation, and unleashing data-driven methods that improve accuracy and efficiency.
- Predicting environmental and agricultural outcomes using high-dimensional data to enable efficient investment and risk mitigation.
- Creating efficient methods of collecting costly data with adaptive sampling (e.g., environmental data collection, invasive species inspections).
Course Resources: Learning Materials and Readings
Learning Materials
- Allaire, J. (2012). RStudio: integrated development environment for R. Boston, MA, 770(394), 165–171. Install the most recent version: posit.co/download/rstudio-desktop
- James, G., Witten, D., Hastie, T., and Tibshirani, R. (2023). An Introduction to Statistical Learning with Applications in R (2nd ed., corrected printing). Springer. statlearning.com
Required Readings (Lecture Material and Assignments)
- Cao, Q., Ewing, B. T., & Thompson, M. A. (2012). Forecasting wind speed with recurrent neural networks. European Journal of Operational Research, 221(1), 148–154. doi:10.1016/j.ejor.2012.02.042
- Chen, J., Katchova, A. L., & Zhou, C. (2021). Agricultural loan delinquency prediction using machine learning methods. International Food and Agribusiness Management Review, 24(5), 797–812. doi:10.22434/IFAMR2020.0019
- Kang, S. Y., McGree, J. M., Drovandi, C. C., Caley, M. J., & Mengersen, K. L. (2016). Bayesian adaptive design: improving the effectiveness of monitoring of the Great Barrier Reef. Ecological Applications, 26(8), 2637–2648. doi:10.1002/eap.1409
- Mullainathan, S., & Spiess, J. (2017). Machine learning: an applied econometric approach. Journal of Economic Perspectives, 31(2), 87–106. doi:10.1257/jep.31.2.87
- Russo, D. J., Van Roy, B., Kazerouni, A., Osband, I., & Wen, Z. (2018). A tutorial on Thompson sampling. Foundations and Trends in Machine Learning, 11(1), 1–96. doi:10.1561/2200000070
- Thakur, J., Hesamzadeh, M. R., Date, P., & Bunn, D. (2023). Pricing and hedging wind power prediction risk with binary option contracts. Energy Economics, 126, 106960. doi:10.1016/j.eneco.2023.106960
Recommended Readings (Surveys of Machine Learning in Ag. and Env. Economics)
- Badruddoza, S., & Amin, M. D. (2025). Machine learning models and their applications in environmental economics. International Review of Environmental and Resource Economics, 19(1), 1–58. doi:10.1561/101.00000173
- Storm, H., Baylis, K., & Heckelei, T. (2020). Machine learning in agricultural and applied economics. European Review of Agricultural Economics, 47(3), 849–892. doi:10.1093/erae/jbz033
Optional Readings (Reference Books and Lecture Examples)
- Athey, S. (2015). Machine learning and causal inference for policy evaluation. In Proceedings of the 21th ACM SIGKDD International Conference on Knowledge Discovery and Data Mining. doi:10.1145/2783258.2785466
- Caria, A. S., Gordon, G., Kasy, M., Quinn, S., Shami, S. O., & Teytelboym, A. (2024). An adaptive targeted field experiment: Job search assistance for refugees in Jordan. Journal of the European Economic Association, 22(2), 781–836. doi:10.1093/jeea/jvad067
- Donaldson, D., & Storeygard, A. (2016). The view from above: Applications of satellite data in economics. Journal of Economic Perspectives, 30(4), 171–198. doi:10.1257/jep.30.4.171
- Efron, B., & Hastie, T. (2021). Computer Age Statistical Inference, Student Edition: Algorithms, Evidence, and Data Science (Vol. 6). Cambridge University Press. hastie.su.domains/CASI
- Gentzkow, M., Kelly, B., & Taddy, M. (2019). Text as data. Journal of Economic Literature, 57(3), 535–574. doi:10.1257/jel.20181020
- Ifft, J., Kuhns, R., & Patrick, K. (2018). Can machine learning improve prediction – an application with farm survey data. International Food and Agribusiness Management Review, 21(8), 1083–1098. doi:10.22434/IFAMR2017.0098
- Sautner, Z., Van Lent, L., Vilkov, G., & Zhang, R. (2023). Firm-level climate change exposure. The Journal of Finance, 78(3), 1449–1498. doi:10.1111/jofi.13219
- Sinclair, S. J., Avirmed, O., White, M. D., Batpurev, K., Griffioen, P. A., Liu, C., ... & Olson, K. A. (2021). Rangeland condition assessment in the Gobi Desert: A quantitative approach that places stakeholder evaluations front and centre. Ecological Economics, 181, 106891. doi:10.1016/j.ecolecon.2020.106891
- Varian, H. R. (2014). Big data: New tricks for econometrics. Journal of Economic Perspectives, 28(2), 3–28. doi:10.1257/jep.28.2.3
Assessments
| Learning Assessment Activity | Percentage | Dates |
|---|---|---|
| Participation | 10% | Weekly |
| Assignments (best two) | 35% | Fridays (6 March, 13 March, 20 March) |
| Midterm Exam | 20% | In class, Tuesday 24 March |
| Project Outline | 5% | Tuesday 31 March |
| Final Project | 30% | Friday 10 April |
| Total | 100% |
Assignments
All assignments, exercises, and your project must include both your code (.r or .rmd format) and a write-up (.html or .pdf format) written and formatted to a professional standard. For assignments where you do not use data provided by the instructor, you must also submit a data file (.csv format). The code should load the relevant data file and compile on an external computer. You are encouraged to have a peer test that your code compiles on their computer before submitting.
Late penalty: Unexcused late assignments are penalized 25% of the grade weight immediately after the deadline, and an additional 25% for each additional day late. For example, an assignment fifteen minutes late loses 25%; one day and fifteen minutes late loses 50%.
Participation
Participation points are awarded for:
- Attendance (3.5%)
- Accurate completion of in-class exercises (3.5%)
- Instructor discretion, based on participating in classroom discussion and collaborating with peers during exercises and assignments (3.0%)
Midterm
A closed-book midterm exam will be held in class on Tuesday 24 March. It will include a mix of multiple-choice and short-answer questions covering course concepts, models, and readings from Weeks 1–4. You are not required to write any code for the midterm exam.
Course Schedule and Topics
| Week | Topic | Readings | Due |
|---|---|---|---|
| 1 | Introduction and Linear Models | James et al., Ch. 2.2.1–2.2.2, Ch. 6.1–6.2; Mullainathan & Spiess (2017) | |
| 2 | Trees | James et al., Ch. 8.1, 4.1–4.3, Tables 4.4–4.7 | Assignment 1 |
| 3 | Random Forests | James et al., Ch. 8.2, 5.1; Chen et al. (2021) | Assignment 2 |
| 4 | Boosted Models | James et al., Ch. 8.3–8.4; Thakur et al. (2023) | Assignment 3 |
| 5 | Neural Networks | James et al., Ch. 10; Cao et al. (2012) | Midterm Exam |
| 6 | Unsupervised Learning: PCA | James et al., Ch. 6.3, 12.1–12.2 | Project Outline |
| 7 | Adaptive Sampling | Russo et al. (2018); Kang et al. (2016) | Final Project |
Strategies for Success
Effective coding requires resilience: try, fail, google, repeat! Talk with the instructor and your classmates until you are clear about the goal for each exercise and assignment, then start writing code. You should not expect your code to be correct on your first attempt. In many cases, interim success is signified by a new error message.
Course Policies
The MFRE program policies posted on this course's Canvas page and in the MFRE Code of Conduct apply to FRE 521E. The policies on Attendance and Missing Classes/Labs/Exams, Collaboration on Assignments, Citations and Turnitin, Copyright, Respect for Equity, Diversity, and Inclusion, Respectful Conduct and Collaboration, and Centre for Accessibility apply verbatim. Below are additional policies specific to FRE 521E.
Electronic Devices in Classrooms
Students are required to bring an internet-connected device with a keyboard to all classes. The device should have the latest version of RStudio installed (we will troubleshoot installations in the first class).
AI Use and Disclosure
AI is a helpful tool for coding, and AI use will be allowed in FRE 521E. Students may use AI tools for brainstorming, drafting, editing, or coding with proper disclosure. Include a detailed AI disclosure statement at the end of every assignment if AI was used.
For most assignments, code will be provided in the lecture to begin the exercise or assignment, and students will be required to extend the given code. If a student chooses to forgo the lecture code and rely on AI, the instructor may not be able to help troubleshoot coding problems.
MFRE Program – Course Protocol Policies
Working with Others on an Assignment
You are encouraged to work with other students, but you must turn in your own individual assignment. If your answer is too close to another student's answer, this will be considered academic dishonesty and handled according to MFRE and UBC policies.
Recordings
There is no required distribution of class recordings. Recordings will be provided at the discretion of the course instructor. Classes are designed and intended to be in person.
Copyright
All course materials (handouts, lecture slides, assessments, readings, etc.) are the intellectual property of the instructor or licensed for use in this course by the copyright owner. Redistribution by any means without permission of the copyright holder(s) constitutes a breach of copyright, may lead to academic discipline, and could be subject to legal action. Audio or video recording of classes is not permitted without the instructor's prior consent.
Missing Classes/Labs
Students are expected to attend all classes, labs, and workshops. If you cannot attend due to a medical or personal emergency, email your instructor, your Course Assistant, and Olivier Ntwali, MFRE Program Coordinator, ahead of time.
Respectfulness in the Classroom
Students are expected to be respectful of their colleagues at all times, including faculty, staff, and peers. This means being attentive to words and actions and their impact on others, listening with an open mind, treating all MFRE community members equally, and understanding diversity.
Respect for Equity, Diversity, and Inclusion
The MFRE Program strives to promote an intellectual community enhanced by diversity along various dimensions, including status as a First Nation, Métis, Inuit, or Indigenous person, race, ethnicity, gender identity, sexual orientation, religion, political beliefs, social class, and/or disability. All students and members of our community are expected to conduct themselves with empathy and respect for others.
Centre for Accessibility
The Centre for Accessibility (CfA) facilitates disability-related accommodations and programming initiatives designed to remove barriers for students with disabilities and ongoing medical conditions. If you are registered with the CfA and eligible for exam accommodations, it is your responsibility to inform Olivier Ntwali, Academic Program Coordinator, and each of your course instructors. Book your exam writing with the CfA through its exam reservation system: at least 7 days in advance for midterm exams or quizzes, and 7 days before the start of the formal exam period for final exams.
Plagiarism and Academic Dishonesty
Academic dishonesty and plagiarism are taken very seriously in the MFRE program. All incidents of plagiarism will be escalated to the MFRE Academic Director, with penalties ranging from a mark of zero on the assignment, exam, or course to being required to withdraw from the program. Note: if a student needs to extend their program due to a failed course or unsatisfactory progress, they will have to pay full MFRE tuition fees for that term(s).
Academic misconduct subject to disciplinary measures includes, but is not limited to:
- Plagiarism – intellectual theft, where an individual submits or presents the oral or written work of another person as their own. Correct citations must be provided where applicable for all reports/assignments. In all MFRE courses, material will be submitted to TurnItIn, a UBC-subscribed service that checks textual material for originality.
- Generative AI misuse – using Generative AI tools such as ChatGPT, Claude, Gemini, or other models to generate content or conduct analysis for evaluations, without proper citation or when asked not to use AI, is considered plagiarism and academic misconduct. If students use AI in their submissions, they must cite the AI generator using citations consistent with the UBC Academic Honesty Standards.
- Cheating – including, but not limited to, falsification of any material subject to academic evaluation, unauthorized collaborative work, or use of unauthorized means to complete an examination.
- Working with others on an assignment – encouraged, but you must turn in your own individual assignment. If your answer is too close to another student's answer, it will be considered academic dishonesty, a grade of zero will be applied, and the matter handled according to MFRE and UBC policies.
- Resubmission of material – submitting the same, or substantially the same, essay, presentation, or assignment more than once (whether the earlier submission was at this or another institution) without prior approval from the instructor(s) to whom it is to be submitted.
- Use of academic ghostwriting services – including hiring writing or research services and submitting papers or assignments as one's own.
Student Responsibility: Students are responsible for informing themselves of the guidelines for acceptable and unacceptable conduct for examinations and graded assignments, as presented in the MFRE Code of Conduct, MFRE TurnItIn guidance, the course syllabus, MFRE instructors, Canvas, and UBC academic misconduct policies.
Penalties for Academic Dishonesty: Penalties are applied at the discretion of the MFRE program. Academic misconduct may result in a mark of zero on the assignment, examination, or course; required withdrawal from the program; and/or referral of the matter to UBC Graduate Studies.
