全部版块 我的主页
论坛 提问 悬赏 求职 新闻 读书 功能一区 悬赏大厅
361 1
2015-06-11
悬赏 5 个论坛币 未解决

第一题:Tony’s utility function is , where  is his consumption in period 1 and is his consumption in period 2. In period 2, his income is twice as large as his income in period 1. At what interest rate will he choose to consume the same amount in period 2 as in period 1?




第二题:Will Wisp will live for exactly two periods. His utility function is, where is consumption in period 1 and  is consumption in period 2. He will have no income in period 2. His income in period 1 is $80,000. If the interest rate rises from 10 to 12%, what will his consumption changes with it?


二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

全部回复
2015-6-11 13:47:32
更确切的说的都是举个例子,希望有所帮助。regress的核心也就是最小二乘了。% By lyqmath
clc; clear all; close all;
x = 1:60;
y = 5*x + 10;
y = y + 10*rand(1, size(x, 2));
data = [y' x']; % 60*2的矩阵
b = regress(data(:, 1), [data(:, 2) ones(size(data, 1), 1)]);figure; hold on; box on;
plot(x, y, 'r+');
xt = linspace(min(x), max(x));
yt = b(1)*xt + b(2);
plot(xt, yt, 'b-');
funstr = sprintf('y = %.3f*x + %.3f', b(1), b(2));
title([funstr ' By lyqmath'], 'FontWeight', 'Bold', 'Color', 'r');
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群