# paste the deaton class code here # alternatively (and this is a better option) create file deaton.py in the same directory, paste the code there, and include it using "import * from deaton.py" command m = deaton(ngrid=100,nchgrid=250,sigma=.5,nquad=10, bellman_type='continuous') print(m) v,c = m.solve_plot(solver='timeiter') m.accuracy(verbose=True) sims = m.simulator(init_wealth=m.Mbar*np.arange(15)/15,T=25,seed=2020) v,c = m.solve_plot(solver='vfi') m.accuracy(verbose=True) sims = m.simulator(init_wealth=m.Mbar*np.arange(15)/15,T=25,seed=2020) m.bellman_type='discretized' v,c = m.solve_plot(solver='vfi') m.accuracy(verbose=True) sims = m.simulator(init_wealth=m.Mbar*np.arange(15)/15,T=25,seed=2020) # Write your code here