Anda di halaman 1dari 7

TUGAS PERHITUNGAN KORELASI DARI DATA LAPANGAN

PENGANTAR EKONOMETRIKA

DISUSUN OLEH:
BERLIAN RIZALDI (21037009)
DOSEN PEMBIMBING: Dr. DONY PERMANA, S.Si, M.Si

PRODI D3 STATISTIKA

FAKULTAS MATEMATIKA DAN PENGETAHUAN ALAM

UNIVERSITAS NEGERI PADANG

2023
Langkah-langkah pengerjaan :

1. Carilah data lapangan berisi 3 variabel dengan ukuran minimal 30 buah (disusun sbg matriks
ukuran min 30 baris x 3 kolom), sebut sebagai X1, X2, X3.
2. sumber data adalah online yang bisa diperoleh di situs BPS, BI, finance, kaggle, wordbank,
worldometer, data covid, dll.  Data boleh bersifat timeseries (pengamatan waktu) maupun
cross section (pengamatan obyek bukan waktu).
3. Hitunglah korelasi antara X1 dengan X2, X1 dengan  X3, dan  X2 dengan X3
4. Plotkan masing variabel dengan sumbu x adalah waktu atau nomor obyek
5. Berilah komentar anda atas hasil dari masing-masing korelasi dan plotnya yg diperintahkan
di (3) dan (4)
6. Tugas disusun dgn diberi cover dengan isi, data mentah, hasil korelasi, dan 3 buah gambar
plot utk masing2 variabel

Jawaban:

1. Data berasal dari kaggle dengan judul “Student Performance in Exams” memiliki 8
variabel dan 1.000 amatan, dimana akan digunakan 3 variabel dan 50 amatan untuk
melihat korelasi antar variabel. 3 variabel yang digunakan adalah :
a. Math score, nilai matematika untuk X1
b. Reading score, nilai membaca untuk X2
c. Writing score, nilai menulis untukX3

Berikut ini data mentah dari “Student Performance in Exams”

test
gende race/ parental level of math reading writing
lunch preparation
r ethnicity education score score score
course
femal bachelor's
e group B degree standard none 72 72 74
femal
e group C some college standard completed 69 90 88
femal
e group B master's degree standard none 90 95 93
associate's free/
male group A degree reduced none 47 57 44
male group C some college standard none 76 78 75
femal associate's
e group B degree standard none 71 83 78
femal
e group B some college standard completed 88 95 92
free/
male group B some college reduced none 40 43 39
free/
male group D high school reduced completed 64 64 67
femal free/
e group B high school reduced none 38 60 50
associate's
male group C degree standard none 58 54 52
associate's
male group D degree standard none 40 52 43
femal
e group B high school standard none 65 81 73
male group A some college standard completed 78 72 70
femal
e group A master's degree standard none 50 53 58
femal
e group C some high school standard none 69 75 78
male group C high school standard none 88 89 86
femal free/
e group B some high school reduced none 18 32 28
free/
male group C master's degree reduced completed 46 42 46
femal associate's free/
e group C degree reduced none 54 58 61
male group D high school standard none 66 69 63
femal free/
e group B some college reduced completed 65 75 70
male group D some college standard none 44 54 53
femal
e group C some high school standard none 69 73 73
bachelor's free/
male group D degree reduced completed 74 71 80
free/
male group A master's degree reduced none 73 74 72
male group B some college standard none 69 54 55
femal bachelor's
e group C degree standard none 67 69 75
male group C high school standard none 70 70 65
femal
e group D master's degree standard none 62 70 75
femal
e group D some college standard none 69 74 74
femal
e group B some college standard none 63 65 61
femal free/
e group E master's degree reduced none 56 72 65
male group D some college standard none 40 42 38
male group E some college standard none 97 87 82
associate's
male group E degree standard completed 81 81 79
femal associate's
e group D degree standard none 74 81 83
femal free/
e group D some high school reduced none 50 64 59
femal associate's free/
e group D degree reduced completed 75 90 88
associate's free/
male group B degree reduced none 57 56 57
associate's free/
male group C degree reduced none 55 61 54
femal associate's
e group C degree standard none 58 73 68
femal associate's
e group B degree standard none 53 58 65
free/
male group B some college reduced completed 59 65 66
femal associate's free/
e group E degree reduced none 50 56 54
associate's
male group B degree standard none 65 54 57
femal associate's
e group A degree standard completed 55 65 62
femal
e group C high school standard none 66 71 76
femal associate's free/
e group D degree reduced completed 57 74 76
male group C high school standard completed 82 84 82

2. Berikut ini hasil korelasi yang didapatkan antara variabel X1 dan X2, X1 dan X3, X2 dan
X3
Dari matriks korelasi di atas, dapat dilihat bahwa X1 dan X2, memiliki korelasi
positif yang kuat antara satu sama lain dengan nilai korelasi 0.86. Begitu juga dengan
korelasi X1 dan X3, X2 dan X3 yang memiliki nilai korelasi masing-masing 0.88 dan
0.95. Dari ketiga korelasi tersebut, yang memiliki korelasi yang kuat adalah variabel X2
dan X3.

3. Plot dari masing-masing variabel dengan sumbu x nya adalah nomor objek

Anda mungkin juga menyukai