I. Soal Latihan Terstruktur

Nomor 1.1

Consider the seven pairs of measurements (\(x_{1}\),\(x_{2}\)) plotted in Figure 1.1 :

##    [,1] [,2] [,3] [,4] [,5] [,6] [,7]
## x1    3  4.0    2    6    8    2  5.0
## x2    5  5.5    4    7   10    5  7.5

 
Calculate the sample means \(\bar{x}_{1}\) and \(\bar{x}_{2}\) , the sample variances \(s_{11}\) and \(s_{22}\) and the sampel covariance \(s_{12}\) !
 

Nomor 1.4

The 10 largest U.S. industrial corporations yield the following data :

 
(a.) Plot the scatter diagram and marginal dot diagrams for variables \(x_{1}\) and \(x_{2}\) . Comment on the appearance of the diagrams.
 
(b.) Compute \(\bar{x}_{1}\) , \(\bar{x}_{2}\) , \(s_{11}\), \(s_{22}\), \(s_{12}\) and \(r_{12}\) . Interpret \(r_{12}\) .
   

Sumber Soal : Johnson, R. A. dan Winchern, D. W. 2002. Applied Multivariate Statistical Analysis 5th edition. New Jersey: Prentice Hall, Pages 38-39.  
 

II. Jawaban

Nomor 1.1

Calculate the sample means \(\bar{x}_{1}\) and \(\bar{x}_{2}\) , the sample variances \(s_{11}\) and \(s_{22}\) and the sampel covariance \(s_{12}\) !

## [1] "Vector Means : "
##       x1       x2 
## 4.285714 6.285714 
## [1] "Matriks varians-kovarians : "
##          x1       x2
## x1 4.204082 3.704082
## x2 3.704082 3.561224

Hasil Penghitungan :

  • Nilai rata-rata \(x_{1}\) atau \(\bar{x}_{1}\) adalah 4,2857.
  • Nilai rata-rata \(x_{2}\) atau \(\bar{x}_{2}\) adalah 6,2857 .
  • Nilai varians sampel dari \(x_{1}\) atau \(s_{11}\) adalah 4,2040.
  • Nilai varians sampel dari \(x_{2}\) atau \(s_{22}\) adalah 3,5612.
  • Nilai kovarians antara \(x_{1}\) dan \(x_{2}\) atau \(s_{12}\) adalah 3,7040.

Nomor 1.4

(a.) Plot the scatter diagram and marginal dot diagrams for variables \(x_{1}\) and \(x_{2}\) . Comment on the appearance of the diagrams.

Data \(x_{1}\) dan \(x_{2}\) :

##      [,1]  [,2]  [,3]  [,4]  [,5]  [,6]  [,7]  [,8]  [,9] [,10]
## x1 126974 96933 86656 63438 55264 50976 39069 36156 35209 32416
## x2   4224  3835  3510  3758  3939  1809  2946   359  2480  2413
  • Memperjelas distribusi dari variabel \(x_{1}\) dan \(x_{2}\) dengan marginal density diagram.

Interpretasi Scatter dan Marginal dot diagram:
Scatter diagram memperlihatkan bahwa variabel sales ( \(x_{1}\) ) dan profit ( \(x_{2}\) ) memiliki hubungan yang positif. Marginal dot diagram menunjukkan bahwa variabel \(x_{1}\) memiliki distribusi menceng kanan (positive skewness). Sementara itu, untuk variabel \(x_{2}\) memiliki distribusi menceng kiri (negative skewness). Untuk memperjelas bentuk distribusi dari \(x_{1}\) dan \(x_{2}\) juga dibentuk marginal density diagram.

 
 
(b.) Compute \(\bar{x}_{1}\) , \(\bar{x}_{2}\) , \(s_{11}\), \(s_{22}\), \(s_{12}\) and \(r_{12}\) . Interpret \(r_{12}\) .

##   sales profits 
## 62309.1  2927.3
##             sales  profits
## sales   900458202 23018040
## profits  23018040  1287018
##             sales   profits
## sales   1.0000000 0.6761519
## profits 0.6761519 1.0000000

Hasil Penghitungan :

  • Nilai rata-rata sales atau \(\bar{x}_{1}\) adalah 62309,1.
  • Nilai rata-rata profits atau \(\bar{x}_{2}\) adalah 2927,3.
  • Nilai varians sampel dari sales atau \(s_{11}\) adalah 900458202.
  • Nilai varians sampel dari sales atau \(s_{22}\) adalah 1287018.
  • Nilai kovarians antara sales dan profits atau \(s_{12}\) adalah 23018040.
  • Nilai korelasi antara sales dan profits atau \(r_{12}\) adalah 0,6761.

Interpretasi \(r_{12}\) :
Nilai korelasi antara variabel sales dan profits sebesar 0,6761 , mengindikasikan bahwa hubungan antara kedua variabel tersebut cukup kuat dan positif.