Posted on Categories:Linear Regression, 数据科学代写, 线性回归, 统计代写, 统计代考

# 统计代写|线性回归代写Linear Regression代考|Latin Square Designs

avatest™

## avatest™帮您通过考试

avatest™的各个学科专家已帮了学生顺利通过达上千场考试。我们保证您快速准时完成各时长和类型的考试，包括in class、take home、online、proctor。写手整理各样的资源来或按照您学校的资料教您，创造模拟试题，提供所有的问题例子，以保证您在真实考试中取得的通过率是85%以上。如果您有即将到来的每周、季考、期中或期末考试，我们都能帮助您！

•最快12小时交付

•200+ 英语母语导师

•70分以下全额退款

## 统计代写|线性回归代写Linear Regression代考|Latin Square Designs

Latin square designs have a lot of structure. The design contains a row block factor, a column block factor, and a treatment factor, each with $a$ levels. The two blocking factors, and the treatment factor are crossed, but it is assumed that there is no interaction. A capital letter is used for each of the $a$ treatment levels. So $a=3$ uses A, B, C while $a=4$ uses A, B, C, D.

Definition 7.5. In an $a \times a$ Latin square, each letter appears exactly once in each row and in each column. A standard Latin square has letters written in alphabetical order in the first row and in the first column.

Five Latin squares are shown below. The first, third, and fifth are standard. If $a=5$, there are 56 standard Latin squares.
$\begin{array}{lllllllllllll}\text { A B C } & \text { A B C } & \text { A B C D } & \text { A B C D E } & \text { A B C D E } \ \text { B C A } & \text { C A B } & \text { B A D C } & \text { E A B C D } & \text { B A E C D } \ \text { C A B } & \text { B C A } & \text { C D A B } & \text { D E A B C } & \text { C D A E B } \ & & & \text { D C B A } & \text { C D E A B } & \text { D E B A C } \ & & & & \text { B C D E A } & \text { E C D B A }\end{array}$
Definition 7.6. The model for the Latin square design is
$$Y_{i j k}=\mu+\tau_i+\beta_j+\gamma_k+e_{i j k}$$
where $\tau_i$ is the $i$ th treatment effect, $\beta_j$ is the $j$ th row block effect, $\gamma_k$ is the $k$ th column block effect with $i, j$, and $k=1, \ldots, a$. The errors $e_{i j k}$ are iid with 0 mean and constant variance $\sigma^2$. The $i$ th treatment mean $\mu_i=\mu+\tau_i$.

Shown below is an ANOVA table for the Latin square model given in symbols. Sometimes “Error” is replaced by “Residual,” or “Within Groups.” Sometimes rblocks and cblocks are replaced by the names of the blocking factors. Sometimes “p-value” is replaced by “P,” “Pr$(>F)$,” or “PR $>$ F.”

Rule of thumb 7.2. Let $p_{\text {block }}$ be $p_{\text {row }}$ or $p_{\text {col }}$. If $p_{\text {block }} \geq 0.1$, then blocking was not useful. If $0.05<p_{\text {block }}<0.1$, then the usefulness was borderline. If $p_{\text {block }} \leq 0.05$, then blocking was useful.

Be able to perform the 4 step ANOVA $F$ test for the Latin square design. This test is similar to the fixed effects one way ANOVA $F$ test.
i) Ho: $\mu_1=\mu_2=\cdots=\mu_a$ and $H_A$ : not Ho.
ii) Fo = MSTR/MSE is usually given by output.
iii) The pval $=\mathrm{P}\left(F_{a-1,(a-1)(a-2)}>F_o\right)$ is usually given by output.
iv) If the pval $\leq \delta$, reject Ho and conclude that the mean response depends on the factor level. Otherwise fail to reject Ho and conclude that the mean response does not depend on the factor level. (Or there is not enough evidence to conclude that the mean response depends on the factor level.) Give a nontechnical sentence. Use $\delta=0.05$ if $\delta$ is not given.

## 统计代写|线性回归代写Linear Regression代考|Factorial Designs

Factorial designs are a special case of the $k$ way Anova designs of Chapter 6 , and these designs use factorial crossing to compare the effects (main effects, pairwise interactions, $\ldots$, k-fold interaction) of the $k$ factors. If $A_1, \ldots, A_k$ are the factors with $l_i$ levels for $i=1, \ldots, k$ then there are $l_1 l_2 \cdots l_k$ treatments where each treatment uses exactly one level from each factor. The sample size $n=m \prod_{i=1}^k l_i \geq m 2^k$. Hence the sample size grows exponentially fast with $k$. Often the number of replications $m=1$.

