什么是广义线性模型以及什么时候使用它们?

资讯 2024-06-27 阅读:85 评论:0
展开全部 原文链接:http://tecdat.cn/?p=20882 Link to original text: http://tecdat.cn/?p=20882  1导言Introducti...
美化布局示例

欧易(OKX)最新版本

【遇到注册下载问题请加文章最下面的客服微信】永久享受返佣20%手续费!

APP下载   全球官网 大陆官网

币安(Binance)最新版本

币安交易所app【遇到注册下载问题请加文章最下面的客服微信】永久享受返佣20%手续费!

APP下载   官网地址

火币HTX最新版本

火币老牌交易所【遇到注册下载问题请加文章最下面的客服微信】永久享受返佣20%手续费!

APP下载   官网地址
展开全部

原文链接:http://tecdat.cn/?p=20882 

Link to original text: http://tecdat.cn/?p=20882 

 

1导言

Introduction

这篇文章探讨了为什么使用广义相加模型 是一个不错的选择。为此,我们首先需要看一下线性回归,看看为什么在某些情况下它可能不是最佳选择。

This article explores why the broad-sum model & nbsp; it's a good choice. To do that, we need to look first at linear regression and see why it may not be the best option in some cases.


2回归模型

2 regression models

假设我们有一些带有两个属性Y和X的数据。如果它们是线性相关的,则它们可能看起来像这样:

Assuming that we have data with two properties Y and X. If they are linear, they may look like this:

a<-ggplot(my_data, aes(x=X,y=Y))+geom_point()+

 

为了检查这种关系,我们可以使用回归模型。线性回归是一种使用X来预测变量Y的方法。将其应用于我们的数据将预测成红线的一组值:

To check this relationship, we can use regression models. Linear regression is a method of using X to predict variable Y. Applying it to a group of values where our data will predict a red line:

a+geom_smooth(col="red", method="lm")+

 

这就是“直线方程式”。根据此等式,我们可以从直线在y轴上开始的位置(“截距”或α)开始描述,并且每个单位的x都增加了多少y(“斜率”),我们将它称为x的系数,或称为β)。还有一点自然的波动,如果没有的话,所有的点都将是完美的。我们将此称为“残差”(ϵ)。数学上是:

