问题标签 [linear-regression]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
matlab - How to use aryule() in Matlab to extend a number series?
I have a series of numbers. I calculated the "auto-regression" between them using Yule-Walker method.
But now how do I extend the series?
Whole working is as follows:
a) the series I use:
143.85 141.95 141.45 142.30 140.60 140.00 138.40 137.10 138.90 139.85 138.75 139.85 141.30 139.45 140.15 140.80 142.50 143.00 142.35 143.00 142.55 140.50 141.25 140.55 141.45 142.05
b) this data is loaded in to data using:
c) the calculation of the coefficients:
this gives:
d) Now using this, how do I calculate the next number in the series?
[any other method of doing this (except using aryule()) is also fine... this is what I did, if you have a better idea, please let me know!]
statistics - 线性回归与SPSS中的普通最小二乘法一样吗?
我想使用线性回归模型,但我想使用普通的最小二乘法,我认为这是一种线性回归。我使用的软件是SPSS。它只有线性回归、偏最小二乘和两阶段最小二乘。我不知道哪一个是普通最小二乘法(OLS)。
statistics - 如何对 BIRT 报告进行线性回归?
如何在 BIRT 报告中显示的图表上进行线性回归。我有 x 和 y 数据...但我在 eclipse BIRT 上没有看到任何函数来生成线性回归...
任何想法 ?
非常感谢
r - include error terms in linear regression model
I was wondering if there is a way to include error terms for a linear regression model like:
r - 如何在 R 中拟合具有两个主成分的线性回归模型?
假设我有一个数据矩阵 d
那么这应该适合线性回归模型吧?
但后来我得到这个错误:
我想那里有一个包可以自动执行此操作,但这也应该有效吗?
r - 如何在R中分离线性回归图?
对于具有 2 个变量的线性模型
当我运行时 plot(r)
,我会得到一堆图,例如残差与拟合值等,但我一次只能查看其中一个。
没有办法将它们分开吗?
big-o - 什么是线性回归的 BigO?
尝试对多大的系统进行线性回归是合理的?
具体来说:我有一个具有约 300K 样本点和约 1200 个线性项的系统。这在计算上可行吗?
matlab - 最佳拟合线散点图
我正在尝试在 matlab 中使用一条最适合的线绘制散点图,我可以使用 scatter(x1,x2) 或 scatterplot(x1,x2) 获得散点图,但基本拟合选项被遮蔽并且 lsline 返回错误'找不到允许的线型。什么都没做'
任何帮助都会很棒,
谢谢,乔恩。
r - 从数据/系数创建 lm 对象
有谁知道给定数据集和系数可以创建 lm 对象的函数?
我对此很感兴趣,因为我开始使用贝叶斯模型平均 (BMA),并且我希望能够根据 bicreg 的结果创建一个 lm 对象。我想访问所有不错的通用 lm 函数,如诊断绘图、预测、cv.lm 等。
如果您很确定这样的功能不存在,那么了解这一点也很有帮助!
mysql - Mysql multivariable linear regression
I am trying to do a multivarible (9 variables) linear regression on data in my mysql 5.0 database (the result value field only has 2 possible values, 1 and 0).
I've done some searching and found I can use:
To get at many of the basic regression variables, but I really don't want to type out doing this for every combination of the 9 variables. All of the sources I can find about how to do regression on multi variables requires Matrix operations. Can I do Matrix operations with mysql, or are there other ways to do a 9 variable linear regression?
Should I export the data out of mysql first? Its ~80,000 rows, so it would be alright to move it, just not sure what else I should use.
Thanks, Dan