




版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進行舉報或認(rèn)領(lǐng)
文檔簡介
1、習(xí)題答案 Ex4.2指數(shù)分布,的極大似然估計是n/sum(Xi) x lamda x mean(x)1 1平均為1個。Ex4.4 obj-function(x)f x0 nlm(obj,x0)$minimum1 48.98425$estimate1 11.4127791 -0.8968052$gradient1 1.411401e-08 -1.493206e-07$code1 1$iterations1 16Ex4.5 x t.test(x) #t.test()做單樣本正態(tài)分布區(qū)間估計 One Sample t-testdata: xt = 35.947, df = 9, p-value =
2、4.938e-11alternative hypothesis: true mean is not equal to 095 percent confidence interval: 63.1585 71.6415sample estimates:mean of x 67.4平均脈搏點估計為 67.4 ,95%區(qū)間估計為 63.1585 71.6415 。 t.test(x,alternative=less,mu=72) #t.test()做單樣本正態(tài)分布單側(cè)區(qū)間估計 One Sample t-testdata: xt = -2.4534, df = 9, p-value = 0.01828a
3、lternative hypothesis: true mean is less than 7295 percent confidence interval: -Inf 70.83705sample estimates:mean of x 67.4p值小于0.05,拒絕原假設(shè),平均脈搏低于常人。要點:t.test()函數(shù)的用法。本例為單樣本;可做雙邊和單側(cè)檢驗。Ex4.6 x y t.test(x,y,var.equal=TRUE) Two Sample t-testdata: x and yt = 4.6287, df = 18, p-value = 0.0002087alternative
4、 hypothesis: true difference in means is not equal to 095 percent confidence interval: 7.53626 20.06374sample estimates:mean of x mean of y 140.6 126.8期望差的95%置信區(qū)間為 7.53626 20.06374 。要點:t.test()可做兩正態(tài)樣本均值差估計。此例認(rèn)為兩樣本方差相等。ps:我怎么覺得這題應(yīng)該用配對t檢驗?Ex4.7 x y t.test(x,y,var.equal=TRUE) Two Sample t-testdata: x a
5、nd yt = 1.198, df = 7, p-value = 0.2699alternative hypothesis: true difference in means is not equal to 095 percent confidence interval: -0.001996351 0.006096351sample estimates:mean of x mean of y 0.14125 0.13920 期望差的95%的區(qū)間估計為-0.001996351 0.006096351Ex4.8 var.test(x,y) F test to compare two varianc
6、esdata: x and yF = 0.2353, num df = 9, denom df = 9, p-value = 0.04229alternative hypothesis: true ratio of variances is not equal to 195 percent confidence interval: 0.05845276 0.94743902sample estimates:ratio of variances 0.2353305要點:var.test可做兩樣本方差比的估計?;诖私Y(jié)果可認(rèn)為方差不等。因此,在Ex4.6中,計算期望差時應(yīng)該采取方差不等的參數(shù)。 t
7、.test(x,y) Welch Two Sample t-testdata: x and yt = 4.6287, df = 13.014, p-value = 0.0004712alternative hypothesis: true difference in means is not equal to 095 percent confidence interval: 7.359713 20.240287sample estimates:mean of x mean of y 140.6 126.8期望差的95%置信區(qū)間為 7.359713 20.240287 。要點:t.test(x,
8、y,var.equal=TRUE)做方差相等的兩正態(tài)樣本的均值差估計 t.test(x,y)做方差不等的兩正態(tài)樣本的均值差估計Ex4.9 x n tmp mean(x)1 1.904762 mean(x)-tmp;mean(x)+tmp1 1.4940411 2.315483平均呼喚次數(shù)為1.90.95的置信區(qū)間為1.49,2,32Ex4.10 x t.test(x,alternative=greater) One Sample t-testdata: xt = 23.9693, df = 9, p-value = 9.148e-10alternative hypothesis: true mean is greater than
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 2024年甘肅省外事辦公室下屬事業(yè)單位真題
- 公司戰(zhàn)略創(chuàng)新案例分析試題及答案
- 江蘇省揚州市樹人學(xué)校2025屆八年級數(shù)學(xué)第二學(xué)期期末統(tǒng)考模擬試題含解析
- 2024年湖北省腫瘤醫(yī)院招聘筆試真題
- 音樂教學(xué)工作計劃
- 計算機二級VB中的反饋與迭代開發(fā)題及答案
- 程序員職業(yè)素養(yǎng)試題及答案
- 高考作文讀者定位與試題及答案
- 信息處理技術(shù)員考試概況試題及答案
- 材料力學(xué)性能測試溫度影響重點基礎(chǔ)知識點
- 防雷和接地安裝施工組織方案
- 管理學(xué)原理第六章 指揮課件
- 工序標(biāo)準(zhǔn)工時及產(chǎn)能計算表
- 消防安全知識宣傳-主題班會課件(共24張PPT)
- 材料物理與化學(xué)知識點講解
- 生產(chǎn)中的七大浪費(PPT35頁)
- YY∕T 0617-2021 一次性使用人體末梢血樣采集容器
- 《漢服文化介紹》PPT課件(完整版)
- 5以內(nèi)的加減法(可直接打印)
- 車駕管知識題庫查驗業(yè)務(wù)知識試題庫(附答案)
- 鋼結(jié)構(gòu)焊接變形的火焰矯正方法
評論
0/150
提交評論