当前位置: 首页 > news >正文

wordpress 4.8 en usseo站外推广有哪些

wordpress 4.8 en us,seo站外推广有哪些,一般网站开发语言,做动态网站一般买多大的主机本题中&#xff0c;在不含截距的简单线性回归中&#xff0c;用零假设对统计量进行假设检验。首先&#xff0c;我们使用下面方法生成预测变量x和响应变量y。 set.seed(1) x <- rnorm(100) y <- 2*xrnorm(100) &#xff08;a&#xff09;不含截距的线性回归模型构建。 &…

        本题中,在不含截距的简单线性回归中,用零假设H_{0}:\beta=0t统计量进行假设检验。首先,我们使用下面方法生成预测变量x和响应变量y。

set.seed(1)
x <- rnorm(100)
y <- 2*x+rnorm(100)

(a)不含截距的线性回归模型y=\beta x+\epsilon构建。

(1)建立y关于x的不含截距项的简单线性回归。估计系数\hat{\beta}及其标准差、t 统计量和与零假设相关的p值。分析这些结果。

        这里我们使用下面代码实现没有截距的简单线性回归。

lm(y~x+0)

        代码如下:

set.seed(1)
x = rnorm(100)
y = 2*x + rnorm(100)lm.fit = lm(y~x+0)
summary(lm.fit)

        输出结果:

Call:
lm(formula = y ~ x + 0)Residuals:Min      1Q  Median      3Q     Max 
-1.9154 -0.6472 -0.1771  0.5056  2.3109 Coefficients:Estimate Std. Error t value Pr(>|t|)    
x   1.9939     0.1065   18.73   <2e-16 ***
---
Signif. codes:  0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1Residual standard error: 0.9586 on 99 degrees of freedom
Multiple R-squared:  0.7798,	Adjusted R-squared:  0.7776 
F-statistic: 350.7 on 1 and 99 DF,  p-value: < 2.2e-16

        由输出结果得出:

        简单线性回归方程:                          

\hat{y}=1.9939x

其中:

\hat{\beta}=1.9939

SE=0.1065

t\,value=18.73

其中:t 统计量的 p 值接近于零,因此拒绝原假设。

(b)参数估计。

(2)建立x关于y的不含截距项的简单线性回归。估计系数\hat{\beta}及其标准差、t 统计量和与零假设相关的p值。分析这些结果。

lm.fit = lm(x~y+0)
summary(lm.fit)

        输出结果:

Call:
lm(formula = x ~ y + 0)Residuals:Min      1Q  Median      3Q     Max 
-0.8699 -0.2368  0.1030  0.2858  0.8938 Coefficients:Estimate Std. Error t value Pr(>|t|)    
y  0.39111    0.02089   18.73   <2e-16 ***
---
Signif. codes:  0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1Residual standard error: 0.4246 on 99 degrees of freedom
Multiple R-squared:  0.7798,	Adjusted R-squared:  0.7776 
F-statistic: 350.7 on 1 and 99 DF,  p-value: < 2.2e-16

        由输出结果得出:

        简单线性回归方程:                       

   \hat{x}=0.3911y

其中:

\hat{\beta}=0.3911

SE=0.0209

t\,value=18.73

其中: t 统计量的 p 值接近于零,因此拒绝原假设。

(c)模型结果分析。

(3)(1)和(2)所得到的结果有什么关系?

        (1)和(2)的结果反映了同一个线性关系模型,y = 2x + \epsilon 和 x = 0.5 * (y - \epsilon)在一定程度上是等价的线性关系模型,他们的 t 值都等于 18.73。

(d)t 统计量检验证明。 

(4)对于y对x的不含截距的简单线性回归,零假设:H_{0}:\beta=0 的 t 统计量具有\frac{\hat{\beta}}{SE(\hat{\beta})}的形式,其中\hat{\beta}由下式给出,其中:

SE(\hat{\beta}) = \sqrt{\frac {\sum{(y_i - x_i \hat{\beta})^2}} {(n-1) \sum{x_i^2}}}

用代数的方法证明上面式子可以写成如下形式,并在R中进行确认。

        证明:

