A题程序文件.docx
- 文档编号:4362795
- 上传时间:2022-11-30
- 格式:DOCX
- 页数:11
- 大小:48.49KB
A题程序文件.docx
《A题程序文件.docx》由会员分享,可在线阅读,更多相关《A题程序文件.docx(11页珍藏版)》请在冰豆网上搜索。
A题程序文件
程序文件
程序1.
对各组葡萄酒得分情况做正态分布的检测
第一组红葡萄总评分:
yr1=[68.37574.1257571.3757265.756665.87578.1256862.12568.37568.87572.565.62569.87574.87564.62572.257672.12571.57771.37567.12571.87571.25];
[Nr1,Yr1]=hist(yr1,30)
subplot(221)
hist(yr1,30)
holdon
hr1=normplot(yr1
[muhat,sigmahat,muci,sigmaci]=normfit(yr1,0.05)
mean(yr1)
median(yr1)
std(yr1)
skewness(yr1)
kurtosis(yr1)
Nr1=
Columns1through11
10001022010
Columns12through22
31010044100
Columns23through30
11101101
Yr1=
Columns1through6
62.391762.925063.458363.991764.525065.0583
Columns7through12
65.591766.125066.658367.191767.725068.2583
Columns13through18
68.791769.325069.858370.391770.925071.4583
Columns19through24
71.991772.525073.058373.591774.125074.6583
Columns25through30
75.191775.725076.258376.791777.325077.8583
hr1=
278.0011
277.0011
276.0011
muhat=
70.4444
sigmahat=
4.0304
muci=
68.8501
72.0388
sigmaci=
3.1740
5.5234
ans=
70.4444
ans=
71.3750
ans=
4.0304
ans=
-0.0464
ans=
2.3184
程序2.
两组配对葡萄酒T检验
yr1=[62.87574.1257571.3757265.756665.87578.1256862.12568.37568.87572.565.12569.87574.87564.12572.257672.12571.57771.37567.12571.87571.25];
yr2=[68.37574.1257571.3757265.756665.87578.1256862.12568.37568.87572.565.62569.87574.87564.62572.257672.12571.57771.37567.12571.87571.25];
yw1=[82.7575.580.12579.6257269.12578.2571.573.12576.12573.563.62566.7573.2573.62574.2579.87574.6257278.7577.7571.37576.12573.2577.12581.7565.37582.25];
yw2=[77.62576.757877.2580.7575.87574.37572.758280.12571.37574.12574.62577.12579.12567.12580.87576.2577.1257780.7579.62577.2576.37581.37574.87577.12579.5];
[h1,sig1,ci1]=ttest2(yr1,yr2)
[h2,sig2,ci2]=ttest2(yw1,yw2)
h1=
0
sig1=
0.8331
ci1=
-2.52202.0405
h2=
1
sig2=
0.0462
ci2=
-4.5136-0.0400
程序3.求解葡萄和葡萄酒理化指标的影响关系
以求解Y3为例
X1=[2027.962128.828397.282144.681844.003434.172391.161950.762262.721364.142355.692556.791416.111237.812177.911553.501713.652398.382463.602273.636346.832566.612380.811638.831409.70851.171116.61]';
X2=[553.11626.48585.05529.82585.61536.64487.17558.55700.83545.31542.66493.46606.20599.83524.61583.37548.83513.82544.46559.33563.79488.71543.57525.82537.08587.29528.33]';
X3=[0.250.060.320.100.040.070.130.180.5110.250.080.060.020.060.070.080.060.110.070.020.050.070.100.030.060.420.09]';
X4=[408.03224.37157.9479.69120.6146.1960.77241.40240.8444.207.7932.3465.32140.2652.7960.6659.4240.23115.7023.5289.2874.03172.63144.8849.6458.4734.19]';
X5=[2.069.938.083.779.492.835.825.7113.232.459.296.084.305.736.239.035.883.605.563.5115.516.494.088.362.877.156.23]';
X6=[18.214.752.965.233.772.217.7413.554.122.308.615.330.834.123.637.285.115.594.270.922.937.735.204.602.481.401.39]';
X7=[1.830.771.050.551.440.000.542.511.100.241.901.131.151.632.062.380.880.520.130.442.380.770.391.700.160.821.26]';
X8=[33.7530.9019.3015.5331.5436.7725.5950.4316.8710.4314.2621.0828.0841.5825.7413.6517.1727.0830.4112.4418.1221.8216.4115.0714.2832.0323.03]';
X9=[1119.85762.52266.6472.90143.51115.94433.751305.59424.11459.5791.47132.2299.88991.05158.00529.97129.58158.87202.9689.77194.26417.67427.03144.73140.9582.36592.20]';
X10=[0.430.460.410.270.400.280.180.410.670.330.280.200.440.360.220.240.360.230.380.280.380.280.570.280.350.320.26]';
X11=[23.6026.8821.6810.7017.6210.679.2115.2430.119.486.0712.0614.3914.6611.9011.2115.347.3817.4312.6816.1916.4429.708.7511.507.358.90]';
X12=[22.0223.3620.378.6414.4915.175.6222.4924.3616.694.547.179.8213.9425.4210.0915.735.3913.708.1113.6112.1624.2614.429.323.7810.31]';
X13=[9.4813.8110.794.4810.276.843.478.4820.494.632.523.907.337.815.519.168.705.249.458.167.517.8524.298.215.373.384.71]';
X14=[3.204.894.763.410.642.200.625.954.9112.3126.850.7010.866.310.214.560.710.423.821.557.854.299.972.932.132.091.57]';
X15=[17.6827.46164.9926.976.657.739.86115.5558.5428.7525.582.4840.76134.649.728.1943.816.5231.269.6347.2213.8044.7514.3830.2113.9215.98]';
X16=[208.17205.00256.19189.72209.66244.38209.86198.85193.69167.20209.56247.66197.86191.51179.11204.01212.74226.03205.79193.19205.79224.15207.68201.83150.34173.35196.67]';
X17=[237.67229.14273.76237.77195.46223.82303.95196.99194.93161.42237.89262.15212.24255.34208.93189.28271.50265.77220.33227.34259.11226.40212.56244.51156.04197.38213.22]';
X18=[226.47228.80257.63203.33212.93246.13211.37226.47203.37181.23210.20261.10203.37193.87214.87205.63238.20226.57214.90209.10216.90234.70208.77203.33194.63195.73206.90]';
X19=[3.563.953.913.293.643.293.182.923.743.653.533.433.863.393.193.303.433.273.573.813.563.653.393.613.383.683.37]';
X20=[5.865.197.167.116.659.318.146.475.886.675.508.544.345.408.574.928.668.036.815.176.785.976.917.278.534.586.97]';
X21=[38.6644.0535.9928.6132.0026.4325.9834.9934.5827.1638.2430.5823.7535.9025.0941.7627.5128.2131.5440.4831.9939.3630.2327.9822.8142.7429.67]';
X22=[25.9225.9929.0023.7224.0827.3826.4425.6223.7619.6824.5327.6123.3524.0625.0122.3526.2826.3423.4422.9326.9525.6723.3825.8218.5219.7623.33]';
X23=[182.9381.6283.13137.97515.46202.2463.61213.09186.62255.44177.83191.95159.97209.11159.31119.17446.64196.01173.09307.14147.66106.61278.75517.45288.69793.47282.09]';
X24=[123.6398.30105.40174.70254.23171.97168.83181.07138.07200.80118.80187.73147.97136.27174.47109.33264.10208.40168.83334.30106.10115.83219.07237.37251.30245.50148.73]';
X25=[4.513.835.603.262.992.644.786.415.314.593.412.404.674.602.903.792.802.606.323.154.743.323.842.994.103.353.51]';
X26=[78.4077.5071.8352.9765.6371.9371.5059.5777.9771.7058.4163.3068.1066.1567.7071.8371.5363.0767.4359.5360.4057.4377.4776.7358.5068.3059.50]';
X27=[0.110.160.170.170.270.190.140.260.130.200.100.240.160.260.210.140.330.160.160.230.110.150.230.250.220.230.20]';
X28=[24.0726.0725.5025.9826.3325.1625.6126.8523.8127.1028.0326.5727.5325.4125.5326.1125.4025.5227.1927.0925.1825.9426.6525.9727.1028.0028.79]';
X29=[0.780.651.091.840.881.812.050.801.442.1712.152.041.041.191.981.331.182.870.801.961.211.521.380.901.521.092.33]';
X30=[0.26-1.25-0.62-0.37-0.33-0.16-0.38-0.51-0.38-1.123.870.01-1.57-0.57-0.01-0.34-0.250.21-1.51-0.430.00-0.07-0.42-0.29-0.92-0.83-1.23]';
X=[X1X2X3X4X5X6X7X8X9X10X11X12X13X14X15X16X17X18X19X20X21X22X23X24X25X26X27X28X29X30];
Y=[11.0311.0813.266.485.857.354.0112.0312.935.574.596.466.386.073.984.839.174.455.985.8610.097.1110.895.755.413.615.96]';
stepwise(X,Y)
运行图表如下:
程序4葡萄酒的质量与葡萄酒和葡萄的影响关系求解
以白葡萄酒质量求法为例:
X1=[1279.301870.935022.142085.762658.041847.121721.581273.221927.422095.611566.971724.16664.961542.172669.22991.921167.291289.93817.812045.241554.021457.671522.523068.342350.792073.332475.213785.57]';
X2=[496.46538.45467.24496.20467.20499.08560.34493.74482.86515.76557.44457.65459.40524.86546.45464.82416.88581.91455.68479.93585.36402.16505.34629.80516.86496.84642.37450.46]';
X3=[0.790.060.170.580.110.250.210.030.050.090.030.120.550.170.040.270.900.180.030.090.680.550.070.150.110.190.220.12]';
X4=[0.820.402.792.030.390.832.482.863.680.840.410.412.510.401.634.102.090.812.070.830.821.651.240.370.671.660.422.06]';
X5=[6.045.4211.796.929.208.324.247.5910.297.347.204.644.903.315.555.7510.213.989.3810.658.508.978.286.966.956.818.308.89]';
X6=[3.343.009.634.046.545.687.112.113.773.352.070.003.533.743.782.181.757.493.715.492.241.062.232.634.950.006.205.05]';
X7=[0.451.370.000.865.400.331.362.713.970.221.902.171.190.490.831.630.090.592.454.820.651.770.290.481.110.094.913.13]';
X8=[51.3410.2812.5732.5514.3014.8317.3158.7332.3131.8838.5818.4726.5231.828.3852.6820.5825.7330.3029.4324.0236.4620.1514.1234.4618.2919.8246.16]';
X9=[179.7079.2443.2225.34137.64143.4975.89189.6744.98192.73218.45148.36118.63530.5691.80144.82134.63133.0627.52150.271167.6563.45839.4590.61205.6114.67870.1974.48]';
X10=[0.330.310.280.370.250.340.370.100.380.340.230.450.410.420.350.100.260.210.200.340.250.370.360.410.210.300.390.37]';
X11=[5.345.096.975.256.3210.5410.275.135.817.737.858.4811.775.328.875.016.5811.964.725.254.376.415.1310.767.675.8216.966.57]';
X12=[2.952.242.993.152.634.504.731.674.436.783.313.212.132.392.752.232.255.782.223.141.956.463.398.512.765.526.254.58]';
X13=[2.561.333.811.552.386.366.822.842.783.494.404.317.042.395.193.132.326.262.152.340.742.712.517.922.632.829.533.89]';
X14=[0.153.041.360.531.161.731.240.140.090.250.820.750.090.104.021.571.031.821.780.160.850.971.650.480.851.431.152.92]';
X15=[0.401.661.631.323.178.094.805.610.751.181.868.430.211.3011.875.316.012.780.856.160.728.9312.413.218.624.3150.505.73]';
X16=[175.04207.78180.60206.88202.92186.45161.75157.78209.46218.00167.20209.37153.9117
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 程序 文件
![提示](https://static.bdocx.com/images/bang_tan.gif)