Anda di halaman 1dari 37

LAPORAN TUGAS AKHIR WORKSHOP KOMPUTER DAN

STATISTIKA

UKURAN DASAR TEKNIK ANALISIS DEMOGRAFI DAN


FORECASTINGNYA
Disusun Oleh:
Nama: Rizki Fitriana
NIM: 4112313019
Prodi: Statistika Terapan dan Komputasi

JURUSAN MATEMATIKA
FAKULTAS MATEMATIKA DAN ILMU PENGETAHUAN ALAM
UNIVERSITAS NEGERI SEMARANG
2015

BAB 1
PENDAHULUAN
1.1

Latar Belakang
Seiring dengan perkembangnnya teknologi, bayak bermunjulan aplikasi
dalam penghitungan statistik. Dengan adanya aplikasi statistik tersebut akan
mempermudah dalam perhitungan dan menefisienkan waktu dalam
perhitungannya. Salah satu instansi pemerintahan yang bertugas untuk
menghitung angka kepadatan penduduk dan angka kelahiran, kematian kasar
adalah Badan Pusat Statitika. Sampai saat ini BPS dalam perhitungan angka
kepadatan

penduduk

dan

angka

kelahiran,

kematian

kasar

masih

menggunakan perhitungan manual. Oleh karena itu, penulis akan membuat


aplikasi yang akan membantu BPS dalam perhitungan angka kepadatan
penduduk dan angka kelahiran, kematian kasar disertakan aplikasi untuk
meramalkan angka kepadatan penduduk dan angka kelahiran, kematian kasar
pada periode berikutnya.
1.2

Rumusan Masalah
Dari latar belakang diatas dapat dirumuskan masalah sebagai berikut:
1. Bagaimana cara penggunaan aplikasi tersebut?

1.3

Tujuan dan Manfaat


Tujuan dari laporan diatas adalah:
1. Mengetahui bagaimna cara penggunaan apilkasi tersebut.
Manfaat dari laporan diatas adalah:
1. Dapat membantu instansi pemerintah BPS dalam perhitungan angka
kepadatan penduduk dan angka kelahiran, kematian kasar menjadi lebih
mudah dan efisien.

BAB 2
LANDASAN TEORI
2.1

Rata rata Bergerak Tunggal (Single Moving Averages)


Menetukan ramalan dengan metode single moving averages cukup
mudah dilakukan. Bila akan menerapkan 3 bulan rata-rata bergerak maka
ramalan pada bulan April dihitung sebesar rata-rata dari bulan sebelumnya,
yaitu bulan Januari, Februari, Maret. Bila akan menerapkan 5 bulan rata-rata
bergerak maka ramalan pada bulan Juni dihitung sebesar rata-rata dari bulan
sebelumnya, yaitu bulan Januari, Februari, Maret,April,Mei Persamaan
Matematis dari teknik ini adalah :
F

t +1=

X1 + X2 ++ XT
T

Keterangan:
Ft+1

:Ramalan untuk Periode ke t+1

XT :Nilai riil periode ke t


T :jangka waktu rata-rata bergerak.
a) Menghitung Kesalahan Ramalan
Hasil

proyeksi

yang

akurat

adalah

forecast

yang

bisa

meminimalkan kesalahan meramal (forecast error). Besarnya forecast


error dihitung dengan mengurangi data riil dengan besarnya ramalan.
Error (E) = Xt-Ft
Keterangan:
Xt= data rill periode ke t
Ft=ramalan periode ke t
Dalam menghitung forecast error digunakan.

b) Mean Squared Error


Mean Squared Error adalah kuadrat rata-rata kesalahan meramal.

MSE =

XtFt
()2
n

Metode ini mudah menghitungnya dan sederhana, tetapi mempunyai


kelemahan-kelemahan antara lain :
(1) perlu data histories yang cukup,
(2) data tiap periode diberi weight (bobot) sama,
(3) kalau fluktuasi data tidak random, tidak menghasilkan forecasting yang
baik.
2.2

Kepadatan Penduduk Fisiolois


Kepadatan penduduk fisiologis adalah angka yang menunjukkan
perbandingan banyaknya penduduk dengan luas lahan pertanian. Rumus
untuk menghitung kepadatan penduduk fisiologis adalah sebagai berikut:
KPf =

