MIT PoM 1: introduction to Microeconomics

Economics is all about scarcity and the constrained optimization, which means given certain constraints, how does individuals and firm trade off different alternatives to make the optimal choice. Actually, all engineering is about constraint optimization.This course...

Java Stream

What is stream? Stream is an abstraction of data operations. It takes input from the collections, Arrays of I/O channels. From imperative to declarative For example, given a list of people, find out the first 10 people with age less or equals to 18. The following...

消费函数

当我们考虑花多少钱在消费上的时候,我们会考虑哪些因素?也就是说,我们的消费由什么决定?在经济学中,又该如何量化这个决策的过程?凯恩斯提出的消费函数认为:消费仅仅取决于现期收入,也就是 C=C0 + aY`。这里的Y是收入,而C0 是当前消费,而a是边际消费率,也就是随着收入增长,消费增长的比例。凯恩斯的消费公式有几个重要含义: 消费随着收入的增长而增长,但是增长的比例小于1,即边际消费率大于0但是小于 1。边际消费率本身也会随着收入的增长而减小。...