probability, population and sample
TRANSCRIPT
Basic concepts: Probability, Population & SampleDr. S. A. Rizwan, M.D.
PublicHealthSpecialistSBCM, JointProgram– Riyadh
MinistryofHealth,KingdomofSaudiArabia
Learningobjectives
Demystifying statistics! – Lecture 1 SBCM, Joint Program – RiyadhSBCM, Joint Program – Riyadh
• Familiarisewithtermsusedinprobability• Defineprobability• Describethe3approachesofprobability• Understandthebasiclawsofprobability• Solveproblemsbasedonabovelaws
• DescribetheconceptsofPopulationandSample
2
Section1:Probabilitybasics
Demystifying statistics! – Lecture 1 SBCM, Joint Program – RiyadhSBCM, Joint Program – Riyadh 3
Afewimportantterms
Demystifying statistics! – Lecture 1 SBCM, Joint Program – RiyadhSBCM, Joint Program – Riyadh
• Randomexperiment• Samplespace• Event
• exhaustive,impossible,elementary,composite,certain,mutuallyexclusive,independent,dependent,favourable,equallylikely
4
Afewimportantterms
Demystifying statistics! – Lecture 1 SBCM, Joint Program – RiyadhSBCM, Joint Program – Riyadh
Eventtype ExampleIndependent Twoseedsaresown,germinationofoneis
notaffectedbytheother.
Dependent Ifwedrawacardfromapackofwellshuffledcards,ifthefirstcarddrawnisnotreplacedthentheseconddrawisdependentonthefirstdraw.
Mutuallyexclusive
Inobservationofseedgerminationtheseedmayeithergerminateoritwillnotgerminate.
5
Probability– whatisit?
Demystifying statistics! – Lecture 1 SBCM, Joint Program – RiyadhSBCM, Joint Program – Riyadh
• Chancethatsomethingwillhappen,howlikelyaneventwillhappen
• Canbemeasuredwithanumberlike"10%chanceofrain",orusingwordslikeimpossible,unlikely,possible,evenchance,likelyandcertain
6
Probability– whatisit?
Demystifying statistics! – Lecture 1 SBCM, Joint Program – RiyadhSBCM, Joint Program – Riyadh
• Exampleofafairdie• P(landinga5)• P(landinganevennumber)
• Exampleofmarbles
7
Probability– approachestocalculate
Demystifying statistics! – Lecture 1 SBCM, Joint Program – RiyadhSBCM, Joint Program – Riyadh
• Theoretical probability• Relativefrequency• Subjectiveprobability
8
LawsofProbability– Setanalogy
Demystifying statistics! – Lecture 1 SBCM, Joint Program – RiyadhSBCM, Joint Program – Riyadh
• Union• Intersection• Complement
9
Thoughtexercises:
Demystifying statistics! – Lecture 1 SBCM, Joint Program – RiyadhSBCM, Joint Program – Riyadh
Example1.Abagcontains5redmarbles,3bluemarbles,and2greenmarbles.
Q1.pr (red)+pr (blue)+pr (green)Q2.pr (red)+pr (notred)Q3.pr (redorgreen)
10
Thoughtexercises:
Demystifying statistics! – Lecture 1 SBCM, Joint Program – RiyadhSBCM, Joint Program – Riyadh
Example2.Rolladieandflipacoin.
Q1.pr (headsandrolla3)
11
Thoughtexercises:
Demystifying statistics! – Lecture 1 SBCM, Joint Program – RiyadhSBCM, Joint Program – Riyadh
Example3.Thereare20peopleintheroom:12girls(5withblondhairand7withbrownhair)and8boys(4withblondhairand4withbrownhair).Thereareatotalof9blondsand11withbrownhair.
Q1.pr (girlorblond)Q2.pr (girlwithbrownhair)andpr (girl)
12
Thoughtexercises:
Demystifying statistics! – Lecture 1 SBCM, Joint Program – RiyadhSBCM, Joint Program – Riyadh
Example4.tossacoin4times
Q1.Whatistheprobabilityofgettingatleastoneheadonthe4tossespr (atleastoneH)
13
Thoughtexercises:
Demystifying statistics! – Lecture 1 SBCM, Joint Program – RiyadhSBCM, Joint Program – Riyadh
Example5.Anindividualapplyingtoacollegedeterminesthathehasan80%chanceofbeingaccepted,andheknowsthatdormitoryhousingwillonlybeprovidedfor60%ofacceptedstudents.
Q1.Whatisthechanceofthestudentbeingacceptedandreceivingdormitoryhousing?
14
Thoughtexercises:
Demystifying statistics! – Lecture 1 SBCM, Joint Program – RiyadhSBCM, Joint Program – Riyadh
Example6.A =“Patienthasliverdisease.”Pastdatatellsyouthat10%ofpatientsenteringyourclinichaveliverdisease.B =“Patientisanalcoholic.”Fivepercentoftheclinic’spatientsarealcoholics.Amongpatientsdiagnosedwithliverdisease,7%arealcoholics.
Q1.Findoutapatient’sprobabilityofhavingliverdiseaseiftheyareanalcoholic.
15
LawsofProbability- 1
Demystifying statistics! – Lecture 1 SBCM, Joint Program – RiyadhSBCM, Joint Program – Riyadh
• Theprobabilityofaneventisbetween0and1
• Aprobabilityof1isequivalentto100%certainty
• Probabilitiescanbeexpressedatfractions,decimals,orpercentage
16
LawsofProbability- 2
Demystifying statistics! – Lecture 1 SBCM, Joint Program – RiyadhSBCM, Joint Program – Riyadh
• Thesumoftheprobabilitiesofallpossibleoutcomesis1or100%.• IfA,B,andCaretheonlypossibleoutcomes,
• thenp(A)+p(B)+p(C)=1
Example: A bag contains 5 red marbles, 3 blue marbles, and 2 green marbles. p (red) + p (blue) + p (green) = 1
17
LawsofProbability- 3
Demystifying statistics! – Lecture 1 SBCM, Joint Program – RiyadhSBCM, Joint Program – Riyadh
• Thesumoftheprobabilityofaneventoccurringanditnotoccurringis1.• p(A)+p(notA)=1• p(notA)=1- p(A)
Example: A bag contains 5 red marbles, 3 blue marbles, and 2 green marbles. p (red) + p (not red) = 1
18
LawsofProbability- 4
Demystifying statistics! – Lecture 1 SBCM, Joint Program – RiyadhSBCM, Joint Program – Riyadh
• IftwoeventsAandBareindependent• thentheprobabilityofAandBoccurringistheproductoftheirindividualprobabilities.
• p(AandB)=p(A)Xp(B)
Example: roll a die and flip a coin. p (heads and roll a 3) = p (H) X p (3)
*MultiplicativeTheorem
19
LawsofProbability- 4a
Demystifying statistics! – Lecture 1 SBCM, Joint Program – RiyadhSBCM, Joint Program – Riyadh
• IftwoeventsAandBaredependent• thentheprobabilityofAandBoccurringis• p(AandB)=p(B|A)Xp(A)=p(A|B)Xp(B)
• Anindividual applyingtoacollegedeterminesthathehasan80%chanceofbeingaccepted,andheknowsthatdormitoryhousingwillonlybeprovidedfor60%ofacceptedstudents.
• Whatisthechanceofthestudentbeingacceptedandreceivingdormitoryhousing?• P(AcceptedandDormitoryHousing)• =P(DormitoryHousing|Accepted)*P(Accepted)• =(0.60)*(0.80)=0.48
*MultiplicativeTheorem
20
LawsofProbability- 5
Demystifying statistics! – Lecture 1 SBCM, Joint Program – RiyadhSBCM, Joint Program – Riyadh
• IftwoeventsAandBaremutuallyexclusive• thentheprobabilityofAorBoccurringisthesumoftheirindividualprobabilities.
• p(AorB)=p(A)+p(B)
Example: A bag contains 5 red marbles, 3 blue marbles, and 2 green marbles. p (red or green) = p (red) + p (green)
*AdditionTheorem
21
LawsofProbability- 6
Demystifying statistics! – Lecture 1 SBCM, Joint Program – RiyadhSBCM, Joint Program – Riyadh
• IftwoeventsAandBareNOT mutuallyexclusive• thentheprobabilityofAorBoccurringisthesumoftheirindividualprobabilitiesminustheprobabilityofbothAandBoccurring
• p(AorB)=p(A)+p(B)– p(AandB)
Example: 12 girls (5 with blond hair and 7 with brown hair) and 8 boys (4 with blond hair and 4 with brown hair). There are a total of 9 blonds and 11 with brown hair. One person from the group is chosen randomly. p (girl or blond) = p (girl) + p (blond) – p (girl and blond)
*AdditionTheorem
22
LawsofProbability- 7
Demystifying statistics! – Lecture 1 SBCM, Joint Program – RiyadhSBCM, Joint Program – Riyadh
• Theprobabilityofatleastoneeventoccurringoutofmultipleeventsisequaltooneminustheprobabilityofnoneoftheeventsoccurring.• p(atleastone)=1– p(none)
Example: What is the probability of getting at least one head on the 4 throw of a coin?p (at least one H) = 1 – p (no H) = 1 – p (TTTT)
23
LawsofProbability- 8
Demystifying statistics! – Lecture 1 SBCM, Joint Program – RiyadhSBCM, Joint Program – Riyadh
• IfeventBisasubsetofeventA,• thentheprobabilityofBislessthanorequaltotheprobabilityofA.• p(B)≤p(A)
Example: There are 20 people in the room: 12 girls (5 with blond hair and 7 with brown hair) and 8 boys (4 with blond hair and 4 with brown hair).p (girl with brown hair) ≤ p (girl)
24
ConditionalProbability
Demystifying statistics! – Lecture 1 SBCM, Joint Program – RiyadhSBCM, Joint Program – Riyadh
• TwoeventsAandBaresaidtobedependent,whenBcanoccuronlywhenAisknowntohaveoccurred(orviceversa)
• TheprobabilityattachedtosuchaneventiscalledtheconditionalprobabilityandisdenotedbyP(A/B)
*BayesTheorem
25
ConditionalProbability
Demystifying statistics! – Lecture 1 SBCM, Joint Program – RiyadhSBCM, Joint Program – Riyadh
*BayesTheorem
26
ConditionalProbability- Example
Demystifying statistics! – Lecture 1 SBCM, Joint Program – RiyadhSBCM, Joint Program – Riyadh
• A =“Patienthasliverdisease.”Pastdatatellsyouthat10%ofpatientsenteringyourclinichaveliverdisease.P(A)=0.10.
• B =“Patientisanalcoholic.”Fivepercentoftheclinic’spatientsarealcoholics.P(B)=0.05.
• Amongpatientsdiagnosedwithliverdisease,7%arealcoholics.Thisisyour B|A.
• Findingoutapatient’sprobabilityofhavingliverdiseaseiftheyareanalcoholic.
• P(A|B)=(0.07*0.1) / 0.05=0.14
*BayesTheorem
27
Section2:Population&Sample
Demystifying statistics! – Lecture 1 SBCM, Joint Program – RiyadhSBCM, Joint Program – Riyadh 28
Population
Demystifying statistics! – Lecture 1 SBCM, Joint Program – RiyadhSBCM, Joint Program – Riyadh 29
• Thepopulationisthesetofentitiesunderstudy• Apopulationincludesalloftheelementsfromasetofdata.• Ameasurablecharacteristicofapopulation- parameter
Sample
Demystifying statistics! – Lecture 1 SBCM, Joint Program – RiyadhSBCM, Joint Program – Riyadh 30
• Asampleconsistsofoneormoreobservationsfromthepopulation• Ameasurablecharacteristicofasampleiscalledastatistic.
Sample
Demystifying statistics! – Lecture 1 SBCM, Joint Program – RiyadhSBCM, Joint Program – Riyadh 31
Descriptivestatistics
Demystifying statistics! – Lecture 1 SBCM, Joint Program – RiyadhSBCM, Joint Program – Riyadh 32
• Descriptivestatisticsprovideaconcisesummaryofdata.• Youcansummarizedatanumericallyorgraphically
Descriptivestatistics
Demystifying statistics! – Lecture 1 SBCM, Joint Program – RiyadhSBCM, Joint Program – Riyadh 33
Inferentialstatistics
Demystifying statistics! – Lecture 1 SBCM, Joint Program – RiyadhSBCM, Joint Program – Riyadh 34
• Inferentialstatisticsusearandomsampleofdatatakenfromapopulationtodescribeandmakeinferencesaboutthepopulation.
Inferentialstatistics
Demystifying statistics! – Lecture 1 SBCM, Joint Program – RiyadhSBCM, Joint Program – Riyadh 35
Takehomemessages
Demystifying statistics! – Lecture 1 SBCM, Joint Program – RiyadhSBCM, Joint Program – Riyadh
• Understandingprobabilityanditslawsareimportanttounderstandingbiostatistics
• Theconceptsofpopulationandsampleareessentialforunderstandinginferentialstatistics
36