Early exposure of economics students to symbolic computation in Python

Andrew Adrian Pua

2025-12-12

… is a mixed bag.

Example: Finding extrema and doing some comparative statics

From Essential Mathematics for Economic Analysis:

Why?

  1. Every student should be able to open their textbook (or references) and then work on examples and answer the exercises using SymPy.
  2. Even better if they could write a full solution with text, explanations, and mathematical reasoning.
  3. Communication with mathematics and seeing it in action help students.
  4. But retention is not very high even within the same term.
  5. Exam scores have a lot of spread.

Where?

  1. Pedagogical materials using symbolic computation in Python

    • Kuroki (2021): Undergraduate microeconomic theory
    • Stippell, Akimov, and Prezhdo (2023): Undergraduate quantum chemistry

Where?

  1. Remarkably sparse literature on the effectiveness of integrating symbolic computation into post-secondary courses

    • Marshall et al (2012): how to assess?
    • Milenković et al (2020): effect of CAS on exam tasks related to double integrals
    • Matzakos and Moundridou (2025): LLM + CAS

How?

  1. Context:

    • Twenty-three 1st year economics majors
    • Optimization: 3 unit lecture, 1 unit lab, integrated version
    • Meet only one hour once a week for 12 times, but 3 of those times are exams
  2. Minimal setup: No Python background, cloud computing via SymPy Live Shell and Google Colab

  3. Survey questions plus exam scores

Findings

  1. First exam was write code by hand for first half and then answer the same exercise with a computer.

    • Miserable results
    • Changed for the remaining 2 exams
  2. After that, full PC use with ability to consult manual.

  3. A report with a full solution and explanation could be required.

  4. Some students failed the course.

Exam results

Components Median IQR
Long Exam 1 (by hand) 35% 24%
Long Exam 1 (with PC) 40% 20%
Long Exam 1 35% 19%
Long Exam 2 50% 24%
Long Exam 3 80% 31%
Final Grades 64% 18%

Student evaluation

Based on 3 evaluations during the first 4 to 5 meetings:

  1. Roughly 50%-60% were distracted by other open tabs.
  2. Roughly 80%-90% of students can see tangible evidence that the lectures are connected to the lab.
  3. Roughly 60% of students forgotten commands from past labs.
  4. Not everyone can finish all exercises

Advantages

  1. Chance to see theory in a different form
  2. Teach programming (in a narrow sense) indirectly
  3. Be comfortable with the “command line”
  4. Create dynamic documents and weave Python calculations into documents – Learn LaTeX, HTML, Markdown indirectly
  5. “Dumping everything on a computer” mentality can somehow be corrected.

Mix of good and bad

  1. AI is literally built in to Google Colab
  2. Can be frustrating to move around the lab troubleshooting every little thing
  3. 1 hour goes by so fast
  4. Unclear whether skills get transferred to major courses
  5. Not very natural to learn syntax and write code: Why? It requires actual thinking.

Reaching out

  1. Questions, proposals, collaboration?

  2. Email me at andrew.pua@dlsu.edu.ph or approach me.

  3. Drop in https://ecoxlabmath.neocities.org if you want to know more.