The third assignment of Multivariate Statistics. The assignment is written in Rmarkdown, a smart syntax supported by RStudio helping with formula, plot visualization and plugin codes running.
The third assignment of Multivariate Statistics. The assignment is written in Rmarkdown, a smart syntax supported by RStudio helping with formula, plot visualization and plugin codes running.
most recommend:click here for html version of assignment, you can see codes as well as plots.
You may also find the PDF Version of this assignment from github. Or if you can cross the fire wall, just see below:
1
density function for the multivariate normal distribution:
f(x;μ,Σ)=(2π)p/2∣Σ∣1/21e−21(x−μ)′Σ−1(x−μ)
the likelihood function for the two independent sample:
The directions of each aixs is determined by its corresponding eigen vector shown above.
(b)
# read the datasetwd('~/Desktop/三春/3多元统计分析/作业/作业3-1,3-2/')dat<-read.csv("data.csv")x1<-dat$x1x2<-dat$x2x3<-dat$x3qqnorm(x1, main="Normal Probability Plot", pch=19)qqline(x1)qqnorm(x2, main="Normal Probability Plot", pch=19)qqline(x2)qqnorm(x3, main="Normal Probability Plot", pch=19)qqline(x3)
plot(x1,x2)plot(x1,x3)plot(x2,x3)
It seems that each variable’s normality is fine and they don’t have a significant relationship with each other, so the multivariate normal assumption seems justied.
3
T^2 = \sqrt n (\bar X -\mu_0)^{'}{(\frac{\sum_{j=1}^{n}(X_j-\bar X)(X_j-\bar X)^{'}}{n-1})^{-1}} \sqrt n (\bar X -\mu_0)\\ \text{So it can be calculated that }T^2 = 9.74 \\ \frac{p(n-1)}{(n-p)}F_{p,n-p}(\alpha) = \frac{19 \times 3}{17} \times F_{3,17}(0.05) = \frac{19 \times 3}{17} \times 3.20 = 10.729\
The thirteenth assignment of Linear Regression. The assignment is written in Rmarkdown, a smart syntax supported by RStudio helping with formula, plot visualization and plugin codes running.
The fifth assignment of Multivariate Statistics. The assignment is written in Rmarkdown, a smart syntax supported by RStudio helping with formula, plot visualization and plugin codes running.
The fifth assignment of Multivariate Statistics. The assignment is written in Rmarkdown, a smart syntax supported by RStudio helping with formula, plot visualization and plugin codes running.
The fifth assignment of Multivariate Statistics. The assignment is written in Rmarkdown, a smart syntax supported by RStudio helping with formula, plot visualization and plugin codes running.