I am having trouble building a table that looks similar to this: With the values of A = 1, δ = 0.05, α = 0.33, K0 = 1, and St is a random number between 0,1. T-1 means the previous period.
I have written the following code:
With[{A = 1., \[Delta] = 0.05, \[Alpha] = 0.33},
NestList[Apply[
Function[{k, y, c, s, i},
With[{st = RandomReal[]}, {(1 - \[Delta]) k +
i, (k^\[Alpha] *A^(1 - \[Alpha])), st, (1 - s) y, s y}]]],
With[{st = RandomReal[]}, {1., 1., 1 - st, st, st}], 4]]]
My issue is that when I use the formulas to check if the output I find the they are not correct. I need some help on how to solve this issue, or if there is an easier way to do this. Any help is appreciated