Giter VIP home page Giter VIP logo

Comments (12)

Mv77 avatar Mv77 commented on August 9, 2024

The simplest model with micro-heterogeneity is possibly the "Aiyagari Model"

Lots of old integrals math in there but it amounts to including the equilibrium restriction that
$$\texttt{Rfree} = F(\int a_{i,t} di)$$ where $F(\cdot)$ can be something simple like $F(x) = 1 + x^{0.33 - 1}$, adequately scaled so that the Rfree ultimately makes sense and is not like... 5.

There are no aggregate shocks and, since with enough agents the integral should be constant, this is a model in which the conditions of every individual agent change (idiosyncratic risk) but the macro aggregates are constant. That is why it is simpler than, e.g., Krusell-Smith

from hark.

Mv77 avatar Mv77 commented on August 9, 2024

Intuition is that R is the price of renting capital (the funds that agents save). If there is a lot of saved funds available, renting them should be cheaper.

Think of $F(\cdot)$ as the price that some external entity (in this case a firm) is willing to pay to agents for renting their savings for one period. Impose that and you have an equilibirum model.

from hark.

mnwhite avatar mnwhite commented on August 9, 2024

from hark.

sbenthall avatar sbenthall commented on August 9, 2024

Thanks @Mv77 that's perfect.

I'm linking here to the dolark version of this model just for reference, since it's a succinct representation of the problem:

https://github.com/EconForge/dolark.py/blob/master/examples/ayiagari.yaml

from hark.

sbenthall avatar sbenthall commented on August 9, 2024

It's a little hard to unpack the forward transition equations from the original paper, but I believe it, for the individual agent:

$$z = lw + (1+r)a$$

$$c < z + b$$

$$a' = z - c$$

And at the aggregate level:

$$K = \sum_N a$$

$$r = \alpha (K/N) ^ { \alpha - 1}$$

$$w = (1-\alpha)*(K/N)^\alpha$$

EDIT: The equation for $r$ has been edited as per @mnwhite suggestion below.

CRRA utility as before.

I believe this is sufficient for the Monte Carlo simulation for arbitrary decision rules (which may be out of equilibrium).
I wonder if you agree.

from hark.

mnwhite avatar mnwhite commented on August 9, 2024

from hark.

sbenthall avatar sbenthall commented on August 9, 2024

How would you like it expressed, @mnwhite ?

from hark.

mnwhite avatar mnwhite commented on August 9, 2024

from hark.

sbenthall avatar sbenthall commented on August 9, 2024

I agree. Good point, @mnwhite

from hark.

Mv77 avatar Mv77 commented on August 9, 2024

I'd suggest setting $N$ to 1 and forgetting about wages. Receiving wages as an input that affects the income of agents might require defining a new agent type. I'd just take income to be whatever the baseline income process of ConsIndShock is.

That way the only real equilibrium restriction to be satisfied would be $F\left ( \int a_{i,t}(\texttt{Rfree}) di \right) = \texttt{Rfree}$. Call it a "simplified Aiyagari" just to start testing the framework with a single simple equation.

from hark.

mnwhite avatar mnwhite commented on August 9, 2024

from hark.

sbenthall avatar sbenthall commented on August 9, 2024

@Mv77 The point of this issue is to develop (a) a python configuration object which contains model equations for aggregation and (b) changes to the (general) Monte Carlo simulator to enable forward simulation with such a configuration object. There are no AgentType objects involved here at all.

So it's the aggregation, not the equilibrium condition, which I'm getting at here.

Out of scope for this issue is to write a solver that can take these equations and derive a solution. That's perhaps far ahead. It would follow on #1438

from hark.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.