Economics‎ > ‎ECO 7362‎ > ‎Updates‎ > ‎

Homework 3 solutions

posted Feb 14, 2012, 9:45 PM by Jim Dolmas   [ updated Feb 15, 2012, 6:19 AM ]
Attached are solutions for Homework 3. The M-file covers both exercize 3.1.1 and 3.1.2.

In the M-file, note especially the way I use Matlab's repmat function to save some steps.  Type "help repmat" in Matlab to learn more. Using array multiplication ( .* ) and summing across rows (for example, sum(P.*R,2) for conditional expectation of R) also saves some steps.
Ċ
Jim Dolmas,
Feb 14, 2012, 9:45 PM
ċ
lucas_7362.m
(5k)
Jim Dolmas,
Feb 14, 2012, 9:45 PM
Comments