用matlab做一个合适的回归模型,y:196,63,252,84,126,14,49,49,266,49,105,98,77,14,56,245,133,133x1:66.290,40.964,72.996,45.010,57.204,26.852,38.122,35.840,75.796,37.408,54.376,46.186,46.130,30.366,39.060,79.380,52.766,55.916x2:7,5,10,6,4,5,4,6

来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/08 03:07:10
用matlab做一个合适的回归模型,y:196,63,252,84,126,14,49,49,266,49,105,98,77,14,56,245,133,133x1:66.290,40.964,72

用matlab做一个合适的回归模型,y:196,63,252,84,126,14,49,49,266,49,105,98,77,14,56,245,133,133x1:66.290,40.964,72.996,45.010,57.204,26.852,38.122,35.840,75.796,37.408,54.376,46.186,46.130,30.366,39.060,79.380,52.766,55.916x2:7,5,10,6,4,5,4,6
用matlab做一个合适的回归模型,
y:196,63,252,84,126,14,49,49,266,49,105,98,77,14,56,245,133,133
x1:66.290,40.964,72.996,45.010,57.204,26.852,38.122,35.840,75.796,37.408,54.376,46.186,46.130,30.366,39.060,79.380,52.766,55.916
x2:7,5,10,6,4,5,4,6,9,5,2,7,4,3,5,1,8,6
x1与y 存在着二次关系,x2对y有线性关系.
通过那些数据建立一个合适的回归模型,
哪位高手会的麻烦你把要在MATLAB输入的代码和结果转上来
先谢过了

用matlab做一个合适的回归模型,y:196,63,252,84,126,14,49,49,266,49,105,98,77,14,56,245,133,133x1:66.290,40.964,72.996,45.010,57.204,26.852,38.122,35.840,75.796,37.408,54.376,46.186,46.130,30.366,39.060,79.380,52.766,55.916x2:7,5,10,6,4,5,4,6
clear;clc;
y=[...
196,63,252,84,126,14,49,49,266,49,105,98,77,14,56,245,133,133 ];
x1=[
66.290,40.964,72.996,45.010,57.204,26.852,38.122,35.840,75.796,37.408,54.376,46.186,46.130,30.366,39.060,79.380,52.766,55.916 ];
x2=[7,5,10,6,4,5,4,6,9,5,2,7,4,3,5,1,8,6 ];
a=polyfit(x1,y,2)
b=polyfit(x2,y,1)
f1=vpa(poly2sym(a,'x'),4)
f2=vpa(poly2sym(b,'x'),4)
结果:
a =
0.0302 1.7886 -60.5239
b =
13.5218 38.7434
f1 =
.3025e-1*x^2+1.789*x-60.52
f2 =
13.52*x+38.74
>>
楼主怎么没悬赏分啊?怪不得没人做.唉,看到MATLAB题目就冲动,就做回好人吧,

用matlab做一个合适的回归模型,y:196,63,252,84,126,14,49,49,266,49,105,98,77,14,56,245,133,133x1:66.290,40.964,72.996,45.010,57.204,26.852,38.122,35.840,75.796,37.408,54.376,46.186,46.130,30.366,39.060,79.380,52.766,55.916x2:7,5,10,6,4,5,4,6 多元线性回归模型的MATLAB程序 怎么用matlab 做一个地球围绕太阳的模型 利用MATLAB求解这样一个非线性自回归模型,y=ax^2+bx+c ,求系数a,b,c的值,感激不尽其中x=[100 105 96 102] x^2=[10000 11025 9216 10404]y=[105 96 102 101]开始我用曲线拟合的方法做出来结果不对,不用二次拟合的 eviews 回归分析一份计量经济学论文,用eviews软件做一个模型(任意模型),要有回归分析等 急用 用matlab对一组数据的最小二乘法的多元线性回归分析~有3个自变量x1,x2,x3,一个应变量y,求回归模型2.用最小二乘法求解,matlab的程序.求出x1,x2,x3前面的系数和后面的随机变量.数据有10个. 4.显著 关于用matlab对一组数据的最小二乘法的多元线性回归分析~1.有5个自变量x1,x2,x3,一个应变量y,求回归模型2.用最小二乘法求解,matlab的程序.3.数据有10个.4.显著性检验的那些数据要肿么获得呀 谁给我一个MATLAB例子谁给我一个关于风场的MATLAB例子,最好是自回归风速模型的例子, 用matlab做回归的问题举例:y1=[1,3,6,4,9,5,6],y2=[.],y3=[.],.,yn=[.];同样x1,x2.xn也是等长的向量,用x1对y1做线性回归,x2对y2做线性回归.xn对yn做线性回归.就是分别做回归.我用的数据比较多,要是一个一 一个关于如何用matlab进行多元非线性回归的问题我现在只有4组数据 想通过matlab里面的多元非线性回归 得出一个成本模型 其中一个因变量 3个自变量 在matlab里面应该用哪个函数来对这4 怎么用eviews做两个时间序列回归的arma模型x和y是两个时间序列,准备对这两个序列做回归,形式如下图:请问在eviews中怎么实现. 用Eviews做回归分析是,一用加权回归模型的拟合度就特别好,R平方0.9999,使我一度不敢相信模型了 用eviews做回归模型用eviews回归时,为什么它总说,y is not defined?我应该在哪里define y呢? spss多元非线性回归问题有两个自变量S和D,因变量为R,不知道回归模型,怎么能够拟合出一个合适的表达式?二元非线性回归分析 用stata做ols回归后出来的数据分别代表什么?如图 回归模型为Y=B1+B2X+u 各数据分别是什么意思?代表什么?如***(数字)代表残差平方和之类的,谢谢! 用spss做回归分析,模型拟合度50%行吗? 一元二次回归方程 回归系数的F显著性检验已经用y=polyfit(x,y,2)得到一个回归模型,怎么才能用F检验判断这个模型的有效性呢?我试过regress命令了,但是大多数时候p都=0; 如:x=0:0.01:2*pi;L=len 用matlab做一元线性回归怎么做