Python Programming for Biology: Bioinformatics and Beyond



Download 7,75 Mb.
Pdf ko'rish
bet414/514
Sana30.12.2021
Hajmi7,75 Mb.
#91066
1   ...   410   411   412   413   414   415   416   417   ...   514
Bog'liq
[Tim J. Stevens, Wayne Boucher] Python Programming

The Monte Carlo method

The Monte Carlo method

1

means to randomly test data points to approximate or guess a




solution,  thus  getting  a  good  idea  of  what  is  going  on  by  sampling  only  a  few  points,

rather than many. This approach is often coupled with targeting the selection of data points

towards the most promising or important results. This leads directly into the Markov chain

idea, where we can base a new selection on the last one, and a famous implementation of

this is the Metropolis-Hastings algorithm,

2

,



3

for making the next guess, for an effectively

random walk with probabilistic selection that echoes thermodynamic energy.

Key to the implementation of Monte Carlo and related methods is the ability to generate

random,  or  almost  random,  numbers.  Fortunately  in  Python  we  can  exploit  the  random

module  and  its  equivalent  in  NumPy.  Usually  we  do  not  require  absolutely  random

numbers so the usual pseudorandom generators will be sufficient. The important thing is

that  the  distribution  of  the  emitted  numbers  is  approximately  correct  (typically  uniform;

level  throughout  a  range)  and  that  there  is  no  significant  selection  bias.  Having  truly

random  numbers  that  are  entirely  unpredictable  doesn’t  matter.  Indeed,  being  able  to

restart a Monte Carlo run with the same set of pseudorandom numbers can be useful for

testing.



Download 7,75 Mb.

Do'stlaringiz bilan baham:
1   ...   410   411   412   413   414   415   416   417   ...   514




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish