α = 0.2
β = 0.3
P = [
1-α α ;
β (1-β)
]
μ0 = [0.4, 0.6]
μ0'*P - μ0' # this should be zero1×2 adjoint(::Vector{Float64}) with eltype Float64:
0.1 -0.1
Pablo Winant
A worker’s employment dynamics obey the stochastic matrix
\[P = \begin{bmatrix} 1-\alpha & \alpha \\ \beta & 1-\beta \end{bmatrix}\]
with \(\alpha\in(0,1)\) and \(\beta\in (0,1)\). First line corresponds to employment, second line to unemployment.
1×2 adjoint(::Vector{Float64}) with eltype Float64:
0.1 -0.1
Converged after 25 iterations
2-element Vector{Float64}:
0.5999999880790714
0.4000000119209292
# we want to solve mu' P = mu' in mu'
# or: P' mu = mu (sound slike a linear algebra problem)
# or: (P'-I) mu = 0
# BUT, because of mass preservation, columns of P sum to 1
# rows of P' sum to 1
# rows of P' - I sum to 1
# need to :
# remove one of the colinear rows
# add another condition: sum(mu) = 1 -> add one row 1*mu[1] + 1*mu[2] == 1
2-element Vector{Float64}:
0.6000000000000001
0.39999999999999997
2-element Vector{Float64}:
0.6
0.3999999999999999
A financial asset yields dividend \((x_t)\), which follows an AR1. It is evaluated using the stochastic discount factor: \(\rho_{0,t} = \beta^t \exp(y_t)\) where \(\beta<1\) and \(y_t\) is an \(AR1\). The price of the asset is given by \(p_0 = \sum_{t\geq 0} \rho_{0,t} U(x_t)\) where \(U(u)=\exp(u)^{0.5}/{0.5}\). Our goal is to find the pricing function \(p(x,y)\), which yields the price of the asset in any state.
At the beginning of each year, a manufacturer must decide whether to continue to operate an aging physical asset or replace it with a new one.
An asset that is \(a\) years old yields a profit contribution \(p(a)\) up to \(n\) years, at which point, the asset becomes unsafe and must be replaced by law.
The cost of a new asset is \(c\). What replacement policy maximizes profits?
Calibration: profit \(p(a)=50-2.5a-2.5a^2\). Maximum asset age: 5 years. Asset replacement cost: 75, annual discount factor \(\delta=0.9\).