Deviasi

  • Uploaded by: Antonio Grafiko
  • 0
  • 0
  • May 2020
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View Deviasi as PDF for free.

More details

  • Words: 107
  • Pages: 1
Program Deviasi_standart; { untuk menghitung nilai rata-rata } { Varians dan deviasi standar } uses wincrt; const maksdata=25; type arraydata = array[1..Maksdata] of real; var i,n:integer; data:arraydata; jumlah,rerata,temp,varians,standev:real; begin Clrscr; write('Banyak Data: '); readln(n); writeln; for i:=1 to n do begin write('Data ke-',i:2,'='); readln(data[i]); end; { mnghitung jumlah dan rata-rata data } jumlah:=0; for i:=1 to n do jumlah:=jumlah+data[i]; rerata:=jumlah/n; { menghitung varian dan deviasi standar } temp:=0; for i:=1 to n do temp:=temp + sqr(data [i] - rerata); varians:=temp/n; standev:=sqrt(varians); { cetak hasil } writeln; writeln('cacah data = ',n:10); writeln('jumlah data = ',jumlah:10:4); writeln('nilai rata-rata = ',rerata:10:4); writeln('varians = ',varians:10:4); writeln('deviasi standar = ',standev:10:7); readln; end.

Related Documents


More Documents from "vira nabilah"

Laporan 1
May 2020 39
Laporan 6
May 2020 37
Daftar Riwayat Hidup
May 2020 40
Laporan Metnum Gw
May 2020 22
Surat2 Beasiswa
April 2020 20