版權說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權,請進行舉報或認領
文檔簡介
1、西安交通大學概率論實驗報告實驗二:正態(tài)分布綜合實驗 實驗六:抽樣分布、參數(shù)估計及假設檢驗姓名: 學號: 班級 日期: 成績: 實驗二、正態(tài)分布綜合實驗實驗內(nèi)容(1) 利用隨機數(shù)發(fā)生器分別產(chǎn)生n=100,1000,10000個服從正態(tài)分布N(6,1)的隨機數(shù),每種情形下各取組距為2、1、0.5作直方圖及累積百分比曲線圖。(2) 固定數(shù)學期望u=0.05,分別去標準差為d=0.01,0.02,0.03,繪制密度函數(shù)和分布函數(shù)的圖形。(3) 固定標準差為d=0.02,分別取數(shù)學期望為u=0.03,0.05,0.07,繪制密度函數(shù)和分布函數(shù)的圖形。主程序部分N=100 1000 10000; D=2
2、1 0.5 for j=1:3 y=normrnd(6,1,N(j),1); ymin=min(y); ymax=max(y); for k=1:3 d=(ymax-ymin)/D(k); x=linspace(ymin,ymax,d); yy=hist(y,x); yy=yy/length(y); figure; subplot(1,2,1); hist(y,d);grid; xlabel(a)概率密度分布直方圖) s=0; for i=2:length(x) s=s,sum(yy(1:i); end subplot(1,2,2); plot(x,s,x,s,*,markersize,8,l
3、inewidth,2); grid; xlabel(b)累積分布百分比曲線); endendclear all; x=-0.5:0.001:0.5; y1=;y2=; mul=0.05 0.05 0.05; sigmal=0.01 0.02 0.03; for i=1:length(mul) y1=y1,normpdf(x,mul(i),sigmal(i); y2=y1,normpcf(x,mul(i),sigmal(i);endsubplot(1,2,1);plot(x,y1); xlabel(a)概率密度函數(shù));grid;subplot(1,2,2);plot(x,y2); xlabel(
4、b)分布函數(shù)) grid; 運行結果屏幕截圖:1 直方圖及累積百分比曲線圖 2密度函數(shù)和分布函數(shù)的圖形 3密度函數(shù)和分布函數(shù)的圖形 實驗六、抽樣分布、參數(shù)估計及假設檢驗實驗內(nèi)容:1、 給出100名學生的身高和體重(單位 厘米 千克)求出以下統(tǒng)計量:樣本數(shù),平均值,中位數(shù),樣本標準差,最大值,最小值。求出頻率與頻數(shù)分布;作出以上數(shù)據(jù)的頻率直方圖。2、 根據(jù)這些數(shù)據(jù)對學生的平均身高和體重作出估計,并給出估計的誤差范圍;3、 該地區(qū)學生10年作出普查,學生的平均升高為167.5cm,平均體重為60.2kg,試根據(jù)這次抽查的數(shù)據(jù),對學生的平均身高和體重有無明顯變化作出結論。 主程序部分height=n
5、ormrnd(167.5,2.30,1,100) weight=normrnd(60.2,2.25,1,100)length(height)mean(height)median(height)std(height)max(height)min(height)hist(height,10)gridtitle(身高頻數(shù)直方圖)xlabel(身高/cm)ylabel(頻數(shù))a,b=hist(height)bar(b,a/sum(a)gridtitle(身高頻率直方圖)xlabel(身高/cm)ylabel(頻率)length(weight)mean(weight)median(weight)std(
6、weight)max(weight)min(weight)hist(weight,10)gridtitle(體重頻數(shù)直方圖)xlabel(體重/kg)ylabel(頻數(shù))a,b=hist(weight)bar(b,a/sum(a)gridtitle(體重頻率直方圖)xlabel(體重/kg)ylabel(頻率)%參數(shù)估計Hmu,Hsigma,Hmuci,Hsigmaci=normfit(height)Wmu,Wsigma,Wmuci,Wsigmaci=normfit(weight)%假設檢驗hH1,Hsig1,Hci1=ttest(height,167.5)wH1,wsig1,wci1=tte
7、st(weight,60.2)運行結果1屏幕截圖運行結果2 實驗數(shù)據(jù) height = Columns 1 through 6 171.4081 170.2331 164.5328 165.8021 170.7728 167.0404 Columns 7 through 12 165.3081 169.9115 171.4740 167.3676 169.8609 166.9261 Columns 13 through 18 163.9439 165.7490 166.0046 164.8945 172.3695 163.0224 Columns 19 through 24 164.9855
8、168.0981 167.7752 165.6409 166.9354 170.9053 Columns 25 through 30 170.2807 166.9811 171.5018 167.0795 169.0330 171.7654 Columns 31 through 36 171.7564 166.7145 169.9240 168.5059 170.4093 166.7011 Columns 37 through 42 167.5255 167.4598 169.4426 171.0746 170.8649 165.5142 Columns 43 through 48 171.7
9、113 170.3842 169.3290 171.5635 169.6700 165.6328 Columns 49 through 54 166.8807 167.1514 168.7060 167.0554 167.6668 169.6813 Columns 55 through 60 167.6543 167.9442 163.9649 167.9739 167.3908 166.0520 Columns 61 through 66 168.0719 166.7094 166.9276 167.6216 169.7815 168.7249 Columns 67 through 72 1
10、70.5056 165.0821 170.5154 167.2001 170.0060 164.9363 Columns 73 through 78 167.9533 171.8044 166.5583 170.6487 163.8350 164.7852 Columns 79 through 84 162.7708 164.3528 169.3840 165.5356 169.1041 169.8211 Columns 85 through 90 165.4379 166.9008 168.3940 163.3088 168.4125 167.1113 Columns 91 through
11、96 169.8310 168.3902 167.4649 170.3727 168.4645 169.0653 Columns 97 through 100 166.2493 164.1141 164.2762 169.8917weight = Columns 1 through 6 58.4272 60.1545 58.5252 60.5747 62.5364 58.3277 Columns 7 through 12 59.6589 55.5135 58.7601 56.6408 62.4710 58.2727 Columns 13 through 18 61.7869 64.2445 5
12、8.2806 56.8450 59.6548 60.7719 Columns 19 through 24 65.9005 56.4960 62.3815 60.8091 61.9363 60.3091 Columns 25 through 30 58.2867 59.7436 59.5639 61.0966 60.3691 63.1406 Columns 31 through 36 59.8599 62.7176 59.3293 61.1320 61.1132 62.3161 Columns 37 through 42 59.7446 58.8589 62.6197 60.4263 60.48
13、65 59.6795 Columns 43 through 48 57.8069 59.9196 63.4800 64.0564 61.7354 60.9093 Columns 49 through 54 65.9836 59.6065 61.5581 57.3268 62.5775 61.0684 Columns 55 through 60 60.6470 61.7934 64.2528 59.6670 61.8649 62.9833 Columns 61 through 66 60.0511 57.2197 62.0702 59.3313 60.8248 60.7212 Columns 6
14、7 through 72 58.9883 58.4213 58.3737 62.2225 60.6112 56.9755 Columns 73 through 78 61.3540 59.0693 62.2301 57.7868 61.0055 60.9562 Columns 79 through 84 63.2163 59.9573 58.7430 61.1494 60.5628 59.2737 Columns 85 through 90 57.4434 60.0275 55.6655 63.2495 57.6418 59.4026 Columns 91 through 96 59.0526
15、 57.1970 59.8970 61.1422 65.0894 58.4261 Columns 97 through 100 63.4666 60.0662 55.4928 57.1328ans = 100ans = 167.9023ans = 167.7210ans = 2.3642ans = 172.3695ans = 162.7708a = 3 7 11 6 20 14 8 15 8 8b = Columns 1 through 6 163.2507 164.2106 165.1704 166.1303 167.0902 168.0501 Columns 7 through 10 16
16、9.0099 169.9698 170.9297 171.8896ans = 100ans = 60.2851ans = 60.2318ans = 2.2195ans = 65.9836ans = 55.4928a = 4 8 12 16 19 16 13 6 3 3b = Columns 1 through 6 56.0173 57.0664 58.1155 59.1646 60.2136 61.2627 Columns 7 through 10 62.3118 63.3609 64.4100 65.4590參數(shù)估計Hmu = 167.6843Hsigma = 1.9600Hmuci = 167.8647 168.4522Hsigmaci = 1.7209 2.2768Wmu = 60.7411Wsigma = 2.2069Wmuci = 59.6177 60.4185Wsi
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
- 4. 未經(jīng)權益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責。
- 6. 下載文件中如有侵權或不適當內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 警務室調解制度
- 用電基礎知識培訓
- 2025高一政治期末模擬卷01(考試版)【測試范圍:必修1全冊+必修2全冊】(新高考用)含答案
- 醫(yī)院愛崗敬業(yè)培訓課件
- 國考公安考試試題及答案
- 2026年上半年浙江杭州市婦產(chǎn)科醫(yī)院(杭州市婦幼保健院)高層次、緊缺專業(yè)人才招聘15人(總)備考考試試題附答案解析
- 2026某事業(yè)單位招聘保潔崗位1人備考考試題庫附答案解析
- JIS D 9101-2012 自行車術語標準 Cycles - Terminology
- 2026福建福州市平潭綜合實驗區(qū)黨工委黨校(區(qū)行政學院、區(qū)社會主義學院)招聘編外工作人員1人備考考試題庫附答案解析
- 2026福建龍巖鑫達彩印有限公司龍巖鑫利來酒店分公司(第一批)招聘3人參考考試試題附答案解析
- 西藏轉移就業(yè)課件
- 2026-2031中國房地產(chǎn)估價市場分析預測研究報告
- 2025年繩索技術理論題庫及答案
- 天津市和平區(qū)2025年高二化學第一學期期末監(jiān)測試題含解析
- 供熱企業(yè)環(huán)保知識培訓課件
- 工業(yè)園招商課件
- 護理帶教老師小講課
- 氟硅烷改性自清潔涂層的制備及性能表征
- 特警小組戰(zhàn)術課件大綱
- 電氣設備維護保養(yǎng)手冊模板
- 3.1城市的輻射功能課件-高中地理人教版選擇性必修2
評論
0/150
提交評論