- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
统计回归程序(Statistical regression program)
统计回归程序(Statistical regression program)
The tenth chapter statistical regression model
10.1 toothpaste sales
X1=[-0.05; 0.25; 0.60; 0; 0.25; 0.20; 0.15; 0.05; -0.15; 0.15; 0.20; 0.10; 0.40; 0.45; 0.35; 0.30; 0.50; 0.50; 0.40; -0.05; -0.05; -0.10; 0.20; 0.10; 0.50; 0.60; 0; 0.05; -0.05; 0.55];
Y=[7.38; 8.51; 9.52; 7.50; 9.33; 8.28; 8.75; 7.87; 7.10; 8; 7.89; 8.15; 9.10; 8.86; 8.90; 8.87; 9.26; 9; 8.75; 7.95; 7.65; 7.27; 8; 8.50; 8.75; 9.21; 8.27; 7.67; 7.93; 9.26];
C=[78; 81; 92; 75; 33; 28; 875; 787; 710; 800; 789; 815; 910; 886; 890; 887; 926; 900; 875; 795; 765; 727; 800; 850; 875; 921; 827; 767; 793; 926];
Aa=polyfit (x1, y, 1);
Y1=polyval (AA, x1);
Scatter (x1, y, 88, C, *)
Hold on
Plot (x1, Y1)
Hold off
Figure 1:Y% vs. X1 scatter diagram
X3=[ones (30,1), x1];
[b, bint, R, rint, stats]=regress (y, x3)
X2=[5.50; 6.75; 7.25; 5.50; 7; 6.50; 6.75; 5.25; 5.25; 6; 6.50; 6.25; 7; 6.90; 6.80; 6.80; 7.10; 7; 6.80; 6.50; 6.25; 6; 6.50; 7; 6.80; 6.80; 6.50; 5.75; 5.80; 6.80];
Y=[7.38; 8.51; 9.52; 7.50; 9.33; 8.28; 8.75; 7.87; 7.10; 8; 7.89; 8.15; 9.10; 8.86; 8.90; 8.87; 9.26; 9; 8.75; 7.95; 7.65; 7.27; 8; 8.50; 8.75; 9.21; 8.27; 7.67; 7.93; 9.26];
Bb=polyfit (X2, y, 2);
X4=5.25:0.05:7.25;
Y2=polyval (BB, X4);
Plot (X2, y,ro, x4, Y2)
Figure 2:Y% vs. X2 scatter diagram
X5=[ones (30,1), X2, x2.^2];
[b, bint, R, rint, stats]=regress (y, x5)
X6=[ones (30,1), x1, X2, x2.^2];
[b, bint, R, rint, stats]=regress (y, x6)
Table 2%
X7=[ones (30,1), x1, X2, x2.^2, x1.*x2];
[b, bint, R, rint, stats]=regress (y, X7)
Table 3%
X1=[-0.05; 0.25; 0.60; 0; 0.25; 0.20; 0.15; 0.05; -0.15; 0.15; 0.20; 0.10; 0.40; 0.45; 0.35; 0.30; 0.50; 0.50; 0.40; -0.05; -0.05; -0.10; 0.20; 0.10; 0.50; 0.60; 0; 0.05; -0.05; 0.55];
Ytu3=17.3244+1.307*x1+ (-3.6956) *6.5+0.3486*6.5*6.5;
Plot (x1, ytu3)
Grid on
Figure 3%
X1=[-0.05; 0.25; 0.60; 0; 0.25; 0.20; 0.15; 0.05; -0.15; 0.15; 0.20; 0.10; 0.40; 0.45; 0.35; 0.30; 0.50; 0.50; 0.40; -0.05; -0.05; -0.10; 0.20; 0.10; 0.50; 0.60; 0; 0.05; -0.05; 0.55];
Ytu4=29.1133+11
您可能关注的文档
- 第十章 公安警务保障与公安效益评价(Public security and public security evaluation in Chapter tenth).doc
- 第十章 农业合作经济组织(The tenth chapter of agricultural cooperation economic organization).doc
- 第十章 泌尿系统疾病(The tenth chapter urinary system diseases).doc
- 第十章 酰基化(The tenth chapter acylation).doc
- 第十章电分析化学导论(The tenth chapter analysis of electrical chemistry).doc
- 第十节 套期保值管理体系组织结构(The tenth section organization management system structure of hedging hedging).doc
- 第四届教育艺术节开幕式暨文艺汇演主持串词(The Fourth Art Festival opening ceremony and art show host string).doc
- 第十讲 导数题的解题技巧(The tenth derivative question).doc
- 第四届文鼎创杯华中地区大学生数学建模邀请赛a题附录(The fourth session of the dingchuang Cup tournament in Central China Undergraduate Mathematical Modeling a title.).doc
- 第十节 注重业绩实效但不急功近利(The tenth section focus on the effectiveness of performance but not instant success).doc
- 继电保护多选题集(In the multi selection of relay protection).doc
- 继续备考(To pro forma).doc
- 继续活着(live on).doc
- 绩效管理的成功取决于过程(Success depends on the process of performance management).doc
- 绩效管理要管出实际得效益(Performance management to pipe actual benefit).doc
- 绩效管理要管出实际效益(To manage the actual benefits of performance management).doc
- 绩效改进没有终点的长征(Performance improvement no end point of the long march).doc
- 绩效管理,hr经理的第二次创业(Performance management, second business manager hr).doc
- 给男(女)朋友的生日祝福语(To male (female) friends birthday greetings).doc
- 绩效管理高级研修班(Senior class performance management).doc
文档评论(0)