Jumat, 14 Juni 2013

Tugas Probabilitas dan Statistika

Nama : Andri Abadi
NPM : 1215031010

Ploting data menggunakan Pemrograman Phyton.

Berikut adalah data yang digunakan :


Sumber Data : http://www.bps.go.id/tab_sub/view.php?kat=2&tabel=1&daftar=1&id_subyek=02&notab=4

Syntax Pemrograman :

import numpy as np
import matplotlib.pyplot as plt

N = 7
perkotaanMeans = (25.80, 22.95, 24.51, 20.93, 18.65, 16.43, 13.51)

ind = np.arange(N)  # the x locations for the groups
width = 0.3       # the width of the bars

plt.subplot(111)
rects1 = plt.bar(ind, perkotaanMeans, width,
                    color='brown',
                    error_kw=dict(elinewidth=5, ecolor='pink'))

perdesaanMeans = (3.37, 2.35, 3.72, 2.91, 2.56, 2.56, 2.30)

rects2 = plt.bar(ind+width, perdesaanMeans, width,
                    color='yellow',
                    
                    error_kw=dict(elinewidth=5, ecolor='yellow'))

perkotaanperdesaanMeans = (13.01, 11.20, 12.96, 11.67, 10.36, 9.46, 7.85)

rects3 = plt.bar(ind+width+width, perkotaanperdesaanMeans, width,
                    color='b',
                    
                    error_kw=dict(elinewidth=5, ecolor='yellow'))

# add some
plt.ylabel('persentase')
plt.title('Persentase Rumah Tangga yang Memiliki/Menguasai Telepon Tetap Kabel Menurut Klasifikasi Daerah Tahun 2005 - 2011')
plt.xticks(ind+width, ('2005', '2006', '2007', '2008', '2009', '2010','2011') )

plt.legend( (rects1[0], rects2[0], rects3[0]), ('Perkotaan', 'Perdesaan', 'Perkotaan+Perdesaan',) )

def autolabel(rects):
    # attach some text labels
    for rect in rects:
        height = rect.get_height()
        plt.text(rect.get_x()+rect.get_width()/4., 1.01*height, '%d'%int(height),
                ha='left', va='bottom')

autolabel(rects1)
autolabel(rects2)
autolabel(rects3)

plt.grid()
plt.show()

Gambar yang dihasilkan dari syntax di atas adalah sebagai berikut :



Grafik di atas menunjukan data prsentase rumah tangga yang memiliki atau menguasai telepon tetap kabel menurut klasifikasi daerah pada tahun 2005 - 2011. 




Kamis, 31 Januari 2013

Floods Hit Bandar Lampung

     Recently there has been an unexpected event in Lampung province especially in Bandar Lampung.
Flooding has occurred in some areas in Bandar Lampung a few days ago. This flood hit the town because of heavy rains from Thursday ( 24 January ) afternoon to evening with high intensity was felt residents never happened since January 2013 that hit the port city of Lampung. flooding caused by drainage less well, and drains were not large enough to accommodate the discharge of water flowing, and because of the people who are not orderly and throwing trash out of place. Floods inundate several protocol roads in Bandar Lampung, including Jalan Kartini, Jalan Sudirman and Jalan Z.A Pagar alam. Flooding in Jalan Kartini exactly in front of the Central Plaza Mall reaches a height of 1 meter and this floods cause jamming in this road up to 300 meter.



    Still on Jalan Kartini exactly in front of Panin Bank floods levels reached up to 1 , 2 meter. This is because in front of Panin Bank there is a path in the form of the basin so that the basin has a capacity discharge enough water to reached up to 1 , 2 meter. Floods that hit in the port city of Lampung doesn't stop here, This flood also hit a hospital in the port city of Lampung. The hospitals affected by the floods is Abdul Moeloek hospital. The floods that hit this hospital was reached a height of  20  to  25  cm. The result of this incident  is the patient's hospital should be removed from flooded floor to higher floor by medics. And the medics had to save and move the medical equipment to move to a higher floor and more secure from water flooding.



     On the ground floor of the mall kartini also submerged in flood water. The floods in this place reached up to  40  until  60  cm or reach adult knee. This water flooding come from water channel that clogged by trash. Until saturday ( 26 January ) high-intensity rainfall in the region is still going Lampung especially in the port city of Lampung. The residents are still afraid of aftershocks flood and always wary when a flood occurs again. Estimated flooding that occurred in parts of the city airport lampung on Thursday evening last week until saturday has damaged public facilities, and has been soaking approximately 1. 250  homes, and has claimed the lives of two children affected by the wall that eroded rainwater. After this incident, be expected that Bandar Lampung  government rearranging and rebuild all of drains and water channel in this city, so that in the future it will not happen anymore. And expected Bandar Lampung will be beuatifull city in the future, amin.

reference : http://www.republika.co.id 
                 http://www.radarlampung.co.id 

Selasa, 29 Januari 2013

Plot of Red Rock West

    An ex-marine who was unemployed his name is michael williams (Nicolas Cage) went to a town named Wyoming. He was promised a job as a drilling crew by his friend, Jim. But he was refused because of his leg was incapability. Jim didn't know about Michael's leg because Michael never told him before, and Jim can't do anything to changed his boss's mind to refused Michael, then Michael left that place. In his way he went to gas station to fill his car fuel. And he got suggest by the owner of gas station to go to a bar in small town named Red Rock to get job.
   In this bar he met Wayne Brown (J.T.Walsh) , the owner of the bar and a Sherief in Red Rock. Wayne Brown  thought that Michael was Lyle (Dennis Hopper), a killer who he commanded to kill his wife. Then wayne asked to Michael if he is Lyle and come from Dallas and coming to this town to do a job. Without thinking Michael who need a job said yes to what Wayne asked to him. And turn out Wayne command Michael to kill Suzanne (Lara Flynn Boyle), his wife. And then Michael went to Suzanne's house, in there he didn't kill her but he told to Suzanne about the truth. And he got more money from Suzanne to kill Wayne. But he didn't what Wayne and Suzanne command to him. He just picked up the money and go.    

   Unfortunately, in his way as he left Red Rock he hit a man. Then he must go back to Red Rock to brought this guy to the hospital. In here he met Wayne again, wayne realized that he  had been lied by Michael. Wayne is really upset and he want to killed Michael, but Michael can escape from Wayne. And then Wayne met real Lyle and told to him what has happened. Wayne and Lyle looking for Michael to killed him. And Michael went to Suzanne's house to help Suzanne from the real Lyle.
  Finally, Michael know the truth that Wayne and Suzanne were robber and wanted by FBI. And Lyle know too about the truth, then he take Michael, Suzanne, and Wayne to go to cemetery to take wayne and Suzanne's loot money. In this cemetery, scramble of loot money occurred, and then Michael and Suzanne can escape from this situation. They escaped from that cemetry by the train, and Suzanne succed to bring the money. The police who know this incident pursue Michael and Suzanne. In the train, Suzanne want to have all the money and she want to kill Michael with the gun. But no bullet in the gun, then Michael throw away all the money out of the train and he pushed Suzanne out of the train too. And finally Suzanne arrested by the police and Michael succeed go away by the train and get some money.