Keterangan:
KPf = kepadatan penduduk fisiologis (orang/ha atau orang/km2)
P = jumlah penduduk
Lt = luas lahan pertanian
2.3

Kepadatan Penduduk Agraris


Kepadatan

penduduk

agraris

adalah

angka

yang

menunjukkan

perbandingan banyaknya penduduk petani dengan luas lahan pertanian.


Formulasi yang digunakan untuk menghitung kepadatan penduduk agraris
adalah sebagai berikut:
KPa=

Pt

Keterangan:

KPa = kepadatan penduduk agraris (orang/ha atau orang/km2)


Pt = jumlah penduduk petani
Lt = luas lahan pertanian.
2.4

Tingkat Kelahiran Kasar


Angka kelahiran kasar (Crude Birth Rate) adalah angka yang
menunjukkan bayi yang

lahir setiap 1000 penduduk dalam satu tahun.

Berikut adalah rumus untuk menghitung angka kelahiran kasar:


CBR=

L
1000
P

Keterangan:
L=Jumlah kelahiran selama satu tahun
P=Jumlah penduduk pertengahan tahun dari tahun yang sama
2.5

Tingkat Kematian Kasar


Angka kematian kasar (Crude death rate) adalah angka yang menunjukkan
jumlah kematian setiap 1000 penduduk dalam setahun. Berikut adalah rumus
untuk menghitung angka kematian kasar:
CDR=

M
1000
P

Keterangan:
M=jumlah kematian dalam setahun
P=Jumlah penduduk pertengahan dari tahun yang sama.

BAB III
PEMBAHASAN
3.1

TAMPILAN APLIKASI
1.

Tampilan Halaman Awal

Script:
Private Sub Command1_Click()
Form2.Show
'Menampilkan Form2 ketika Command Button diklik.
'Materi Single Moving Average'
Unload Me
'Menutup Form1 ketika Form2 terbuka
End Sub

2.

Tampilan Halaman Ke dua

Script:
Private Sub Command1_Click()
Form3.Show
'Menampilkan Form2 ketika Command Button diklik.
'Materi Single Moving Average'
Unload Me
'Menutup Form1 ketika Form2 terbuka
End Sub
Private Sub Command2_Click()
Form11.Show
'Menampilkan Form2 ketika Command Button diklik.
'Materi Single Moving Average'
Unload Me
'Menutup Form1 ketika Form2 terbuka

End Sub
Private Sub Command3_Click()
Form5.Show
'Menampilkan Form2 ketika Command Button diklik.
'Materi Single Moving Average'
Unload Me
'Menutup Form1 ketika Form2 terbuka
End Sub
Private Sub Command4_Click()
Form6.Show
'Menampilkan Form2 ketika Command Button diklik.
'Materi Single Moving Average'
Unload Me
'Menutup Form1 ketika Form2 terbuka
End Sub
3.

Tampilan Hal ke 3

4. Tampilan Halaman Ke 5 (Hasil Perhitungan KP)

Script:
Dim eksel As Excel.Application
Dim wb As Excel.Workbook
Dim ws As Excel.Worksheet
Private Sub cmdbuka_Click()
End Sub
Private Sub CloseWorksheet()
On Error Resume Next
wb.Close
eksel.Quit
End Sub
Private Sub ClearExcelMemory()
If Not ws Is Nothing Then Set ws = Nothing
If Not wb Is Nothing Then Set wb = Nothing
If Not eksel Is Nothing Then Set eksel = Nothing
End Sub
Private Sub startexcel()
On Error GoTo salah
Set eksel = GetObject(, "excel.Application")
Exit Sub
salah:
Set eksel = CreateObject("excel.Application")
End Sub

Private Sub Cmdambil_Click()