This is the straight equation. According to this equation, we can begin with a description of the position where the straight line begins on the y axis (“twice” or alpha), and how much of the x in each unit has been increased y (“slash”), which we call a coefficient of x, or beta. There is also a natural fluctuation, and if not, all points will be perfect. We call it "deficit" (#1013;). Mathematically:

或者,如果我们用实际数字代替,则会得到以下结果:

Alternatively, if we replace them with actual numbers, the following results will be achieved:

 

 

这篇文章通过考虑每个数据点和线之间的差异(“残差)然后最小化这种差异来估算模型。我们在线的上方和下方都有正误差和负误差,因此,通过对它们进行平方并最小化“平方和”,使它们对于估计都为正。这称为“普通最小二乘法”或OLS。

This article estimates the model by considering the difference between each data point and the line (“fragmentation”) and then minimizing the difference. We have positive and negative errors on the upper and lower parts of the web, so they are positive for the estimates by squareding them and minimizing the “square sum”. This is called the “general minimum two times” or OLS.


3非线性关系如何?

How's the non-linear relationship?

因此,如果我们的数据看起来像这样,我们该怎么办:

So if our data looks like this, what do we do:

 

我们刚刚看到的模型的关键假设之一是y和x线性相关。如果我们的y不是正态分布的,则使用广义线性模型 (Nelder&Wedderburn,1972),其中y通过链接函数进行变换,但再次假设f(y)和x线性相关。如果不是这种情况,并且关系在x的范围内变化,则可能不是最合适的。我们在这里有一些选择:

One of the key assumptions of the model we have just seen is related to y and x linearity. If y is not a normal distribution, we use the broad linear model   Neder&Wedderburn, 1972, where y is converted by a link function, but assumes that f(y) and x linearity are related again. If not, and the relationship changes in x range, it may not be the most appropriate. Here we have some options:

美化布局示例

欧易(OKX)最新版本

【遇到注册下载问题请加文章最下面的客服微信】永久享受返佣20%手续费!

APP下载   全球官网 大陆官网

币安(Binance)最新版本

币安交易所app【遇到注册下载问题请加文章最下面的客服微信】永久享受返佣20%手续费!

APP下载   官网地址

火币HTX最新版本

火币老牌交易所【遇到注册下载问题请加文章最下面的客服微信】永久享受返佣20%手续费!

APP下载   官网地址
文字格式和图片示例

注册有任何问题请添加 微信:MVIP619 拉你进入群

弹窗与图片大小一致 文章转载注明

分享:

扫一扫在手机阅读、分享本文

发表评论
平台列表
美化布局示例

欧易(OKX)

  全球官网 大陆官网

币安(Binance)

  官网

火币(HTX)

  官网

Gate.io

  官网

Bitget

  官网

deepcoin

  官网
热门文章
  • 2017年比特币行情走势

    2017年比特币行情走势
    当年比特币行情分析。【小蚂蚁和以太坊】20 17年,比特币持续走强,价格上涨,创下新的历史新高。今年,比特币作为全球范围内的投资对象受到关注和讨论。【比特币信息网络】20 17上半年,比特币价格突破1000美元关口,随后持续上涨,引起了投资者的关注。投资者对比特币的未来充满期待,并希望获得巨大的利益。ZajXXGV0【虚拟货币下跌】随着比特币价格的不断上涨,市场上出现了一场争论。一些人认为比特币泡沫即将破裂,警告投资者谨慎参与。另一方面,其他人确信比特币的价格可能会上涨。oS...
  • Coinbase:财富100强企业过去一年的Web3采用率增长39%

    Coinbase:财富100强企业过去一年的Web3采用率增长39%
    随着比特币、以太坊等主流加密货币在web2世界的认可度变得越来越高,许多web2传统公司也积极拥抱web3,加速采用和开发区块链产品的速度和应用层面。With ˂a style= "max-width": 90%" href=https://m.php.cn/zt/21172.html" target="_blank" bitcoin, ˂a style="color:#f60; text-decoration: unde...
  • 正在阅读:MetaMask-以太坊钱包(浏览器插件)使用教程MetaMask-以太坊钱包(浏览器插件)使用教程

    正在阅读:MetaMask-以太坊钱包(浏览器插件)使用教程MetaMask-以太坊钱包(浏览器插件)使用教程
    简介:MetaMask 是一款浏览器插件钱包,不需下载安装客户端,只需添加至浏览器扩展程序即可使用,非常方便。它是很多支持 ETH 参投的 ICO 项目推荐使用的钱包之一。Introduction: MetaMask is a wallet of ˂a href=http://dl.pconline.com.cn/sort/104.html" target="_blank"crass="cmsLink" browser, not to download and i...
  • 美国可以使用什么加密货币交易所_前10名比特币交易平台名单

    美国可以使用什么加密货币交易所_前10名比特币交易平台名单
    美国可以使用什么加密货币交易所?What is an encrypted currency exchange that the United States can use?随着加密货币的普及,加密货币交易所也越来越多。对于美国的加密货币交易者而言,选择一个可靠、安全且易于使用的交易所是十分重要的事情。那么,美国可以使用哪些加密货币交易所呢?以下是前10名比特币交易平台名单:The choice of a reliable, secure, and easy-to-use...
  • 2015年宝马3系二手车价格多少钱

    2015年宝马3系二手车价格多少钱
    爱你一生不变心6558 2022-04-28 13:20:03 二手车能不能买主要看车况,如果车况好就可以考虑,车况不好价格再低也别考虑,像2015款宝马3系目前行情价是在18.32万这样,如果低...
标签列表