77范文网 - 专业文章范例文档资料分享平台

【原创】r语言股票相关回归分析附代码数据

来源:网络收集 时间:2018-11-27 下载这篇文档 手机版
说明:文章内容仅供预览,部分内容可能不全,需要完整文档或者需要复制内容,请下载word后使用。下载word有问题请添加微信号:或QQ: 处理(尽可能给您提供完整文档),感谢您的支持与谅解。点击这里给我发消息

有问题到淘宝找“大数据部落”就可以了

Read the data into R DATE OPENING.PRICE CLOSING.PRICE TRADING.VOLUME X 1 2017/6/30 25.00 24.97 59561483 NA 2 2017/6/29 25.16 25.16 70695831 NA 3 2017/6/28 25.38 25.00 94632009 NA 4 2017/6/27 26.01 25.54 119838030 NA 5 2017/6/26 24.94 26.48 171118298 NA 6 2017/6/23 21.84 24.07 125118677 NA determine the impact of the various factors Consider the marginal and bivariate distributions

有问题到淘宝找“大数据部落”就可以了

correlation analysis To see the relationships between the different variables, plot the scatter plot between the different variables

OPENING.PRICE CLOSING.PRICE TRADING.VOLUME OPENING.PRICE 1.00000000 0.9808552 0.05470954 CLOSING.PRICE 0.98085525 1.0000000 0.12394699 TRADING.VOLUME 0.05470954 0.1239470 1.00000000 有问题到淘宝找“大数据部落”就可以了

1.ols分析 regression model Regression model A mathematical model that quantitatively describes the statistical relationship. If the mathematical model of multivariate linear regression can be expressed as y = β0 + β1 * x + εi, where β0, β1, ..., βp are p + 1 parameters to be estimated, εi are independent and obey the same normal distribution N (0, σ2), y is a random variable; x can be a random variable or a non-random variable, βi is 有问题到淘宝找“大数据部落”就可以了

called a regression coefficient, and the degree of influence of the independent variable on the dependent variable. Min 1Q Median 3Q Max -124863372 -59073739 -36622088 26385921 899267553 Coefficients: Estimate Std. Error t value Pr(>|t|) (Intercept) 20082859 53991382 0.372 0.71 OPENING.PRICE -70603816 12488065 -5.654 4.53e-08 *** CLOSING.PRICE 73613899 12386847 5.943 1.00e-08 *** --- Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1 Residual standard error: 100800000 on 235 degrees of freedom Multiple R-squared: 0.1333, Adjusted R-squared: 0.1259 F-statistic: 18.06 on 2 and 235 DF, p-value: 5.037e-08 Perform a backward stepwise regression Then I use step regression to find optimal model Start: AIC=8775.09 TRADING.VOLUME ~ (DATE + OPENING.PRICE + CLOSING.PRICE) - DATE Df Sum of Sq RSS AIC 2.3885e+18 8775.1 - OPENING.PRICE 1 3.2488e+17 2.7134e+18 8803.4 - CLOSING.PRICE 1 3.5897e+17 2.7475e+18 8806.4 2.残差诊断

百度搜索“77cn”或“免费范文网”即可找到本站免费阅读全部范文。收藏本站方便下次阅读,免费范文网,提供经典小说综合文库【原创】r语言股票相关回归分析附代码数据在线全文阅读。

【原创】r语言股票相关回归分析附代码数据.doc 将本文的Word文档下载到电脑,方便复制、编辑、收藏和打印 下载失败或者文档不完整,请联系客服人员解决!
本文链接:https://www.77cn.com.cn/wenku/zonghe/313943.html(转载请注明文章来源)
Copyright © 2008-2022 免费范文网 版权所有
声明 :本网站尊重并保护知识产权,根据《信息网络传播权保护条例》,如果我们转载的作品侵犯了您的权利,请在一个月内通知我们,我们会及时删除。
客服QQ: 邮箱:tiandhx2@hotmail.com
苏ICP备16052595号-18
× 注册会员免费下载(下载后可以自由复制和排版)
注册会员下载
全站内容免费自由复制
注册会员下载
全站内容免费自由复制
注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信: QQ: