当前位置:网站首页>Lasso回归(Stata)
Lasso回归(Stata)
2022-08-10 09:27:00 【Wolves_YY】
本文借鉴了数学建模清风老师的课件与思路,可以点击查看链接查看清风老师视频讲解:清风数学建模:https://www.bilibili.com/video/BV1DW411s7wi
前言

一、lasso回归的应用

这里因为Stata里对岭回归有bug,所以就没有岭回归,只演示lasso回归。可以考虑在spsspro里用岭回归。
1.1 案例背景

lasso回归要求变量的量纲必须是统一的,不统一需标准化。
1.2 Stata实现Lasso回归
其中的seed(520)为随机数种子,同机器学习那里一样,因为这里用的是K折交叉验证,每次的数据都是随机的,这样就可以将结果给固定住。
这里可以多尝试几个随机数种子,选择其中MSPE最小的即可。
1.3 Lasso回归结果分析


二、Lasso回归总结

边栏推荐
- shell之函数和数组
- UE4 Sequence添加基础动画效果 (05-蓝图触发Sequence)
- qrcode-----生成二维码
- 2022-08-09 第六小组 瞒春 学习笔记
- ARM Architecture 3: Addressing and Exception Handling of ARM Instructions
- DAY26:GetShell专题
- Nvidia's gaming graphics card revenue plummets / Google data center explosion injures 3 people / iPhone battery percentage returns... More news today is here...
- DAY25: Logic vulnerability recurrence
- [Data Architecture] Distributed Data Grid as a Solution for Centralized Data Monolith
- Flink部署 完整使用 (第三章)
猜你喜欢

08 【Props 组件事件】
![How to use [jmeter regular expression extractor] to solve the problem of returning the value as a parameter](/img/bf/2367304d5bdf520e369097a49a7bb6.png)
How to use [jmeter regular expression extractor] to solve the problem of returning the value as a parameter

FPGA时钟篇(三) MRCC和SRCC的区别

J9数字科普:Web 3.0 是关于数据所有权还是去中心化?

Matlab符号函数的生成及计算其函数值

第三章 搜索与图论(三)
![[OAuth2] 20. OAuth2 Extended Protocol PKCE](/img/ff/37f3be22bf209222cadaf5d11f951a.png)
[OAuth2] 20. OAuth2 Extended Protocol PKCE
![[Data Architecture] Distributed Data Grid as a Solution for Centralized Data Monolith](/img/99/b22268e3e47db9e9caad58722e8709.png)
[Data Architecture] Distributed Data Grid as a Solution for Centralized Data Monolith

PTA 习题2.2 数组循环左移

MySQL的用户临时表与内部临时表
随机推荐
[Metaverse Omi Says] Listen to how Rabbit Fan Rabbit creates a new era of trendy play from virtual to reality
DAY25:逻辑漏洞复现
刷题工具h
Flink运行时架构 完整使用 (第四章)
"Guangzhou highway engineering measures for the supervision and administration of production safety, and revised from six aspects
Docker搭建Mysql一主一从
第三章 搜索与图论(三)
Shell functions and arrays
10 【异步组件 组合式函数(hooks)】
初识Flink 完整使用 (第一章)
FPGA中BEL Site Tile FSR SLR分别指什么?
【Enterprise Architecture】Agile and Enterprise Architecture: Strategic Alliance
Question brushing tool h
BUUCTF problem solving PWN 】 【 record (4-6 pages continuously updated)
ShardingSphere入门
日期类(暑假每日一题 19)
乐观锁与悲观锁
凭借这份阿里架构师的万字面试手册,逆风翻盘,斩获阿里offer
UE4 Sequence添加基础动画效果 (04-在序列中使用粒子效果)
【 WeChat applet 】 read page navigation