Build a TempReas model with the help of artificial intelligence.
Describe a system in a few sentences and get a first model structure: that is what an artificial intelligence can do when it knows TempReas's construction rules.
The principle comes down to four steps:
- Describe. You describe in plain language the system you want to study, or the data you want to model.
- Provide the rules. You give the AI the TempReas prompt, which explains how to express a model: stocks, flows, actions and temporality.
- Get the list. The AI replies with a structured list of the model's elements, along with its assumptions.
- Build and check. You load this list into TempReas to obtain the model, then you check it, correct it and complete it.
The AI offers a starting point. It may make mistakes or assumptions you would not have made: you are the one who validates the model.
Give the AI TempReas's construction rules
This text explains to the AI how to express a TempReas model. Copy it into your AI assistant, or download it, then add your description. It is updated regularly: the version shown here is always the latest one.
The prompt could not be loaded in this page. You can open it directly: promptEn.txt.
A conceptual model example: money, interest and work
To illustrate the principle on a system where the rules have to be imagined rather than read from a data file, I asked the AI to build a "single bank" model. After giving it the TempReas prompt, I submitted the following description.
The statement
I would like a list of elements to create, in TempReas, a "single bank" model, to answer the following question: when all banks belong to one single bank and that bank collects the interest on every loan, what happens in the long run to the money circulating between buyers and sellers? And if money pays more than work, what happens to work and production?
First loop: the single bank (view 1).
- A single bank grants loans to customers. A loan creates a deposit of the same amount: the customers' debt and their deposits increase together.
- Customers repay the principal: debt and deposits decrease together (money is destroyed).
- Customers pay interest to the bank: money moves from the customers' deposits to the bank's equity.
- The bank puts part of the interest back into the economy (wages, dividends, taxes, purchases). The rest accumulates in its equity.
- Customers can never pay more than they own. Part of the debt may be lost (not repaid) at the bank's expense.
- The sum of deposits + debt (as a negative) + equity must remain constant.
Second loop: work and rent (view 2).
- The population is split between workers and rentiers (people living on the income of their money), and remains constant.
- When the return on money (the interest rate) exceeds the growth of income from work, workers become rentiers. Otherwise, rentiers go back to work.
- Only workers produce. Their output is compared with the needs of the whole population (needs coverage indicator).
Links between the two loops. The bank's interest rate determines how attractive living on rent is. The demand for credit is proportional to the share of workers: fewer workers, less money created.
Back-calculation search (view 3). Find the smallest share of the interest re-spent by the bank that keeps customer deposits above a threshold in a given year, by testing 0%, 10%, 20%... in successive passes back into the past.
Timing. Monthly time step, one-year cycle (12 months), 100 cycles. Annual rates are converted into compound monthly rates.
Parameters (all editable, starting values to be shown clearly in the code):
- interest rate: 4% (assumption, higher than the ECB deposit rate of 2.50%);
- credit growth: 3.5% (derived from M3 growth);
- average loan term: 10 years (assumption);
- share of interest re-spent: 0% (the bank keeps everything);
- credit losses: 0 basis points;
- wage growth: 3.5% (to be validated);
- switching speed: 2 (example);
- productivity: 125% (one worker feeds 1.25 people);
- need per person: 100%;
- search: step of 10%, threshold of 50, target year 50, at most 10 passes.
Everything is on a base of 100: initial deposits and debt = 100, equity = 0, population = 100 (at the start, everyone works). State your assumptions and what you did not model.
The AI's response
Here is the list proposed by the AI, shown as generated (in French).
Lines starting with // are comments: the AI uses them to
explain the rules it chose for each flow. Scroll the frame to read it
in full.
Warning: this response was obtained at a given moment and may no longer be up to date. Since the feature is under development, the prompt may have changed since: a response obtained today may therefore be different. It is shown for illustration purposes.
This proposal is a starting point. The model is organized in three views: money (view 1), people (view 2) and the back-calculation search (view 3). In the starting scenario, where the bank keeps all the interest, customer deposits gradually dwindle against a growing debt; with 100% re-spending, they always equal the debt. These results depend on the rules and parameters chosen, several of which are assumptions not calibrated on real data: the model shows a structural tendency of this theoretical system, not a proof.
From the AI's proposal to the TempReas model
Here is the result obtained in TempReas from the list provided by the AI: it was copied as is, then the model was built with a single mouse click.
“Single bank” model in TempReas. Drag the image or use the scroll bars to explore it.
A complete example from public data
To illustrate the principle on a real case, I asked the AI to build a model of the State budget. After giving it the TempReas prompt, I submitted the following statement.
The statement
I would like a list of elements to create, in TempReas, a model of the State budget.
First, look on an official website (INSEE, data.gouv.fr or other) for the most suitable Excel file: it must contain all the State's expenditure and revenue, line by line, for a given year.
Then build the model from this file:
- one line of the table corresponds to one flow;
- each flow goes from a source stock to a target stock: the table does not always specify the counterparties, so suggest those that seem consistent to you and flag them as assumptions to be validated;
- annual amounts are spread over the months of the year;
- the amounts must appear clearly in the code, so that I can change them to test other scenarios.
State your source, your assumptions and the elements you did not model. Add control elements (total expenditure and revenue, balance) so that I can compare the results with the original file.
The AI's response
Here is the list proposed by the AI, shown as generated (in French).
Lines starting with // are comments: the AI uses them to
state its source, its modelling choices, the assumptions to validate
and what it did not model. Scroll the frame to read it in full.
Warning: this response was obtained at a given moment and may no longer be up to date. Since the feature is under development, the prompt may have changed since: a response obtained today may therefore be different. It is shown for illustration purposes.
This proposal is a starting point. The AI states in a comment the results expected at the end of the cycle (total expenditure, total revenue and balance): they make it possible to check the model once it is built in TempReas, then to correct or complete it.
From the AI's proposal to the TempReas model
Here is the result obtained in TempReas from the list provided by the AI: it was copied as is, then the model was built with a single mouse click.
“State budget” model in TempReas. Drag the image or use the scroll bars to explore it.