• 大小: 1KB
    文件类型: .rar
    金币: 2
    下载: 1 次
    发布日期: 2021-09-08
  • 语言: Matlab
  • 标签: 岭回归  

资源简介

适合提供给需要做岭回归分析的朋友,欢迎大家下载!

资源截图

代码片段和文件信息

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
clc
clear all
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%假设某种水泥在凝固时所释放的热量与水泥中的四种成分x1x2x3x4有关,一共有13组观测数据,最小二乘法进行回归 
%求得x1x2x3x4与y之间的关系
x=[726660;%输入数据
1291552;
1156820;
1131847;
752633;
1155922;
371176;
1312244;
2541822;
2147426;
1402334;
1166912;
1068812];
y=[78.574.3104.387.695.9109.2102.772.593.1115.983.8113.3109.4];%输出数据
y=y.‘;
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
[selxselyindexnr]=lasso(xy)

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件        692  2010-01-21 10:21  岭回归\lhgdyzjc.m

     文件       1379  2010-01-21 10:21  岭回归\linghuiguic.m

     目录          0  2010-01-21 10:19  岭回归

----------- ---------  ---------- -----  ----

                 2071                    3


评论

共有 条评论