联系我们: 手动添加方式: 微信>添加朋友>企业微信联系人>13262280223 或者 QQ: 1483266981
Linear models are core to a wide range of real-world data analyses, for example in agriculture, health, sport and business. This unit provides an in-depth exploration of various linear models outlining when they can be applied, and how to assess if they are appropriate. The unit will introduce the fundamental concepts of analysis of data from both observational studies and experimental designs using classical linear methods, together with concepts of collection of data and design of experiments. You will consider linear models and robust regression methods with diagnostics for checking appropriateness of models and strategies for performing feature selection. You will learn to design and analyse experiments considering notions of replication, randomisation and ideas of factorial designs. You will apply, construct and interpret multi-way ANOVA models and make inferences, including post-hoc tests and making corrections for multiple comparisons. Throughout the unit you will use the R statistical package to perform analyses and generate statistical graphics. By completing this unit you will learn how to generate, interpret, visualise and critique linear models.
这是一份sydney悉尼大学STAT3021 的成功案例
随机过程|STAT3021 Stochastic Processes
问题 1.
Let the vector of the fitted values Y^i hat{Y}{i} be denoted by Y^ hat{ mathbf{Y}} and the vector of the residual terms ei=Yi?Y^ie{i}=Y_{i}- hat{Y}{i} be denoted by e: (6.27a)(6.27 a) Y^n×1=[Y^1?Y^2???Y^n] hat{ mathbf{Y}}{n times 1}= left[ begin{array}{c} hat{Y}{1} hat{Y}{2} vdots hat{Y}{n} end{array} right] (6.27b)(6.27 b) en×1=[e1?e2???en] underset{n times 1}{ mathbf{e}}= left[ begin{array}{c}e{1} e_{2} vdots e_{n} end{array} right]The fitted values are represented by:Y^n×1=Xb underset{n times 1}{ hat{ mathbf{Y}}}= mathbf{X} mathbf{b} and the residual terms by_en=1=Y?Y^=Y?Xb underset{n=1}{ mathbf{e}}= mathbf{Y}- hat{ mathbf{Y}}= mathbf{Y}- mathbf{X} mathbf{b}
证明 .
and the residual terms by:en×1=Y?Y^=Y?Xb underset{n times 1}{ mathbf{e}}= mathbf{Y}- hat{ mathbf{Y}}= mathbf{Y}- mathbf{X} mathbf{b} The vector of the fitted values Y^ hat{ mathbf{Y}} can be expressed in terms of the hat matrix H mathbf{H} as follows:Y^n×1=HY hat{ mathbf{Y}}{n times 1}= mathbf{H Y} where: Hn×n=X(X′X)?1X′ underset{n times n}{ mathbf{H}}= mathbf{X} left( mathbf{X}^{ prime} mathbf{X} right)^{-1} mathbf{X}^{ prime} Similarly, the vector of residuals can be expressed as follows: en×1=(I?H)Y underset{n times 1}{ mathbf{e}}=( mathbf{I}- mathbf{H}) mathbf{Y} The variance-covariance matrix of the residuals is: σn×n2e=σ2(I?H) boldsymbol{ sigma}{n times n}^{2}{ mathbf{e}}= sigma^{2}( mathbf{I}- mathbf{H})
which is estimated by:s2en×n=MSE(I?H) underset{n times n}{ mathbf{s}^{2}{ mathbf{e}}}=M S E( mathbf{I}- mathbf{H})
问题 2.
When tests about regression coefficients are desired that do not involve testing whether one or several βk beta_{k} equal zero, extra sums of squares cannot be used and the general linear test approach requires separate fittings of the full and reduced models. For instance, for the full model containing three XX variables_Yi=β0+β1Xi1+β2Xi2+β3Xi3+εi?Full model? Y_{i}= beta_{0}+ beta_{1} X_{i 1}+ beta_{2} X_{i 2}+ beta_{3} X_{i 3}+ varepsilon_{i} quad text { Full model } we might wish to test:H0:β1=β2?Ha:β1≠β2 begin{aligned} &H_{0}: beta_{1}= beta_{2} &H_{a}: beta_{1} neq beta_{2} end{aligned}
证明 .
The procedure would be to fit the full model (7.30), and then the reduced model_Yi=β0+βc(Xi1+Xi2)+β3Xi3+εi?Reduced model? Y_{i}= beta_{0}+ beta_{c} left(X_{i 1}+X_{i 2} right)+ beta_{3} X_{i 3}+ varepsilon_{i} quad text { Reduced model } where βc beta_{c} denotes the common coefficient for β1 beta_{1} and β2 beta_{2} under H0H_{0} and Xi1+Xi2X_{i 1}+X_{i 2} is the corresponding new XX variable. We then use the general F?F^{*} test statistic with 1 and n?4n-4 degrees of freedom.
Another example where extra sums of squares cannot be used is in the following test for regression model:H0:β1=3,β3=5 H_{0}: beta_{1}=3, beta_{3}=5 Ha:H_{a}: not both equalities in H0H_{0} holdHere, the reduced model would be:Yi?3Xi1?5Xi3=β0+β2Xi2+εi?Reduced model? Y_{i}-3 X_{i 1}-5 X_{i 3}= beta_{0}+ beta_{2} X_{i 2}+ varepsilon_{i} quad text { Reduced model } Note the new response variable Y?3X1?5X3Y-3 X_{1}-5 X_{3} in the reduced model, since β1X1 beta_{1} X_{1} and β3X3 beta_{3} X_{3} are known constants under H0H_{0}. We then use the general linear test statistic F?F^{*} in with 2 and n?4n-4 degrees of freedom.
线性模型是广泛的现实世界数据分析的核心,例如在农业、卫生、体育和商业领域。本单元对各种线性模型进行了深入的探讨,概述了何时可以应用这些模型,以及如何评估它们是否合适。本单元将介绍使用经典线性方法对观察性研究和实验设计的数据进行分析的基本概念,以及收集数据和设计实验的概念。你将考虑线性模型和稳健的回归方法,以及用于检查模型适当性的诊断方法和执行特征选择的策略。你将学会设计和分析实验,考虑复制、随机化和因子设计的概念。你将应用、构建和解释多向方差分析模型并进行推论,包括事后检验和对多重比较进行修正。在整个单元中,你将使用R统计包来进行分析并生成统计图形。通过完成本单元,你将学会如何生成、解释、可视化和批判线性模型。


发表回复