startexcel
'buka commondialog open
C.DialogTitle = "Membuka File Excel"
C.ShowOpen
nama = C.FileName
Set wb = eksel.Workbooks.Open(nama)
MsgBox "Berhasil Membuka File"
Set ws = eksel.Worksheets(1)
MsgBox "Berhasil membuat worksheet"
Dim I As Integer, baris As Integer, strdata As String
F.Cols = 4
F.Rows = 21
F.TextMatrix(0, 1) = ws.Cells(1, 1)
F.TextMatrix(0, 2) = ws.Cells(1, 2)
F.TextMatrix(0, 3) = ws.Cells(1, 3)
For I = 1 To 20
For J = 1 To 3
F.TextMatrix(I, J) = ws.Cells(I + 1, J)
Next J
Next I
CloseWorksheet
ClearExcelMemory
Call aturgrid
End Sub
Private Sub aturgrid()
For L = 1 To 20
F.TextMatrix(L, 0) = L
Next L
F.ColWidth(0) = 300
F.ColWidth(1) = 1000
End Sub
Private Sub Cmdambil1_Click()
startexcel
'buka commondialog open
A.DialogTitle = "Membuka File Excel"
A.ShowOpen
nama = A.FileName
Set wb = eksel.Workbooks.Open(nama)
MsgBox "Berhasil Membuka File"
Set ws = eksel.Worksheets(1)
MsgBox "Berhasil membuat worksheet"
Dim I As Integer, baris As Integer, strdata As String
D.Cols = 4
D.Rows = 21
D.TextMatrix(0, 1) = ws.Cells(1, 1)

D.TextMatrix(0, 2) = ws.Cells(1, 2)
D.TextMatrix(0, 3) = ws.Cells(1, 3)
For I = 1 To 20
For J = 1 To 3
D.TextMatrix(I, J) = ws.Cells(I + 1, J)
Next J
Next I
CloseWorksheet
ClearExcelMemory
Call aturgrid1
End Sub
Private Sub aturgrid1()
For L = 1 To 20
D.TextMatrix(L, 0) = L
Next L
D.ColWidth(0) = 300
D.ColWidth(1) = 1000
End Sub
Private Sub Command1_Click()
F.Cols = F.Cols + 1
For K = 1 To 19
F.TextMatrix(K, 4) = Round(F.TextMatrix(K, 2) / F.TextMatrix(K, 3), 2)
F.TextMatrix(0, 4) = "KP Fisiologis"
Next K
End Sub
Private Sub Command2_Click()
Form7.Show
'Menampilkan Form2 ketika Command Button diklik.
'Materi Single Moving Average'
Unload Me
'Menutup Form1 ketika Form2 terbuka
End Sub
Private Sub Command3_Click()
Form5.Show
'Menampilkan Form2 ketika Command Button diklik.
'Materi Single Moving Average'
Unload Me
'Menutup Form1 ketika Form2 terbuka
End Sub
Private Sub Command4_Click()
Form2.Show
'Menampilkan Form2 ketika Command Button diklik.

'Materi Single Moving Average'


Unload Me
'Menutup Form1 ketika Form2 terbuka
End Sub
Private Sub Command5_Click()
D.Cols = D.Cols + 1
For H = 1 To 19
D.TextMatrix(H, 4) = Round(D.TextMatrix(H, 2) / D.TextMatrix(H, 3), 2)
D.TextMatrix(0, 4) = "KP Agraris"
Next H
End Sub
Private Sub Command6_Click()
Form8.Show
'Menampilkan Form2 ketika Command Button diklik.
'Materi Single Moving Average'
Unload Me
'Menutup Form1 ketika Form2 terbuka
End Sub
Private Sub Command7_Click()
Form14.Show
'Menampilkan Form2 ketika Command Button diklik.
'Materi Single Moving Average'
Unload Me
'Menutup Form1 ketika Form2 terbuka
End Sub
5. Tampilan Hal Ke 6 (Tingkat-Rates)

6. Tampilan Hal ke 7 (Perhitungan Tingkat-rates)

Script:
Dim eksel As Excel.Application
Dim wb As Excel.Workbook
Dim ws As Excel.Worksheet

Private Sub cmdbuka_Click()


End Sub
Private Sub CloseWorksheet()
On Error Resume Next
wb.Close

eksel.Quit
End Sub
Private Sub ClearExcelMemory()
If Not ws Is Nothing Then Set ws = Nothing
If Not wb Is Nothing Then Set wb = Nothing
If Not eksel Is Nothing Then Set eksel = Nothing
End Sub
Private Sub startexcel()
On Error GoTo salah
Set eksel = GetObject(, "excel.Application")
Exit Sub
salah:
Set eksel = CreateObject("excel.Application")
End Sub
Private Sub Cmdambil4_Click()
startexcel
'buka commondialog open
L.DialogTitle = "Membuka File Excel"
L.ShowOpen
nama = L.FileName
Set wb = eksel.Workbooks.Open(nama)

