I am an Assistant Professor of Economics at the University of Toronto.

I am interested in combining climate science and structural economic modeling to study climate impacts in equilibrium. I also develop computational tools for solving rich heterogeneous-agent models.

You can find my CV here.

**Email:** je.sun@utoronto.ca

I am an Assistant Professor of Economics at the University of Toronto.

I am interested in combining climate science and structural economic modeling to study climate impacts in equilibrium. I also develop computational tools for solving rich heterogeneous-agent models.

You can find my CV here.

**Email:** je.sun@utoronto.ca

The median US household holds a majority of its wealth in a single climate-exposed asset: the home. I study the implications of this fact for the distributional consequences of climate change, using a dynamic, stochastic, heterogeneous-agent model with 1713 locations. Forward-looking equilibrium real estate prices and rents endogenously respond to climate news shocks in spatially-segmented markets. Households participate on both sides of each market. To quantify climate impacts on economic fundamentals, I harmonize recent estimates of local productivity, amenities, energy costs, and disaster damage sensitivities. I find the model's global solution under aggregate climate uncertainty with a simple but general deep learning method introduced in a companion paper. In the calibrated model, a switch from widespread climate denial to widespread climate acceptance causes an effective transfer of housing wealth across regions of $41bn immediately and $507bn over the following century. Migration exacerbates this by amplifying housing price responses. The spatially-equalizing effects of migration only dominate for all households 50 years post-shock. Climate uncertainty causes ongoing regressive wealth transfers through higher equilibrium rents, borne mostly by poorer households.

Numerical Methods Overview

The primary numerical methods contribution in this paper is a new deep learning method for solving heterogeneous-agent models with aggregate uncertainty. This method uses neural networks to predict the conditional continuation values resulting from household actions, but does not use neural networks to approximate household policy functions. Details of this methodology are available in a companion paper.

The key insight of the deep learning method is that, if a household knows the current utility and continuation values resulting from any action, then conventional methods can be used to solve the policy function. With one or two dimensions of heterogeneity, this is generally no problem. But because the model has so many individual states (213 million), I had to develop a few custom algorithms.

These supplementary algorithms overcome some computational bottlenecks when scaling up discrete-time heterogeneous-agent models to large numbers of individual states and locations. In the hope that someone finds them useful, I've made a separate Github repository for them, in highly-optimized parallelized Julia code.

Speedup factor: log n (n = #(gridpoints), relative to individual lookups)

When solving value functions using backwards induction or simulating distributions forward, if the gridpoints are defined in terms of endogenous quantities (e.g. wealth), you often have to reinterpolate the function or distribution back onto the grid. Existing interpolation libraries look up each gridpoint independently. With n gridpoints, each query is O(log n) and the whole reinterpolation is O(n log n). But if the grid is monotonic, you only need to iterate over each grid once, which you can do in O(n) time.

Reinterpolating is slightly different for functions and distributions, since distribution approximations depend on the density of gridpoints.

Speedup factor: up to n^{0.62} or so, with big improvement on constant (if n = #(locations), relative to naive approach)

With n locations and m possible within-location agent states, if agents receive Gumbel-distributed location preferences, then to solve for the value function and choice probabilities, you have to solve for n*n*m possible agent-choice pairs. Luckily, this can be constructed as a single matrix multiplication, which can even be done non-allocatingly if set up properly. Highly-optimized linear algebra libraries can then be used.

Speedup factor: n (n = #(gridpoints), relative to naive individual lookups. Speedup factor log n over optimized individual lookups)

In many models, agents must make consumption savings decisions. Assuming a discretized wealth grid, the most flexible solution is to maximize over all possible continuation values for each agent, but this requires O(n^{2}) total computations. If both continuation value and optimal saving are increasing in wealth, each agent needs only consider possible choices that lie between the choices of adjacent agents. By using binary search for individual lookups and a form of modified binary search to constrain the search space for individual agents, we can compute the optimal decisions of n agents who differ only by wealth using only 2n computations.

**The Distributional Consequences of Climate Change: The Role of Housing Wealth, Expectations, and Uncertainty**, Job Market Paper**Continuation Value Is All You Need: A Deep Learning Method for Solving Heterogeneous-Agent Models With Aggregate Uncertainty**[Slides]**Indirect Effects of Renewable Portfolio Standards on Carbon Emissions**

**Learning From Coworkers in General Equilibrium: Worker Sorting and the Rise of Inequality**(with Gregor Jarosch, Ezra Oberfield, and Esteban Rossi-Hansberg)

**Atomistic Agents: Solving Models by Decomposition****Atomistic Agents: Decomposing Within-Period Models Into Composable Stages****Granular Agents: Implicit Automatic Differentiation****Global Solutions: Continuation Value is All You Need****Spatial Models: Some "Conventional" Methods**

- (It's a bit presumptuous for me to have advice for students at this stage in my career, so please discount the following accordingly.)
**Navigating the transition from classes to research****One possible way to pick a research question in climate economics**

- Bora, S., Damelin, S., Kaiser, D., & Sun, J. (2023), An algebraic-coding equivalence to the maximum distance separable conjecture, Involve, a Journal of Mathematics, Forthcoming.
- Güntürkün, S., Jeffries, J., & Sun, J. (2020). Polarization of neural rings. Journal of Algebra and Its Applications, 19(08), 2050146.
- Hua, M., Damelin, S. B., Sun, J., & Yu, M. (2017). The truncated and supplemented Pascal matrix and applications. Involve, a Journal of Mathematics, 11(2), 243-251

Copyright 2023 Jeffrey Sun