jmbejara / comp-econ-sp18

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

HW 6 - clarifying the model #57

Closed vuphan95 closed 6 years ago

vuphan95 commented 6 years ago

I have two questions:

  1. What should I do with the inf values that result from taking log of 0? Should I exclude them from the sum?
  2. Is the cdf that is used cdf of N(0, 1)? And can I use scipy.stats.norm.cdf() to calculate it?
jmbejara commented 6 years ago
  1. Good question. I forgot to mention this. Any time you see a -inf for the log probability, change it to -1e+08.. That is, change it to -100000000.
  2. Yes. Use a N(0,1).

    I'm updating the HW to include these instructions. Thanks!