jmbejara / comp-econ-sp18

Main Course Repository for Computational Methods in Economics (Econ 21410, Spring 2018)
16 stars 23 forks source link

Q3: Lognormal not defined at zero #48

Closed benpicker closed 6 years ago

benpicker commented 6 years ago

Question 3 asks us to consider the values x∈(0,150000), but linspace() starts at the initial point given, so if I write linspace(0,150000,100) I will have a problem because lognorm isn't defined at x=0.

What should I choose for my initial point?

jmbejara commented 6 years ago

I give the range x∈(0,150000) as opposed to x∈[0,150000]. Just choose a small number greater than zero to start from.