TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Quantitative Economic Modeling in Python

110 pointsby bfeover 11 years ago

5 comments

bfeover 11 years ago
From their page on Optimal Taxation:<p><pre><code> # == Test that nu has a real solution before assigning == # warning_msg = &quot;&quot;&quot; Hint: you probably set government spending too {}. Elect a {} Congress and start over. &quot;&quot;&quot; disc = a0**2 - 4 * a0 * b0 if disc &gt;= 0: nu = 0.5 * (a0 - sqrt(disc)) &#x2F; a0 else: print &quot;There is no Ramsey equilibrium for these parameters.&quot; print warning_msg.format(&#x27;high&#x27;, &#x27;Republican&#x27;) sys.exit(0) # == Test that the Lagrange multiplier has the right sign == # if nu * (0.5 - nu) &lt; 0: print &quot;Negative multiplier on the government budget constraint.&quot; print warning_msg.format(&#x27;low&#x27;, &#x27;Democratic&#x27;) sys.exit(0)</code></pre>
dimitarover 11 years ago
Thomas Sargent was awarded the Nobel Prize in Economics in 2011 together with Christopher A. Sims &quot;for their empirical research on cause and effect in the macroeconomy&quot;<p>Fellow laureate Krugman: &quot;S and S played a key role in developing methods that let the data speak instead&quot;: <a href="http://krugman.blogs.nytimes.com/2011/10/10/go-princeton-and-nyu/" rel="nofollow">http:&#x2F;&#x2F;krugman.blogs.nytimes.com&#x2F;2011&#x2F;10&#x2F;10&#x2F;go-princeton-and...</a><p>The models here however aren&#x27;t econometric, they are for theoretical economics. The Kalman filter can be used for 10001 different things.
评论 #6455181 未加载
drcodeover 11 years ago
Though I&#x27;m glad to see more intro material for quantitative economics, I am a bit perplexed by the scope&#x2F;emphasis of this text.<p>For instance, here&#x27;s how many times the following words appear in it:<p><pre><code> Money : 0 mentions Incentive(s) : 1 mention Market(s) : 0 mentions </code></pre> I&#x27;m no quantatative Economist, but in what way is this an economics text, as opposed to just an algorithms&#x2F;modeling text?<p>(I&#x27;m not saying it ISN&#x27;T an economics text... I&#x27;m just hoping someone can genuinely answer my newbie question :-)
评论 #6452025 未加载
评论 #6452028 未加载
评论 #6452287 未加载
评论 #6454084 未加载
vbs_redlofover 11 years ago
Stachurski&#x27;s book goes into the underlying theory more deeply with code examples. It&#x27;s also got a very good&#x2F;practical introduction into real analysis and measure theory. Great resource for modern computational economics.
emilgaover 11 years ago
This is really an excellent introduction to programming in python!