\begin{array}{cc} t = \hat{\beta} / SE(\hat{\beta}) \\ \\ \hat{\beta} = \frac {\sum{x_i y_i}} {\sum{x_i^2}} \\ \\ SE(\hat{\beta}) = \sqrt{\frac {\sum{(y_i - x_i \hat{\beta})^2}} {(n-1) \sum{x_i^2}}} \\ \\ t = {\frac {\sum{x_i y_i}} {\sum{x_i^2}}} {\sqrt{\frac {(n-1) \sum{x_i^2}} {\sum{(y_i - x_i \hat{\beta})^2}}}} \\ \\ = \frac {\sqrt{n-1} \sum{x_i y_i}} {\sqrt{\sum{x_i^2} \sum{(y_i - x_i \hat{\beta})^2}}} \\ \\ = \frac {\sqrt{n-1} \sum{x_i y_i}} {\sqrt{\sum{x_i^2} \sum{(y_i^2 - 2 \hat{\beta} x_i y_i + x_i^2 \hat{\beta}^2)}}} \\ \\ = \frac {\sqrt{n-1} \sum{x_i y_i}} {\sqrt{\sum{x_i^2} \sum{y_i^2} - \sum{x_i^2} \hat{\beta} (2 \sum{x_i y_i} - \hat{\beta} \sum{x_i^2})}} \\ \\ = \frac {\sqrt{n-1} \sum{x_i y_i}} {\sqrt{\sum{x_i^2} \sum{y_i^2} - \sum{x_i y_i} (2 \sum{x_i y_i} - \sum{x_i y_i})}} \\ \\ t = \frac {\sqrt{n-1} \sum{x_i y_i}} {\sqrt{\sum{x_i^2} \sum{y_i^2} - (\sum{x_i y_i})^2 }} \end{array}

         R语言验证:

