首页 > 编程语言 >R语言代做编程辅导Econ 823: Econometric Methods(附答案)

R语言代做编程辅导Econ 823: Econometric Methods(附答案)

时间:2023-07-31 16:56:26浏览次数:46  
标签:random Econ sample 代做 hypothesis test null likelihood Econometric

全文链接:https://tecdat.cn/?p=33336

Problems:

  1. Let X1 and X2 constitute a random sample of size 2 from the population given by
    f(x; θ) = θxθ-1 10;1:
    If the critical region x1x2 ≥ 3=4 is used to test the null hypothesis θ = 1 against the alternative hypothesis θ = 2, what is the power of this test at θ = 2?
  2. A random sample of size n is to be used to test the null hypothesis that the parameter
    θ of an exponential population equals θ0 against the alternative that it does not.
    • Find an expression for the likelihood ratio statistic.
    • Use this result to show that the critical region of the likelihood ratio test can be
    written
    x · e-x=θ0 ≤ K:
  3. A random sample of size n from a normal population with unknown mean and variance
    is to be used to test the null hypothesis µ = µ0 against the alternative µ 6= µ0. Using
    the simultaneous maximum likelihood estimators of µ and σ2, show that the values of
    the likelihood ratio statistic (LRT) can be written
    λ = 1 + n t-2 1-n=2;
    where t = pn(x - µ0)=s. How is the LRT connected to the t distribution?
  4. Independent random samples of sizes n1; n2; · · · ; nk from k normal populations with
    unknown means and variances are to be used to test the null hypothesis that all the
    variances are equal.
    • Derive, under the null hypothesis, the maximum likelihood estimates of the means
    µi and variances σi2. Repeat the derivation with no restriction on the variances (i.e.,
    where the null is not true).
    • Using these results, derive the likelihood ratio test statistic.
    Computer:
  5. Write an R script to do the following:
    • Generate a sample of 50 observations from a random N(12; 7) population.
    • Test the null hypothesis that the mean is 3 at a 5 % significance level.
    • Test the null hypothesis that the mean is 11.75 at a 1 % significance level.

• Test the null hypothesis that the variance 9 at a 10 % significance level and at a 1
% significance level.
• Repeat steps 2-4 above for a new sample (generated via the same process) but with
only 10 observations.
• Construct another sample (from the same population) with 50 observations. Test the
hypothesis that both samples of 50 observations each came from normal populations
with the same mean (use α = 5%)

 
mu = 3
sd = sqrt(7)


x <- rnorm(50)*sd + 12#Generate a sample of 50 observations from a random N (12; 7) population
t.test(x, mu = 3)#Test the null hypothesis that the mean
t.test(x, mu = 11.75,conf.level =0.99 )

var.test(x,rnorm(50,12,3),ratio=1,conf.level=0.9)#Test the null hypothesis that the variance 

1.png

2.png

3.png

4.png

5.png

image.png

标签:random,Econ,sample,代做,hypothesis,test,null,likelihood,Econometric
From: https://www.cnblogs.com/tecdat/p/17593858.html

相关文章

  • R语言代做编程辅导STA305/1004 Homework 2(附答案)
    全文链接:https://tecdat.cn/?p=33341TheNHEFSsurveywasdesignedtoinvestigatetherelationshipsbetweenclinical,nutritional,andbehaviouralfactorsassessedinthefirstNationalHealthandNutritionExaminationSurveyNHANESIandsubsequentmorbidity,......
  • mysql 延迟复制 second bechind
    实现MySQL延迟复制secondbehind1.简介在MySQL复制过程中,主服务器(Master)将二进制日志(BinaryLog)中的事件复制到从服务器(Slave)上。而"mysql延迟复制secondbehind"的目标是在从服务器上设置延迟时间来实现数据同步的延迟。本文将介绍如何通过更改MySQL的复制参数来实......
  • [SpringBoot] Not registered via @EnableConfigurationPropertise or marked as Spri
    问题描述在Springboot进行参数绑定时,出现解决添加以下依赖<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-configuration-processor</artifactId> <optional>true</optional> </depende......
  • k8s timeoutSeconds无效且没有按照periodSeconds的间隔时间来执行健康检查
    健康检查日志没有严格按照periodSeconds间隔时间来打印。核心代码如下: pkg/kubelet/prober/worker.gopkg/kubelet/prober/prober.gorunProbe方法(kubelet健康检查有3种方式)httpGet发送HTTP请求,返回码介于200~400之间(前闭后开)时检查成功。exec容器中执行命令,当命令执行成功......
  • 学生个人网页设计作品 学生个人网页模板 简单个人主页成品 个人网页制作 HTML学生个人
    HTML网页作业期末学生结课大作业作品(HTML+CSS+JS),都是给学生定制的都符合学校或者学生考试期末作业的水平,都是div+css框架原创代码写的,有的有js,有的视频+音乐+flash的等元素的插入…2000多例HTML5期末考核大作业源码都可满足大学生网页大作业网页设计作业需求,喜欢的可以下载!网......
  • AICodeConvert 开源了,从 6.24 到现在一个月,没有主动推广,居然有9.8K 访问量
    这是我另个一个之前周六6.24开始验证思路的项目,验证的感觉差不多,不做主动推广到现在一个月,访问量9.8K。源码开源了,github.com网址:AICodeConvert另一个在佛系验证中的还有这个:Base64.kr,思路见 github启发来源:有两个1.社群聊过的producthunt提交AI作品,那么就静静的等......
  • @PersistenceContext 和 @Resource
    @PersistenceContextprivate EntityManager em;注入的是实体管理器,执行持久化操作的,需要配置文件persistence.xml。注入一堆保存实体类状态的数据结构,针对实体类的不同状态(四种,managedh或detached等)可以做出不同的反应(merge,persist等等),其实就是把数据从数据库里提出,然......
  • vtkMapper 以及其方法 SetInputData SetInputConnection SetSourceConnection
    vtkMappe及其派生类,负责把输入数据转换为图元(例如显示为点、显示为线、显示为面等)。该类存储需要渲染的数据,以及一些渲染配置。我们经常看到的vtkActor->SetMapper(mapper),含义就是把负责提供图元数据的mapper连接到渲染引擎actor。vtkMapper的重要渲染配置1.选择使用顶点进行渲......
  • kubeconfig内容分析
    kubeconfig默认在~/.kube/config,主要包括certificate-authority-data根证书、client-certificate-data客户端证书、client-key-data客户端私钥、context上下文、server即kube-apiserverIP和端口。查看kubeconfig内容kubectlconfigview--raw查看根证书内容echocertificat......
  • Hibernate初始化时在OneToOneSecondPass类中出现NullPointerException
    启动项目 Hibernate随即报错Causedby:java.lang.NullPointerException   atorg.hibernate.cfg.OneToOneSecondPass.doSecondPass(OneToOneSecondPass.java:135)  原因: 主类方,无外键方@OneToOne(mappedBy="carveEReviewproject",targetEntity=CarveEReviewcomment.cla......