Closed rhuselid closed 5 years ago
It looks like you're missing a square root and a square in the PDF. I'm not sure if that's the cause, though.
I added the sqrt term I forgot, but not sure about square term? I think I am matching the pdf in the lecture notes?
It looks like there is a slight typo in PDF in the notes. I've just fixed it now. You can find the appropriate PDF here: https://en.wikipedia.org/wiki/Normal_distribution
It should be sigma**2
if you put the term inside the square root.
Thanks! This and setting the initial params guess to be closer to the real coefficients solved my problem. Basically, the likelihood of getting those residuals was so close to zero that it was being stored as a 0 in memory, which threw an error later on.
I am running the code above for q11 and I am getting stuck on an error where the residuals look correct, but when they are put through the pdf, then become all 0 (which throws an error). Yet if I run:
I get real values.
Any ideas for why this may be?