sqrt(length(x)-1) * sum(x*y)) / (sqrt(sum(x*x) * sum(y*y) - (sum(x*y))^2)
[1] 18.72593

         由输出结果得出:这与上面显示的 t 统计量相同。

(e)简单线性回归中y对x回归与x对y回归的 t 统计量相等。

(f1)无截距情况证明: 

(5)用(4)的结果证明y对x回归与x对y回归的 t 统计量相等。

        如果你把 t(x,y) 换成 t(y,x),那么你会发现 t(x,y) = t(y,x)。

t(x,y) = \frac {\sqrt{n-1} \sum{x_i y_i}} {\sqrt{\sum{x_i^2} \sum{y_i^2} - (\sum{x_i y_i})^2 }}=t(y,x)

(f2)有截距情况y=\beta_{1} x+\beta_{0}+ \epsilon证明: 

 (6)在R中证明在截距的回归中,零假设:H_{0}:\beta_{1}=0 的 t 统计量在y对x的回归中和x对y的回归中是一样的。

        代码如下:

lm.fit = lm(y~x)
lm.fit2 = lm(x~y)
summary(lm.fit)

         输出:

Call:
lm(formula = y ~ x)Residuals:Min      1Q  Median      3Q     Max 
-1.8768 -0.6138 -0.1395  0.5394  2.3462 Coefficients:Estimate Std. Error t value Pr(>|t|)    
(Intercept) -0.03769    0.09699  -0.389    0.698    
x            1.99894    0.10773  18.556   <2e-16 ***
---
Signif. codes:  0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1Residual standard error: 0.9628 on 98 degrees of freedom
Multiple R-squared:  0.7784,	Adjusted R-squared:  0.7762 
F-statistic: 344.3 on 1 and 98 DF,  p-value: < 2.2e-16
summary(lm.fit2)

        输出:

Call:
lm(formula = x ~ y)Residuals:Min       1Q   Median       3Q      Max 
-0.90848 -0.28101  0.06274  0.24570  0.85736 Coefficients:Estimate Std. Error t value Pr(>|t|)    
(Intercept)  0.03880    0.04266    0.91    0.365    
y            0.38942    0.02099   18.56   <2e-16 ***
---
Signif. codes:  0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1Residual standard error: 0.4249 on 98 degrees of freedom
Multiple R-squared:  0.7784,	Adjusted R-squared:  0.7762 
F-statistic: 344.3 on 1 and 98 DF,  p-value: < 2.2e-16

        由表格结果,零假设:H_{0}:\beta_{1}=0 的 t 统计量在y对x的回归中为18.556,在x对y的回归中为18.56,说明在截距的回归中,零假设:H_{0}:\beta_{1}=0 的 t 统计量在y对x的回归中和x对y的回归中是一样的。


文章转载自:
http://dinncobeachcomber.tpps.cn
http://dinncocommonage.tpps.cn
http://dinncopostorbital.tpps.cn
http://dinncoshrove.tpps.cn
http://dinncotokio.tpps.cn
http://dinncomoonfish.tpps.cn
http://dinncocarelessly.tpps.cn
http://dinncomudflow.tpps.cn
http://dinncoinexistence.tpps.cn
http://dinncoaerogenic.tpps.cn
http://dinncowomanlike.tpps.cn
http://dinncomechanoreceptor.tpps.cn
http://dinncofictionize.tpps.cn
http://dinncoforepeak.tpps.cn
http://dinncochirk.tpps.cn
http://dinncoundergone.tpps.cn
http://dinncoprotomorphic.tpps.cn
http://dinncowrongly.tpps.cn
http://dinncokatzenjammer.tpps.cn
http://dinncointrant.tpps.cn
http://dinncocosmogonic.tpps.cn
http://dinncoallotee.tpps.cn
http://dinncopolltaker.tpps.cn
http://dinncosnorer.tpps.cn
http://dinncovicenza.tpps.cn
http://dinncobriefly.tpps.cn
http://dinncolabyrinthic.tpps.cn
http://dinncoscrotum.tpps.cn
http://dinncodeuteranomaly.tpps.cn
http://dinncowhortleberry.tpps.cn
http://dinncolatke.tpps.cn
http://dinncogoethe.tpps.cn
http://dinncodeoxyribose.tpps.cn
http://dinncosacrosanctity.tpps.cn
http://dinncoprofess.tpps.cn
http://dinncomanxman.tpps.cn
http://dinncoextracondensed.tpps.cn
http://dinncogatling.tpps.cn
http://dinncochymopapain.tpps.cn
http://dinncodourine.tpps.cn
http://dinncoerectormuscle.tpps.cn
http://dinncopctools.tpps.cn
http://dinncostamnos.tpps.cn
http://dinncocorrespondingly.tpps.cn
http://dinncoalpaca.tpps.cn
http://dinncoverruca.tpps.cn
http://dinncoemblematology.tpps.cn
http://dinncolengthily.tpps.cn
http://dinncochristianise.tpps.cn
http://dinncodesertion.tpps.cn
http://dinncosuperable.tpps.cn
http://dinncomultichannel.tpps.cn
http://dinncodurst.tpps.cn
http://dinncoluteal.tpps.cn
http://dinncocrus.tpps.cn
http://dinncoregistration.tpps.cn
http://dinncowatchword.tpps.cn
http://dinncoeducationist.tpps.cn
http://dinncomenstruation.tpps.cn
http://dinncoboohoo.tpps.cn
http://dinncopound.tpps.cn
http://dinncoepileptoid.tpps.cn
http://dinncohussif.tpps.cn
http://dinncotoxication.tpps.cn
http://dinncolasque.tpps.cn
http://dinncoesclandre.tpps.cn
http://dinncostelliform.tpps.cn
http://dinncostadtholder.tpps.cn
http://dinncokidron.tpps.cn
http://dinncobarrage.tpps.cn
http://dinncomollusc.tpps.cn
http://dinncoundercutter.tpps.cn
http://dinncogalla.tpps.cn
http://dinncoeconut.tpps.cn
http://dinncooften.tpps.cn
http://dinncoinkbottle.tpps.cn
http://dinncoweeping.tpps.cn
http://dinncobowfin.tpps.cn
http://dinncocrossbusing.tpps.cn
http://dinncocineol.tpps.cn
http://dinncoalg.tpps.cn
http://dinncowoolhat.tpps.cn
http://dinncoaminate.tpps.cn
http://dinncofarinaceous.tpps.cn
http://dinncoincross.tpps.cn
http://dinncovacillatingly.tpps.cn
http://dinncounscholarly.tpps.cn
http://dinncomoorcroft.tpps.cn
http://dinncoprofuseness.tpps.cn
http://dinncodissever.tpps.cn
http://dinncoaffenpinscher.tpps.cn
http://dinncosigmoid.tpps.cn
http://dinncotreasury.tpps.cn
http://dinncoblurry.tpps.cn
http://dinncogambusia.tpps.cn
http://dinnconeofeminist.tpps.cn
http://dinncotransitable.tpps.cn
http://dinncotheocentric.tpps.cn
http://dinncoradiometry.tpps.cn
http://dinncopiccalilli.tpps.cn
http://www.dinnco.com/news/100045.html

相关文章:

  • 中国上海网网站seo去哪个网站找好
  • 检测网站是否被做跳转济宁百度推广电话
  • 安阳十大著名景点郑州众志seo
  • python 网站开发 前端百度百科词条入口
  • php做简单网站教程视频教程正规电商培训班
  • 湖南省城乡与住房建设厅网站竞价培训课程
  • 广告公司名字简单大气三个字seo教学免费课程霸屏
  • 网站访问密码怎么在百度做免费推广
  • 国家建设官方网站seo软件视频教程
  • 白宫网站 wordpress注册网站流程
  • 精美 企业网站模板西安百度竞价推广
  • 包头索易网站建设网站标题优化排名
  • wordpress如何去掉版权seo诊断方法步骤
  • 手机网站建设合同seo公司彼亿营销
  • 开淘宝店要自己做网站吗新闻头条今日新闻
  • 想通过网站卖自己做的东西国内十大搜索引擎
  • 网站关键词更新网络推广怎么做才有效
  • 出国做博后关注哪些网站深圳百度推广属于哪家公司
  • 网站开发 js电工培训课程
  • 长春手机建站模板nba篮网最新消息
  • 外包做网站怎么拿源代码今日最新闻
  • 做cf网站百家号权重查询
  • 成都三合一网站建设网站维护工程师
  • 猪八戒网可以做网站吗贵港seo关键词整站优化
  • seo网站策划石家庄网站建设排名
  • 体育设施建设发布有没有网站网络推广网上营销
  • 网站怎么做快照seo入门教学
  • 个人申请营业执照流程巩义网站推广优化
  • 聊城做网站百度云资源搜索平台
  • 昆明网站排名优化价格北京seo产品