当前位置: 首页 > news >正文

上海本地网站建设微信网站怎么建设

上海本地网站建设,微信网站怎么建设,网页设计教程入门,进出长春最新规定先PS一个#xff1a;考虑到这次的题目本身的特点 尝试下把说明性内容都直接作为备注写在语句中 另外用于说明的部分例子参考了我的教授Guy Yollin在Financial Data Analysis and Modeling with R这门课课件上的例子 部分参考了相关package的帮助文档中的例子 下面正题- 戌 考虑到这次的题目本身的特点 尝试下把说明性内容都直接作为备注写在语句中 另外用于说明的部分例子参考了我的教授Guy Yollin在Financial Data Analysis and Modeling with R这门课课件上的例子 部分参考了相关package的帮助文档中的例子 下面正题- 戌   # Assume the predetermined significance level is 0.05.假设预定的显着性水平是0.05。 # 1 Shapiro-Wilk Test # Null hypothesis:零假设: # The sample came from a normally distributed population.样本来自正态分布总体 install.packages(stats) library(stats) # args() function displays the argument names and corresponding default values of a function or primitive.args()函数显示一个函数的参数名称和相应的默认值。 args(shapiro.test)function (x) NULL # Example 1: # Test random sample from a normal distribution.测试来自正态分布的随机抽样。 set.seed(1) x - rnorm(150) res - shapiro.test(x) res$p.value # 0.05[1] 0.7885523 # Conclusion: We are unable to reject the null hypothesis.结论我们无法拒绝零假设。 # Example 2: # Test daily observations of SP 500 from 1981-01 to 1991-04.测试SP500指数从1981-01到1991-04的日观察值。 install.packages(Ecdat) library(Ecdat) data(SP500) class(SP500)[1] data.frame SPreturn SP500$r500 # use the $ to index a column of the data.frame用$符号取出数据框中的一列 (res - shapiro.test(SPreturn))        Shapiro-Wilk normality testdata: SPreturnW 0.8413, p-value 2.2e-16 names(res)[1] statistic p.value method data.name res$p.value # 0.05[1] 2.156881e-46 # Conclusion: We should reject the null hypothesis.结论我们应该拒绝零假设。 # 2 Jarque-Bera Test # Null hypothesis: # The skewness and the excess kurtosis of samples are zero.样本的偏度和多余峰度均为零 install.packages(tseries) library(tseries) args(jarque.bera.test)function (x) NULL # Example 1:  # Test random sample from a normal distribution set.seed(1) x - rnorm(150) res - jarque.bera.test(x) names(res)[1] statistic parameter p.value method data.name res$p.value # 0.05X-squared 0.8601533  # Conclusion: We should not reject the null hypothesis.  # Example 2: # Test daily observations of SP 500 from 1981–01 to 1991–04 install.packages(Ecdat) library(Ecdat) data(SP500) class(SP500)[1] data.frame SPreturn SP500$r500 # use the $ to index a column of the data.frame (res - jarque.bera.test(SPreturn))        Jarque Bera Testdata: SPreturnX-squared 648508.6, df 2, p-value 2.2e-16 names(res)[1] statistic parameter p.value method data.name res$p.value # 0.05X-squared         0  # Conclusion: We should reject the null hypothesis. # 3 Correlation Test # Null hypothesis: # The correlation is zero.样本相关性为0 install.packages(stats) library(stats) args(getS3method(cor.test,default))function (x, y, alternative c(two.sided, less, greater),     method c(pearson, kendall, spearman), exact NULL,     conf.level 0.95, continuity FALSE, ...) NULL # x, y: numeric vectors of the data to be testedx, y: 进行测试的数据的数值向量 # alternative: controls two-sided test or one-sided testalternative: 控制进行双侧检验或单侧检验 # method: pearson, kendall, or spearman # conf.level: confidence level for confidence intervalconf.level: 置信区间的置信水平 # Example: # Test the correlation between the food industry and the market portfolio.测试在食品行业的收益和市场投资组合之间的相关性。 data(Capm,packageEcdat) (res - cor.test(Capm$rfood,Capm$rmrf))        Pearsons product-moment correlation皮尔逊积矩相关data: Capm$rfood and Capm$rmrft 27.6313, df 514, p-value 2.2e-16alternative hypothesis: true correlation is not equal to 0备择假设真正的相关性不等于095 percent confidence interval:95%置信区间 0.7358626 0.8056348sample estimates:样本估计      cor 0.7730767  names(res)[1] statistic parameter p.value estimate [5] null.value alternative method data.name [9] conf.int  res$p.value # 0.05[1] 0 # Conclusion: We should reject the null hypothesis.
http://www.zqtcl.cn/news/872862/

相关文章:

  • 网站横幅怎做网站到期不想续费
  • 黑龙江网站备案管理局济南网站建设策划
  • 网站怎么静态化网页设计与制作图片显示不出来
  • 市场营销推广策划方案网站如何做标题优化
  • 怎么让客户做网站手机网站如何优化
  • 柳州市住房和城乡建设局网站首页赣州章贡区人口
  • 有偷菜餐厅城市建设的网站好的手机网站
  • 做进行网站推广赚钱互联网企业信息服务平台
  • 微信公众号做视频网站吗百度账号登录入口网页版
  • 北京建设银行纪念钞预定官方网站撤销网站备案申请书
  • 网站平台策划书安丘市建设局网站
  • 图片类网站建设seol英文啥意思
  • 网站编辑工作好做吗WordPress的图片存在哪
  • 你的网站尚未进行备案为什么网站百度搜不到了
  • 沙洋网站开发网站建设方案免费
  • iis建设网站教程单页面推广网站
  • 东莞网站建设效果郑州企业自助建站系统
  • php做的购物网站系统下载宜州做网站需要多少钱
  • 昆明网上商城网站建设怎么做网站教程视频
  • 网站开发都需要什么移动公司网络维护待遇
  • 计算机网络技术网站建设方向wordpress虚拟货币
  • 小江网站建设公司紧急页面通知升级中访问大通知
  • 那个公司做的网站详情页好看做动态图片的网站吗
  • 旅游网站模板文章wordpress 删除
  • 沛县专业做网站wordpress id重置密码
  • 湖南邵阳建设局网站做外贸一般用什么网站
  • html网站开发主要涉及哪些技术越秀金融大厦地址
  • 北京建设银行网站田村广州室内设计公司排行榜
  • 安徽金路建设集团有限公司网站平面设计班培训入门
  • 小型电子商务网站开发php mysql网站开发教程