MsgBox "Berhasil Membuka File"


Set ws = eksel.Worksheets(1)
MsgBox "Berhasil membuat worksheet"
Dim I As Integer, baris As Integer, strdata As String
G.Cols = 4
G.Rows = 21
G.TextMatrix(0, 1) = ws.Cells(1, 1)
G.TextMatrix(0, 2) = ws.Cells(1, 2)
G.TextMatrix(0, 3) = ws.Cells(1, 3)
For A = 1 To 20
For B = 1 To 3
G.TextMatrix(A, B) = ws.Cells(A + 1, B)
Next B
Next A
CloseWorksheet
ClearExcelMemory
Call aturgrid
End Sub
Private Sub aturgrid()
For Z = 1 To 20
G.TextMatrix(Z, 0) = Z

Next Z
G.ColWidth(0) = 300
G.ColWidth(1) = 1000
End Sub

Private Sub Cmdambil5_Click()


startexcel
'buka commondialog open
W.DialogTitle = "Membuka File Excel"
W.ShowOpen
nama = W.FileName
Set wb = eksel.Workbooks.Open(nama)
MsgBox "Berhasil Membuka File"
Set ws = eksel.Worksheets(1)
MsgBox "Berhasil membuat worksheet"
Dim I As Integer, baris As Integer, strdata As String
V.Cols = 4
V.Rows = 21
V.TextMatrix(0, 1) = ws.Cells(1, 1)
V.TextMatrix(0, 2) = ws.Cells(1, 2)
V.TextMatrix(0, 3) = ws.Cells(1, 3)

For A = 1 To 20
For B = 1 To 3
V.TextMatrix(A, B) = ws.Cells(A + 1, B)
Next B
Next A
CloseWorksheet
ClearExcelMemory
Call aturgrid
End Sub
Private Sub aturgrid4()
For Z = 1 To 20
V.TextMatrix(Z, 0) = Z
Next Z
V.ColWidth(0) = 300
V.ColWidth(1) = 1000
End Sub
End Sub

Private Sub Command1_Click()


Form15.Show
'Menampilkan Form2 ketika Command Button diklik.

'Materi Single Moving Average'


Unload Me
'Menutup Form1 ketika Form2 terbuka
End Sub

Private Sub Command2_Click()


G.Cols = G.Cols + 1
For e = 1 To 19
G.TextMatrix(e, 4) = Round((G.TextMatrix(e, 2) / G.TextMatrix(e, 3)) * 1000,
2)
G.TextMatrix(0, 4) = "Tingkat Kelahiran Kasar"
Next e
End Sub

Private Sub Command3_Click()


Form9.Show
'Menampilkan Form2 ketika Command Button diklik.
'Materi Single Moving Average'
Unload Me
'Menutup Form1 ketika Form2 terbuka
End Sub

Private Sub Command5_Click()


V.Cols = V.Cols + 1
For P = 1 To 19
V.TextMatrix(P, 4) = Round((V.TextMatrix(P, 2) / G.TextMatrix(P, 3)) * 1000,
2)
V.TextMatrix(0, 4) = "Tingkat Kematian Kasar"
Next P
End Sub

Private Sub Command6_Click()


Form10.Show
'Menampilkan Form2 ketika Command Button diklik.
'Materi Single Moving Average'
Unload Me
'Menutup Form1 ketika Form2 terbuka
End Sub

Private Sub Command7_Click()


Form2.Show
'Menampilkan Form2 ketika Command Button diklik.

'Materi Single Moving Average'


Unload Me
'Menutup Form1 ketika Form2 terbuka
End Sub

Private Sub Command8_Click()


Form6.Show
'Menampilkan Form2 ketika Command Button diklik.
'Materi Single Moving Average'
Unload Me
'Menutup Form1 ketika Form2 terbuka
End Sub
7. Tampilan Hal Ke 8 (Peramalan)

8. Tampilan Hal ke 9 (Perhitungan Forecasting)