Definition 8.1. An experiment has $n$ runs where a run is used to measure a response. A run is a treatment = a combination of $k$ levels. So each run uses exactly one level from each of the $k$ factors.

Often each run is expensive, for example, in industry and medicine. A goal is to improve the product in terms of higher quality or lower cost. Often the subject matter experts can think of many factors that might improve the product. The number of runs $n$ is minimized by taking $l_i=2$ for $i=1, \ldots, k$.
Definition 8.2. A $2^k$ factorial design is a $k$ way Anova design where each factor has two levels: low $=-1$ and high $=1$. The design uses $n=m 2^k$ runs. Often the number of replications $m=1$. Then the sample size $n=2^k$.

A $2^k$ factorial design is used to screen potentially useful factors. Usually at least $k=3$ factors are used, and then $2^3=8$ runs are needed. Often the units are time slots, and each time slot is randomly assigned to a run $=$ treatment. The subject matter experts should choose the two levels. For example, a quantitative variable such as temperature might be set at $80^{\circ} \mathrm{F}$ coded as -1 and $100^{\circ} F$ coded as 1 , while a qualitative variable such as type of catalyst might have catalyst $\mathrm{A}$ coded as -1 and catalyst $\mathrm{B}$ coded as 1 .

## 统计代写|线性回归代写Linear Regression代考|Latin Square Designs

ABC ABC ABCD ABCDE ABCDE BCA CAB BADC 定义 7.6。拉丁方设计的模型是
$$Y_{i j k}=\mu+\tau_i+\beta_j+\gamma_k+e_{i j k}$$

iv) 如果 $\mathrm{pval} \leq \delta$ ，拒绝 $\mathrm{Ho}$ 并得出平均响应取决于因子水平的结论。否则无法拒绝 $\mathrm{Ho}$ 并得出均值响应不依赖 于因子水平的结论。（或者没有足够的证据得出均值响应取决于因子水平的结论。）给出一个非技术性的句 子。使用 $\delta=0.05$ 如果 $\delta$ 没有给出。

## 统计代写|线性回归代写Linear Regression代考|Factorial Designs

$\mathrm{A} 2^k$ 析因设计用于筞选潜在有用的因素。通常至少 $k=3$ 使用因素，然后 $2^3=8$ 需要运行。通常单位是时隙， 每个时隙随机分配到一个运行=治疗。主题专家应选择这两个级别。例如，温度等定量变量可能设置为 $80^{\circ} \mathrm{F}$ 编 码为 -1 和 $100^{\circ} F$ 编码为 1 ，而催化剂类型等定性变量可能有催化剂 $A$ 编码为 -1 和催化剂 $B$ 编码为 1 。

## MATLAB代写

MATLAB 是一种用于技术计算的高性能语言。它将计算、可视化和编程集成在一个易于使用的环境中，其中问题和解决方案以熟悉的数学符号表示。典型用途包括：数学和计算算法开发建模、仿真和原型制作数据分析、探索和可视化科学和工程图形应用程序开发，包括图形用户界面构建MATLAB 是一个交互式系统，其基本数据元素是一个不需要维度的数组。这使您可以解决许多技术计算问题，尤其是那些具有矩阵和向量公式的问题，而只需用 C 或 Fortran 等标量非交互式语言编写程序所需的时间的一小部分。MATLAB 名称代表矩阵实验室。MATLAB 最初的编写目的是提供对由 LINPACK 和 EISPACK 项目开发的矩阵软件的轻松访问，这两个项目共同代表了矩阵计算软件的最新技术。MATLAB 经过多年的发展，得到了许多用户的投入。在大学环境中，它是数学、工程和科学入门和高级课程的标准教学工具。在工业领域，MATLAB 是高效研究、开发和分析的首选工具。MATLAB 具有一系列称为工具箱的特定于应用程序的解决方案。对于大多数 MATLAB 用户来说非常重要，工具箱允许您学习应用专业技术。工具箱是 MATLAB 函数（M 文件）的综合集合，可扩展 MATLAB 环境以解决特定类别的问题。可用工具箱的领域包括信号处理、控制系统、神经网络、模糊逻辑、小波、仿真等。