



免费预览已结束
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
generalized likelihood ratio test example a.k.a. too much for in class but certainly worth making sure you can do each step! consider testing h0: 0 vs. ha: 0 for an random sample form a population that is normally distributed (where 2 is unknown). one way to do this is to construct the likelihood ratio test where p(|h0 is true)=. using the definition of the likelihood ratio test on page 308, and plugging in the normal p.d.f., we get: () () = = = = = = n i i hh n i i h n i i hh n i i h n hh n h x x xf xf xxf xxf a a a 1 2 2 1 2 2 1 1 1 1 2 exp 2 1 max 2 exp 2 1 max ),|(max ),|(max ),|,.(max ),|,.(max 0 0 0 0 0 0 the next step is to find what the maximum is in both the numerator and denominator. the denominator is the easy place to start because it is over the set of all possible and values. in other words we just need to find the mle. for the numerator we have to deal with the restriction on . denominator: to find the mle we need to take the derivative with respect to both of the parameters, so () ()() () = = = = = = = n i i n i i n i i n i i xn n xx lik x lik 1 2 2 1 2 2 1 2 2 1 2 2 2 )2log( 2 log 22 1 log 2 exp 2 1 loglog 2 exp 2 1 ()() = = = = n i mlei n i i n i i xnx xx 11 2 1 2 0) 1( 2 2 ()() ()() n xx n x xnxn n i i n i mlei n i mle i n i i = = += = = = 1 2 1 2 1 3 2 1 3 2 )2( 2 numerator: notice in the numerator we need to find the maximum subject to the null hypothesis being true. that is, since must be 0, mleh0 must be 0. so we do the math just like we did for the denominator and get that xis the h0mle as long as it is 0. if it is then the maximum must happen at the boundary, and be either 0 or - (which would mean the maximum would never be reached). notice what happens if we plug in - for ; the likelihood is zero. therefore the h0mle is 0 if x0. to get the h0mle for we simply follow the math above and plug in the value of h0mle for when needed. this gives: if 0 x , x mleh = 0 and () n xx n i i mleh = =1 2 0 if 0 x , 0 0 = mleh and () n x n i i mleh = =1 2 0 0 plugging the values in: first notice that =1 (and we accept) if 0 x because the maximums plugged into the numerator and denominator are the same. the tricky case then is if 0 x. so lets carry through the product and just plug the values in: () () () () = = = = = = 2 1 2 2 1 2 1 2 2 1 2 2 2 exp 2 1 max 2 exp 2 1 max 2 exp 2 1 max 2 exp 2 1 max 0 0 0 0 n i i n hh n i i n h n i i hh n i i h x x x x a a () () () () () () () () () () 2 1 2 0 1 2 2 1 2 0 1 2 1 2 1 2 1 2 1 2 0 1 2 0 1 2 0 2 exp 2 exp 2 exp 2 1 2 exp 2 1 n n i i n i i n n i i n i i n i i n i i n n i i n i i n i i n n i i x xx n n x xx n xx xx n xx n x x n x = = = = = = = = = = = = = now we need to find the so that () () = = = = 2 1 2 0 1 2 n n i i n i i x xx p this doesnt look friendly at all but if we remember that the xs are normal we might be able to change this into a distribution we can work with (t? 2? f?). notice that the numerator looks very close to the standard deviation what you would find in the denominator of a t-test. also notice that the denominator is at least suggestive of the 0 x you would find in the numerator of the t-test statistic. since this is are only lead, lets see if we can work it out () () () () () () 1 2 1 2 0 2 1 2 1 2 0 2 1 2 0 1 2 + = = = = = = n i i n i i n n i i n i i n n i i n i i xx xxx xx x x xx () () ()()() () )(2 1 2 11 2 0 1 2 0 2 1 2 1 2 0 + + = = = = n i i n i n i n i ii n i i n i i xx xxxxxx xx xxx note that xand 0 are constant with respect to n, so that the second term is zero, and the sum turns into a multiplier of n in the third term: ()() () () () 1 1 2 2 0 1 2 1 2 0 2 + + = = n i i n i i n i i xx xn xx xnxx () () () () () () v n i i v n i i n i i n xx x xx xn xx xn 1 1 2 01 1 2 2 0 1 2 2 0 = = () () () vv n i in s x n n xx x = 0 1 2 0 1 this is just the classic t-statistic! (and recall that if 0 x then we would accept.) finally! so the test for h0: 0 vs. ha: 0 is reject if question: how would the above math change if we had used h0: =0 vs. ha: 0 ? what about theorem a? notice that theorem a on page 310 says that 2log should be chi- squared with degrees of freedom equal to dim-dimo. does that work here? notice that it probably shouldnt for two different reasons! reason 1: = possible values of and is two-dimensional but so is o because it is half of a plane (a line is one-dimensional). so the degrees of freedom should be 2-2=0 which makes no sense! reason 2: if 0 x we get that =1 so that , so that 2log = 0. there is thus some probability that 2log = 0. but a chi-squared distribution is continuous and so has to have 0 probability of taking any given value! we get something called a chi-bar distribution that is a mixture of a discrete distribution at zero and part of a chi-squared distribution. yuck! however, if we had used the hypotheses h0: =0 vs. ha: 0 it would have worked out just fine. in this case is two-dimensional, but o has a fixed value of so that it is only one- dimensional. if everything works out we should get that 2log will be chi-squared with one degree of freedom. () () 2 1 2 0 1 2 n n i i n i i x xx = = = so, using some of the math we saw earlier () () () () n n i i n i i n n i i n i i xx x x xx = = = = = = 1 2 1 2 0 2 1 2 0 1 2 loglog2log2 = () n n i i xx xn + =1 2 2 0) ( 1log () 2 1 0 t n s x () n n n n n i i n t n n s x n n s x n n n xx x += += += += = 1 1log 1 1log 1 )( 1log 1 1 )(
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 智慧物流技术与实务 教案全套 潘艳君 项目1-6 智慧物流概述-智慧物流的综合应用
- 2025年环保产业园区产业集聚与协同发展中的环保产业绿色技术创新报告
- 2025年工业互联网平台数据清洗算法在智能教育领域的应用对比报告
- 金融与投资行业洞察报告:2025年金融科技在金融衍生品交易中的应用与创新
- 美妆行业个性化定制服务模式在美妆行业市场拓展中的应用报告
- 2025年工业互联网平台RFID技术在智能工厂生产安全风险控制中的应用报告
- 做微商的心得体会经典十四篇
- 无人机传感器技术 8.1.陀螺仪在航空领域及无人机飞控中的应用
- 无人看守设备管理制度
- ktv安全风险管理制度
- 手术通知单模板
- 油气藏类型、典型的相图特征和识别实例
- 《议程设置理论》
- 取力器的设计设计说明书
- 康复医院的设计要点精选
- 10kv高压架空电线防护方案概述
- 铸造厂各岗位职责标准xls
- 整车试验大纲
- 空调维保方案及报价(共3页)
- 电缆厂物料编码规则(共8页)
- (完整)中考英语首字母填词高频词汇
评论
0/150
提交评论