回归二次拟合.docx
- 文档编号:6996651
- 上传时间:2023-01-15
- 格式:DOCX
- 页数:16
- 大小:18.89KB
回归二次拟合.docx
《回归二次拟合.docx》由会员分享,可在线阅读,更多相关《回归二次拟合.docx(16页珍藏版)》请在冰豆网上搜索。
回归二次拟合
10种小家电产量与成本关系表
>>x=[135710152025303540];
y1=[924.339.653.5572.9102.6129.6153175.5195.3208.8];
y2=[9.826.4643.1258.3179.38111.7141.2166.6191.1208.3227.4];
y3=[10.227.5444.8860.6982.62116.3146.9173.4198.9221.3236.6];
y4=[2366.55104.6140.1188.6265.7335.8391441.6491.1515.2];
y5=[26.575.52120.6161.4217.3298.1386.9450.5508.8565.8593.6];
y6=[27.277.52123.6165.6223.1314.2397.1462.4522.2580.7609.3];
y7=[2879.8126166.6224315380.8434462509.6560];
y8=[3085.5135178.5240337.5408465495546600];
y9=[31.790.3142.6188.6253.6356.6431.1491.3523.1576.9634];
y10=[32.592.146.2193.4260365.6442503.7536.2591.5650];
>>T=[ones(11,1),x',(x.^2)'];
[b1,bint,r,rint,stats]=regress(y1',T)
[b2,bint,r,rint,stats]=regress(y2',T)
[b3,bint,r,rint,stats]=regress(y3',T)
[b4,bint,r,rint,stats]=regress(y4',T)
[b5,bint,r,rint,stats]=regress(y5',T)
[b6,bint,r,rint,stats]=regress(y6',T)
[b7,bint,r,rint,stats]=regress(y7',T)
[b8,bint,r,rint,stats]=regress(y8',T)
[b9,bint,r,rint,stats]=regress(y9',T)
[b10,bint,r,rint,stats]=regress(y10',T)
b1=
2.4845
7.5807
-0.0603
bint=
0.96404.0049
7.37987.7815
-0.0652-0.0554
r=
-1.0048
-0.3838
0.7196
0.9555
0.6388
-0.0271
-0.3780
-1.3138
-0.1346
1.3595
-0.4313
rint=
-2.54250.5328
-2.32221.5546
-1.25352.6928
-0.98732.8983
-1.39692.6745
-2.06002.0058
-2.33211.5762
-2.96060.3330
-2.17901.9097
-0.18612.9052
-1.70490.8424
stats=
1.0e+004*
0.00012.91890.00000.0001
b2=
2.7346
8.2675
-0.0670
bint=
0.99164.4776
8.03738.4977
-0.0727-0.0614
r=
-1.1351
-0.4739
0.7236
0.9873
0.6732
0.0344
-0.0730
-0.9289
0.6666
-1.6863
1.2122
rint=
-2.90610.6359
-2.69071.7429
-1.56463.0118
-1.27803.2525
-1.67393.0204
-2.29602.3648
-2.34392.1978
-3.08111.2232
-1.60782.9411
-3.3670-0.0057
0.11612.3082
stats=
1.0e+004*
0.00012.59740.00000.0001
b3=
2.8063
8.5944
-0.0684
bint=
1.09304.5196
8.36818.8207
-0.0740-0.0629
r=
-1.1322
-0.4335
0.8128
1.0765
0.7136
-0.0237
-0.4191
-1.4928
-0.1445
1.5255
-0.4826
rint=
-2.86490.6005
-2.61751.7506
-1.41023.0357
-1.11283.2658
-1.58173.0089
-2.31442.2671
-2.62211.7838
-3.34090.3554
-2.44852.1595
-0.22043.2715
-1.91860.9535
stats=
1.0e+004*
0.00012.95200.00000.0001
b4=
6.7665
20.0371
-0.1819
bint=
1.616911.9161
19.356920.7173
-0.1985-0.1652
r=
-3.6218
1.3089
2.1946
1.9853
-0.3507
-0.7025
1.0394
-3.0253
-2.5963
5.8262
-2.0578
rint=
-8.71641.4729
-5.25487.8727
-4.55208.9412
-4.96178.9322
-7.49206.7906
-7.56076.1558
-5.61107.6897
-9.28613.2355
-9.15223.9596
1.616010.0363
-6.18232.0668
stats=
1.0e+004*
0.00011.56570.00000.0010
b5=
7.8851
22.8783
-0.2038
bint=
0.434415.3358
21.894223.8625
-0.2279-0.1797
r=
-4.0596
0.8343
3.4186
3.3535
1.0131
-7.1018
2.9740
-1.9595
-2.0023
6.8456
-3.3158
rint=
-11.97633.8571
-8.777410.4459
-6.280013.1172
-6.583813.2909
-9.291011.3171
-14.90780.7041
-6.384512.3325
-11.63907.7200
-11.88397.8793
-0.603314.2945
-9.14622.5146
stats=
1.0e+003*
0.00109.94240.00000.0208
b6=
7.5642
23.7317
-0.2157
bint=
1.601613.5269
22.944124.5193
-0.2351-0.1964
r=
-3.8802
0.7024
2.7709
2.4854
-0.2066
-0.7967
1.2007
-3.6146
-3.1424
6.8171
-2.3359
rint=
-9.94002.1796
-6.98738.3920
-4.981310.5231
-5.516110.4869
-8.48108.0678
-8.73907.1457
-6.50008.9013
-10.82213.5930
-10.69144.4065
2.018011.6162
-7.12922.4573
stats=
1.0e+004*
0.00011.63540.00000.0013
b7=
15.4914
22.7827
-0.2396
bint=
-4.000934.9838
20.208025.3573
-0.3027-0.1765
r=
-10.0345
-1.8830
2.5853
3.3703
4.6420
11.6786
5.4952
-1.3082
-21.3317
-9.7752
16.5613
rint=
-30.966910.8979
-27.047023.2810
-23.862629.0331
-23.569030.3097
-22.109831.3937
-12.314635.6718
-19.454530.4449
-26.997324.3809
-39.8653-2.7981
-33.245013.6946
7.535025.5875
stats=
1.0e+003*
0.00101.18790.00000.1421
b8=
16.5980
24.4100
-0.2567
bint=
-4.286737.4826
21.651427.1686
-0.3243-0.1891
r=
-10.7513
-2.0175
2.7699
3.6111
4.9735
12.5128
5.8877
-1.4017
-22.8554
-10.4734
17.7442
rint=
-33.178811.6763
-28.979024.9440
-25.567031.1069
-25.252532.4747
-23.689133.6362
-13.194338.2198
-20.844132.6195
-28.925726.1224
-42.7128-2.9980
-35.619614.6727
8.073227.4152
stats=
1.0e+003*
0.00101.18790.00000.1632
b9=
17.5138
25.7934
-0.2713
bint=
-4.535539.5630
22.880928.7058
-0.3427-0.1998
r=
-11.3359
-2.1526
2.9007
3.8240
5.2777
13.2173
6.2194
-1.5160
-24.0888
-11.0991
18.7532
rint=
-35.019412.3477
-30.616126.3110
-27.018132.8195
-26.647934.2959
-24.979635.5350
-13.920740.3552
-22.002534.4412
-30.573427.5414
-45.0893-3.0883
-37.634215.4361
8.570328.9361
stats=
1.0e+003*
0.00101.19000.00000.1819
b10=
17.7686
26.4602
-0.2784
bint=
-4.892440.4296
23.467029.4534
-0.3518-0.2050
r=
-11.4504
-2.6436
3.0904
4.0515
5.4692
13.5679
6.3864
-1.5751
-24.8169
-11.3387
19.2592
rint=
-35.863012.9623
-31.869726.5825
-27.650333.8311
-27.254135.3572
-25.621636.5601
-14.329041.4648
-22.619335.3922
-31.438128.2878
-46.3479-3.2859
-38.631715.9542
8.773829.7447
stats=
1.0e+003*
0.00101.18490.00000.1921
每种小家电的宣传费用随着销售量变化、每种小家电的销售额随订购量变化、企业向营销部发放计划内销售产品的经费、计划外销售部分营销部向企业缴纳利润
0.0003*x1*x1*x1-0.2720*x1*x1+11.4429*x1+1.3576+0.0078*x2*x2*x2-0.4139*x2*x2+12.8769*x2+1.2185+0.0165*x3*x3*x3-0.5603*x3*x3+13.9414*x3+0.7558+0.0682*x4*x4*x4-1.9654*x4*x4+36.0104*x4-2.0803+
0.0584*x5*x5*x5-1.9019*x5*x5+39.7564*x5-0.5955+0.0783*x6*x6*x6-2.2395*x6*x6+41.9655*x6-1.5942+0.1045*x7*x7*x7-2.7425*x7*x7+44.6484*x7-3.1439+0.0985*x8*x8*x8-2.7237*x8*x8+46.9763*x8-2.6833+
0.1870*x9*x9*x9-4.3020*x9*x9+55.7898*x9-9.0291+0.1048*x10*x10*x10-2.9051*x10*x10+50.6082*X10-2.7303+
(0.0070*(x1-t1)*(x1-t1)*(x1-t1)-0.2024*(x1-t1)*(x1-t1)+2.3288*(x1-t1)-0.0140+
0.0101*(x2-t2)*(x2-t2)*(x2-t2)-0.2572*(x2-t2)*(x2-t2)+2.6463*(x2-t2)-0.0346+
0.0189*(x3-t3)*(x3-t3)*(x3-t3)-0.3986*(x3-t3)*(x3-t3)+3.2644*(x3-t3)-0.4915+
0.0293*(x4-t4)*(x4-t4)*(x4-t4)-0.7339*(x4-t4)*(x4-t4)+7.0365*(x4-t4)-0.8632+
0.0367*(x5-t5)*(x5-t5)*(x5-t5)-0.8843*(x5-t5)*(x5-t5)+8.2061*(x5-t5)-0.8670+
0.0353*(x6-t6)*(x6-t6)*(x6-t6)-0.8619*(x6-t6)*(x6-t6)+8.1866*(x6-t6)-0.5205+
0.0387*(x7-t7)*(x7-t7)*(x7-t7)-0.9269*(x7-t7)*(x7-t7)+8.5683*(x7-t7)-0.9010+
0.0435*(x8-t8)*(x8-t8)*(x8-t8)-1.0373*(x8-t8)*(x8-t8)+9.4151*(x8-t8)-1.3150+
0.0446*(x9-t9)*(x9-t9)*(x9-t9)-1.0910*(x9-t9)*(x9-t9)+9.9706*(x9-t9)-1.4294+
0.0498*(x10-t10)*(x10-t10)*(x10-t10)-1.1772*(x10-t10)*(x10-t10)+10.4393*(x10-t10)-1.6511)-
(0.0001*t1*t1*t1-0.0136*t1*t1+0.8422*t1+1.8398+0.0002*t2*t2*t2-0.0163*t2*t2+0.9403*t2+1.9451+
0.0001*t3*t3*t3-0.0153*t3*t3+0.9539*t3+2.0766+0.0003*t4*t4*t4-0.0363*t4*t4+2.1923*t4+4.9782+
0.0003*t5*t5*t5-0.0385*t5*t5+2.4607*t5+5.8576+0.0004*t6*t6*t6-0.0437*t6*t6+2.6104*t6+5.7752+
0.0010*t7*t7*t7-0.0844*t7*t7+3.1029*t7+4.9506+0.0011*t8*t8*t8-0.0906*t8*t8+3.3277*t8+5.2847+
0.0011*t9*t9*t9-0.0954*t9*t9+3.5112*t9+5.5989+0.0012*t10*t10*t10-0.0984*t10*t10+3.6110*t10+5.6761)-
(0.0002*x1*x1*x1-0.0735*x1*x1+7.7904*x1+1.8542+0.0005*x2*x2*x2-0.0949*x2*x2+8.7093*x2+1.4070+0.0002*x3*x3*x3-0.0834*x3*x3+8.8314*x3+2.0939+0.0004*x4*x4*x4-0.2036*x4*x4+20.3812*x4+5.7324-0.0000*x5*x5*x5-0.2010*x5*x5+22.8334*x5+8.0202+0.0005*x6*x6*x6-0.2436*x6*x6+24.1736*x6+6.2363+0.0065*x7*x7*x7-0.6369*x7*x7+29.0853*x7-3.4501+0.0070*x8*x8*x8-0.6824*x8*x8+31.1628*x8-3.6965+0.0073*x9*X9*x9-0.7210*x9*x9+32.9269*x9-3.9249+0.0076*x10*x10*x10-0.7409*x10*x10+33.7974*x10-4.2823);
model:
max=
-0.2671*x1*x1+11.4183*x1+1.3873-0.2744*x2*x2+12.1778*x2+2.0648-0.2631*x3*x3+12.4521*x3+2.5588-0.7378*x4*x4+29.8586*x4+5.3673
-0.8512*x5*x5+34.4913*x5+5.7788-0.8301*x6*x6+34.9027*x6+6.9564-0.8611*x7*x7+35.2201*x7+8.2703-0.9499*x8*x8+38.0877*x8+8.0776
-0.9355*x9*x9+38.9202*x9+11.3939-1.0184*x10*x10+41.1537*x10+8.7158+
(-0.0756*(x1-t1)*(x1-t1)+1.6933*(x1-t1)+0.7554
-0.0763*(x2-t2)*(x2-t2)+1.7398*(x2-t2)+1.0628
-0.0591*(x3-t3)*(x3-t3)+1.5629*(x3-t3)+1.5684
-0.2061*(x4-t4)*(x4-t4)+4.3918*(x4-t4)+2.3385
-0.2230*(x5-t5)*(x5-t5)+4.8920*(x5-t5)+3.1453
-0.2263*(x6-t6)*(x6-t6)+5.0031*(x6-t6)+3.3284
-0.2302*(x7-t7)*(x7-t7)+5.0769*(x7-t7)+3.3259
-0.2549*(x8-t8)*(x8-t8)+5.4943*(x8-t8)+3.4316
-0.2878*(x9-t9)*(x9-t9)+5.9454*(x9-t9)+3.4438
-0.2806*(x10-t10)*(x10-t10)+5.9462*(x10-t10)+3.7885
)-
(-0.0058*t1*t1+0.7178*t1+2.2137-0.0066*t2*t2+0.7858*t2+2.4092
-0.0067*t3*t3+0.8178*t3+2.4855-0.0177*t4*t4+1.8979*t4+5.8632
-0.0198*t5*t5+2.1646*t5+6.7475-0.0211*t6*t6+2.2510*t6+6.8553
-0.0231*t7*t7+2.1299*t7+7.8747-0.0248*t8*t8+2.2839*t8+8.4219
-0.0262*t9*t9+2.4125*t9+8.9007-0.0269*t10*t10+2.4774*t10+9.0828)-
(-0.0603*x1*x1+7.5807*x1+2.4845-0.0670*x2*x2+8.2675*x2+2.7346-0.0684*x3*x3+8.5944*x3+2.8063-0.1819*x4*x4+20.0371*x4+6.7665-0.2038*x5*x5+22.8783*x5+7.8851
-0.2157*x6*x6+23.7317*x6+7.5642-0.2396*x7*x7+22.7827*x7+15.4914-0.2567*x8*x8+24.4100*x8+16.5980-0.2713*x9*x9+25.7934*x9+17.5138-0.2784*x10*x10+26.4602*x10+17.7686);
x1+x2+x3<=50;
x4+x5+x6<=65;
x7+x8+x9+x10<=62;
t1<=11;
t2<=23;
t3<=12;
t4<=15;
t5<=25;
t6<=17;
t7<=15;
t8<=27;
t9<=13;
t10<=9;
8<=t1;
20<=t2;
10<=t3;
10<=t4;
20<=t5;
15<=t6;
11<=t7;
17<=t8;
10<=t9;
5<=t10;
t1<=x1;
t2<=x2;
t3<=x3;
t4<=x4;
t5<=x5;
t6<=x6;
t7<=x7;
t8<=x8;
t9<=x9;
t10<=x10;
x1-t1<=4;
x2-t2<=4;
x3-
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 回归 二次 拟合
![提示](https://static.bdocx.com/images/bang_tan.gif)