Script:
Dim eksel As Excel.Application
Dim wb As Excel.Workbook

Dim ws As Excel.Worksheet

Private Sub cmdbuka_Click()


End Sub
Private Sub CloseWorksheet()
On Error Resume Next
wb.Close
eksel.Quit
End Sub
Private Sub ClearExcelMemory()
If Not ws Is Nothing Then Set ws = Nothing
If Not wb Is Nothing Then Set wb = Nothing
If Not eksel Is Nothing Then Set eksel = Nothing
End Sub
Private Sub startexcel()
On Error GoTo salah
Set eksel = GetObject(, "excel.Application")
Exit Sub
salah:
Set eksel = CreateObject("excel.Application")
End Sub

Private Sub Cmdambil6_Click()


startexcel

'buka commondialog open


S.DialogTitle = "Membuka File Excel"
S.ShowOpen
nama = S.FileName
Set wb = eksel.Workbooks.Open(nama)
MsgBox "Berhasil Membuka File"
Set ws = eksel.Worksheets(1)
MsgBox "Berhasil membuat worksheet"
Dim I As Integer, baris As Integer, strdata As String
R.Cols = 2
R.Rows = 20
R.TextMatrix(0, 1) = ws.Cells(1, 1)
For I = 1 To 19
For J = 1 To 1
R.TextMatrix(I, J) = ws.Cells(I + 1, J)
Next J
Next I
CloseWorksheet
ClearExcelMemory
Call aturgrid
End Sub
Private Sub aturgrid()
For L = 1 To 19
R.TextMatrix(L, 0) = L
Next L

R.ColWidth(0) = 300
R.ColWidth(1) = 1000
End Sub

Private Sub cmdrata_Click()


Dim hasil1, hasil2, hasil3, hasil4 As Single
ErrorKuadrat = 0
ErrorKuadrat1 = 0
For N = 4 To 19
ErrorKuadrat = ErrorKuadrat + R.TextMatrix(N, 4)
Next N
For T = 6 To 19
ErrorKuadrat1 = ErrorKuadrat1 + R.TextMatrix(T, 7)
Next T
hasil1 = Round((ErrorKuadrat / 16), 2)
hasil2 = Round((ErrorKuadrat1 / 14), 2)
txtrata.Text = hasil1
txtrata1.Text = hasil2
End Sub

Private Sub Command1_Click()


Form12.Show
'Menampilkan Form2 ketika Command Button diklik.
'Materi Single Moving Average'
Unload Me

'Menutup Form1 ketika Form2 terbuka


End Sub

Private Sub Command3_Click()


Form13.Show
'Menampilkan Form2 ketika Command Button diklik.
'Materi Single Moving Average'
Unload Me
'Menutup Form1 ketika Form2 terbuka
End Sub

Private Sub Command4_Click()


R.Cols = R.Cols + 1
For W = 4 To R.Rows - 1
R.TextMatrix(W, 2) = Format((((Val(R.TextMatrix(W - 1, 1)) +
Val(R.TextMatrix(W - 2, 1)) + Val(R.TextMatrix(W - 3, 1))) / 3)), "#0.##")
R.TextMatrix(0, 2) = "Forecast"
Next W
R.Cols = R.Cols + 1
For X = 4 To R.Rows - 1
R.TextMatrix(X, 3) = Round((R.TextMatrix(X, 1) - R.TextMatrix(X, 2)), 2)
R.TextMatrix(0, 3) = "Error"
Next X
R.Cols = R.Cols + 1
For Y = 4 To R.Rows - 1

R.TextMatrix(Y, 4) = Round(R.TextMatrix(Y, 3) * R.TextMatrix(Y, 3), 2)


R.TextMatrix(0, 4) = "Error Kuadrat"
Next Y
End Sub

Private Sub Command5_Click()


