QuantEcon / lecture-source-jl

Source files for "Lectures in Quantitative Economics" -- Julia version
https://julia.quantecon.org
BSD 3-Clause "New" or "Revised" License
131 stars 53 forks source link

Material on relative vs. absolute tolerances (for tests and optimizers) #264

Open jlperla opened 6 years ago

jlperla commented 6 years ago

Maybe in the optimizer/solver section

Then in the style guide:

Nosferican commented 6 years ago

I don't think we use convolutional tolerance, but if we doing some material on the topic it might be worthwhile to mention it.

jlperla commented 6 years ago

I don't know about convolutional tolerances. Where do these things come up?

Nosferican commented 6 years ago

The basic idea is quite natural. For example, an algorithm for maximizing log-likelihood might use the difference or track the progress in relative terms rather than an absolute change.

Δ = abs(ℓℓ₀ - ℓℓ₁) / ℓℓ₀

a pretty simple concept that can help tune up convergence steps. It relates to the ambiguity of the scales or deciding what is good enough.

jlperla commented 6 years ago

Neat. We definitely should add that if we end up putting more structural estimation/etc. stuff in the course.

Nosferican commented 6 years ago

For long-term, I could contribute a GLM section if that would be beneficial.

jlperla commented 6 years ago

I think we should consider those in the spring. But my worry is that a major scope creep from "quantitative" economics towards empirical and statistics may be spread things too thin. I threw in a few basic examples in one of the lectures so that people could do basic statistics and data as part of the more general models, but I am not sure we want to go much further quite yet.

That said, I think a course/online set of lectures on econometrics and statistics in Julia would be amazing starting in about a year (when the AD, optimization, MCMC, etc. libraries have caught up to their potential).