R.Cols = R.Cols + 1
For V = 6 To R.Rows - 1
R.TextMatrix(V, 5) = Format((((Val(R.TextMatrix(V - 1, 1)) +
Val(R.TextMatrix(V - 2, 1)) + Val(R.TextMatrix(V - 3, 1)) + Val(R.TextMatrix(V 4, 1)) + Val(R.TextMatrix(V - 5, 1))) / 5)), "#0.##")
R.TextMatrix(0, 5) = "Forecast"
Next V
R.Cols = R.Cols + 1
For O = 6 To R.Rows - 1
R.TextMatrix(O, 6) = Round((R.TextMatrix(O, 1) - R.TextMatrix(O, 5)), 2)
R.TextMatrix(0, 6) = "Error"
Next O
R.Cols = R.Cols + 1
For T = 6 To R.Rows - 1
R.TextMatrix(T, 7) = Round(R.TextMatrix(T, 6) * R.TextMatrix(T, 6), 2)
R.TextMatrix(0, 7) = "Error Kuadrat1"
Next T
End Sub

Private Sub Command6_Click()

Form16.Show
'Menampilkan Form2 ketika Command Button diklik.
'Materi Single Moving Average'
Unload Me
'Menutup Form1 ketika Form2 terbuka
End Sub

Private Sub Command7_Click()


Form2.Show
'Menampilkan Form2 ketika Command Button diklik.
'Materi Single Moving Average'
Unload Me
'Menutup Form1 ketika Form2 terbuka
End Sub

9. Tampilan Materi (KP, Tingkat, Peramalan)

Script:
Private Sub Command1_Click()
Form3.Show
'Menampilkan Form2 ketika Command Button diklik.
'Materi Single Moving Average'
Unload Me
'Menutup Form1 ketika Form2 terbuka
End Sub

Script:
Private Sub Command1_Click()
Form3.Show
'Menampilkan Form2 ketika Command Button diklik.
'Materi Single Moving Average'
Unload Me
'Menutup Form1 ketika Form2 terbuka
End Sub

Script:
Private Sub Command1_Click()
Form5.Show
'Menampilkan Form2 ketika Command Button diklik.
'Materi Single Moving Average'
Unload Me
'Menutup Form1 ketika Form2 terbuka
End Sub

Script:
Private Sub Command1_Click()
Form5.Show
'Menampilkan Form2 ketika Command Button diklik.
'Materi Single Moving Average'
Unload Me

'Menutup Form1 ketika Form2 terbuka


End Sub

Script:
Private Sub Command1_Click()
Form6.Show
'Menampilkan Form2 ketika Command Button diklik.
'Materi Single Moving Average'
Unload Me
'Menutup Form1 ketika Form2 terbuka
End Sub

10. Tampilan Menu Help

Script:
Private Sub Command1_Click()
Form2.Show
'Menampilkan Form2 ketika Command Button diklik.
'Materi Single Moving Average'
Unload Me
'Menutup Form1 ketika Form2 terbuka
End Sub

Script:
Private Sub Command1_Click()
Form3.Show
'Menampilkan Form2 ketika Command Button diklik.
'Materi Single Moving Average'
Unload Me
'Menutup Form1 ketika Form2 terbuka
End Sub

Script:
Private Sub Command1_Click()
Form5.Show
'Menampilkan Form2 ketika Command Button diklik.
'Materi Single Moving Average'
Unload Me
'Menutup Form1 ketika Form2 terbuka
End Sub

Script:
Private Sub Command1_Click()
Form6.Show
'Menampilkan Form2 ketika Command Button diklik.
'Materi Single Moving Average'
Unload Me
'Menutup Form1 ketika Form2 terbuka
End Sub

11. Tampilan Penutup

Script:
Private Sub Command1_Click()
Form1.Show
'Menampilkan Form2 ketika Command Button diklik.
'Materi Single Moving Average'
Unload Me
'Menutup Form1 ketika Form2 terbuka
End Sub

BAB IV
PENUTUP
4.1 Kesimpulan
Dari hasil penelitian diatas dapat disimpulkan sebagai berikut:
1. Mengetahui bagaimana cara penggunaan aplikasi diatas.
4.2 Saran
Saran yang mungkin dapat dilaksanakan adalah:
1. Diharapkan agar semua instansi BPS dapat menggunakan aplikasi
tersebut dalam perhitungan angka kepadatan penduduk dan angka
kelahiran, kematian kasar agar dapat mengefisienkan waktu.
2. Diharapkan akan ada penelitian selanjutnya dalam pembuatan aplikasi
tersebut berupa konteks perhitungannya dan software yang digunakan.

Anda mungkin juga menyukai