SlideShare une entreprise Scribd logo
1  sur  28
Télécharger pour lire hors ligne
Dealing With Uncertainty:
What the reverend Bayes can teach us
Probability – Bernoulli, de Moivre
§  Fair coin
-  50% heads
-  50% tails

What is the probability of two consecutive heads?

25%	

25%	

25%	

25%
1701
Inverse Probability (Bayes)
§  Given a coin, not sure whether biased or not?
§  If two rolls turn up heads, is the coin biased or not?

Original
Belief

New
Belief
Observation
BAYESIAN PROBABILITY
Cox Axioms
§  The plausibility of a statement is a real number and is
dependent on information we have related to the statement.
§  Plausibilities should vary sensibly with the assessment of
plausibilities in the model.
§  If the plausibility of a statement can be derived in many ways, all
the results must be equal.

Outcome:
§  If A is true then p(A) = 1
§  p(A) + p(not A) = 1
§  p(A and B) = p(A|B) x p(B)
Original
Belief

New
Belief
Observation

p(“e↵ect”|“cause”)p(“cause”)
p(“cause”|“e↵ect”) =
p(“e↵ect”)
What is the probability that the person behind the screen is a girl?

50%

What is the probability that the person called Charlie behind the screen is a girl?
Something about probability of Charlie

§ Girls: 32 / 22989 = 0.13%	

§ Buys: 89 / 22070 = 0.4%
What is the probability that the person called Charlie behind the screen is a girl?
32 / 22989 = 0.13%	

50%	


p(“Charlie”|Girl)p(Girl)
p(Girl|“Charlie”) =
p(“Charlie”)

25%	


p(“Charlie”|Girl)p(Girl) + p(“Charlie”|Boy)p(Boy)
32 / 22989 = 0.13%	


50%	


89 / 22070 = 0.4%	


50%
BAYESIAN MACHINE LEARNING
p(Content|Spam) ⇥ p(Spam)
p(Spam|Content) =
p(Content)
TrueSkill

p(Match Outcomes|Skill) ⇥ p(Skill)
p(Skill|Match Outcomes) =
p(Match Outcomes)
p(Imaget |Roadt ) ⇥ p(Roadt )
p(Roadt+1 |Imaget ) =
p(Imaget )
Bayesian Sick People Experiment
§  1 in 100 has health issue.
§  Test is 90% accurate.
§  You test positive, what are the odds that you need a treatment?
What is the probability of being sick?

A.  ≈ 95%
B.  ≈ 90%
C.  ≈ 50%
D.  ≈ 10%
§  1000 people in our sample.
§  We expect 10 people to be sick (give or take).

§  Imagine testing all individuals?
§  1000 people in our sample.
§  We expect 10 people to be sick (give or take).

§  Imagine testing all individuals?
à  9 out of 10 sick people test positive.
§  1000 people in our sample.
§  We expect 10 people to be sick (give or take).

§  Imagine testing all individuals?
à  9 out of 10 sick people test positive.
à  99 out of 990 healthy people test positive!

§  I.o.w. if you test positive, it is actually not very likely that you are
sick.
PROBABILISTIC PROGRAMMING
Cause à Effect
Inputà Output
Effect à Cause
Output à Input
§  Imagine a timeline of sales per day for a particular product.
§  Did the sales rate for this product change over time?
Thinking From Cause to Effect

§  In:
-  Sales rate for period 1.

model = pymc.Model()
with model:
switch = pymc.DiscreteUniform(lower=0, lower=70)

-  Sales rate for period 2.

rate_1 = pymc.Exponential(1.0)

-  Switchover point between period 1 and 2.

rate_2 = pymc.Exponential(1.0)

§  Output:
-  Unit sales over period 1 and 2.

rates = pymc.switch(switch >= arange(70), rate_1, rate_2)
unit_sales = pymc.Poisson(rates, observed=data)
References
§  Bayesian vs. Frequentist Statistics
-  http://www.stat.ufl.edu/~casella/Talks/BayesRefresher.pdf
§  Probabilistic Programming & Bayesian Methods for Hackers
-  https://github.com/CamDavidsonPilon/Probabilistic-Programming-and-BayesianMethods-for-Hackers
§  Bayesian Methods
-  http://www.gatsby.ucl.ac.uk/~zoubin/tmp/tutorial.pdf
§  “The Theory That Would not Die”, Sharon Bertsch Mcgrayne
-  http://www.amazon.co.uk/dp/0300188226
Medical Example using PyMC
model = pymc.Model()
with model:
sick = pymc.Bernoulli(p=0.01)
test_result = pymc.Bernoulli(sick * 0.9 + (1-sick) * (1.0-0.9), observed=[1])
algorithm = pymc.Metropolis()
print “Pr(Sick | Test) = %f” % pymc.sample(1000, algorithm)[sick].mean()

Contenu connexe

Similaire à Dealing with Uncertainty: What the reverend Bayes can teach us.

Applied 40S April 20, 2009
Applied 40S April 20, 2009Applied 40S April 20, 2009
Applied 40S April 20, 2009Darren Kuropatwa
 
Probability Distribution
Probability DistributionProbability Distribution
Probability DistributionShahnawazAli81
 
How A/B Tests Lie to Us and How to Drive Genuine Improvement
How A/B Tests Lie to Us and How to Drive Genuine ImprovementHow A/B Tests Lie to Us and How to Drive Genuine Improvement
How A/B Tests Lie to Us and How to Drive Genuine ImprovementWP Engine UK
 
Quantitative Methods for Lawyers - Class #15 - R Boot Camp - Part 2 - Profess...
Quantitative Methods for Lawyers - Class #15 - R Boot Camp - Part 2 - Profess...Quantitative Methods for Lawyers - Class #15 - R Boot Camp - Part 2 - Profess...
Quantitative Methods for Lawyers - Class #15 - R Boot Camp - Part 2 - Profess...Daniel Katz
 
Skepticism at work - Logical Fallacies. ASQ Buffalo
Skepticism at work - Logical Fallacies. ASQ BuffaloSkepticism at work - Logical Fallacies. ASQ Buffalo
Skepticism at work - Logical Fallacies. ASQ BuffaloASQ Buffalo NY
 
Statistics in clinical and translational research common pitfalls
Statistics in clinical and translational research  common pitfallsStatistics in clinical and translational research  common pitfalls
Statistics in clinical and translational research common pitfallsPavlos Msaouel, MD, PhD
 
The replication crisis: are P-values the problem and are Bayes factors the so...
The replication crisis: are P-values the problem and are Bayes factors the so...The replication crisis: are P-values the problem and are Bayes factors the so...
The replication crisis: are P-values the problem and are Bayes factors the so...StephenSenn2
 
Quantitative Methods for Lawyers - Class #10 - Binomial Distributions, Normal...
Quantitative Methods for Lawyers - Class #10 - Binomial Distributions, Normal...Quantitative Methods for Lawyers - Class #10 - Binomial Distributions, Normal...
Quantitative Methods for Lawyers - Class #10 - Binomial Distributions, Normal...Daniel Katz
 
The replication crisis: are P-values the problem and are Bayes factors the so...
The replication crisis: are P-values the problem and are Bayes factors the so...The replication crisis: are P-values the problem and are Bayes factors the so...
The replication crisis: are P-values the problem and are Bayes factors the so...jemille6
 
Test for number of success-Problems and Solutions
  Test for number of success-Problems and Solutions   Test for number of success-Problems and Solutions
Test for number of success-Problems and Solutions Sudha Rameshwari
 
QUALITATIVE ANALYSIS VIA ALL TYPES OF PROBABILITY FROM A BIOLOGICAL DATASET.pptx
QUALITATIVE ANALYSIS VIA ALL TYPES OF PROBABILITY FROM A BIOLOGICAL DATASET.pptxQUALITATIVE ANALYSIS VIA ALL TYPES OF PROBABILITY FROM A BIOLOGICAL DATASET.pptx
QUALITATIVE ANALYSIS VIA ALL TYPES OF PROBABILITY FROM A BIOLOGICAL DATASET.pptxCHIRANTANMONDAL2
 
Bias and overconfidence in oil and gas exploration
Bias and overconfidence in oil and gas explorationBias and overconfidence in oil and gas exploration
Bias and overconfidence in oil and gas explorationGraeme Keith
 
Example of a one-sample Z-test The previous lecture in P.docx
Example of a one-sample Z-test The previous lecture in P.docxExample of a one-sample Z-test The previous lecture in P.docx
Example of a one-sample Z-test The previous lecture in P.docxcravennichole326
 
Example of a one-sample Z-test The previous lecture in P.docx
Example of a one-sample Z-test The previous lecture in P.docxExample of a one-sample Z-test The previous lecture in P.docx
Example of a one-sample Z-test The previous lecture in P.docxelbanglis
 
The Ludic Fallacy Applied to Automated Planning
The Ludic Fallacy Applied to Automated PlanningThe Ludic Fallacy Applied to Automated Planning
The Ludic Fallacy Applied to Automated PlanningLuke Dicken
 
STATUse the information below to answer Questions 1 through 4..docx
STATUse the information below to answer Questions 1 through 4..docxSTATUse the information below to answer Questions 1 through 4..docx
STATUse the information below to answer Questions 1 through 4..docxrafaelaj1
 

Similaire à Dealing with Uncertainty: What the reverend Bayes can teach us. (20)

Applied 40S April 20, 2009
Applied 40S April 20, 2009Applied 40S April 20, 2009
Applied 40S April 20, 2009
 
Prob
ProbProb
Prob
 
Probability Distribution
Probability DistributionProbability Distribution
Probability Distribution
 
How A/B Tests Lie to Us and How to Drive Genuine Improvement
How A/B Tests Lie to Us and How to Drive Genuine ImprovementHow A/B Tests Lie to Us and How to Drive Genuine Improvement
How A/B Tests Lie to Us and How to Drive Genuine Improvement
 
Quantitative Methods for Lawyers - Class #15 - R Boot Camp - Part 2 - Profess...
Quantitative Methods for Lawyers - Class #15 - R Boot Camp - Part 2 - Profess...Quantitative Methods for Lawyers - Class #15 - R Boot Camp - Part 2 - Profess...
Quantitative Methods for Lawyers - Class #15 - R Boot Camp - Part 2 - Profess...
 
A/B testing problems
A/B testing problemsA/B testing problems
A/B testing problems
 
Skepticism at work - Logical Fallacies. ASQ Buffalo
Skepticism at work - Logical Fallacies. ASQ BuffaloSkepticism at work - Logical Fallacies. ASQ Buffalo
Skepticism at work - Logical Fallacies. ASQ Buffalo
 
Lec13_Bayes.pptx
Lec13_Bayes.pptxLec13_Bayes.pptx
Lec13_Bayes.pptx
 
PROBABILITY.pptx
PROBABILITY.pptxPROBABILITY.pptx
PROBABILITY.pptx
 
Statistics in clinical and translational research common pitfalls
Statistics in clinical and translational research  common pitfallsStatistics in clinical and translational research  common pitfalls
Statistics in clinical and translational research common pitfalls
 
The replication crisis: are P-values the problem and are Bayes factors the so...
The replication crisis: are P-values the problem and are Bayes factors the so...The replication crisis: are P-values the problem and are Bayes factors the so...
The replication crisis: are P-values the problem and are Bayes factors the so...
 
Quantitative Methods for Lawyers - Class #10 - Binomial Distributions, Normal...
Quantitative Methods for Lawyers - Class #10 - Binomial Distributions, Normal...Quantitative Methods for Lawyers - Class #10 - Binomial Distributions, Normal...
Quantitative Methods for Lawyers - Class #10 - Binomial Distributions, Normal...
 
The replication crisis: are P-values the problem and are Bayes factors the so...
The replication crisis: are P-values the problem and are Bayes factors the so...The replication crisis: are P-values the problem and are Bayes factors the so...
The replication crisis: are P-values the problem and are Bayes factors the so...
 
Test for number of success-Problems and Solutions
  Test for number of success-Problems and Solutions   Test for number of success-Problems and Solutions
Test for number of success-Problems and Solutions
 
QUALITATIVE ANALYSIS VIA ALL TYPES OF PROBABILITY FROM A BIOLOGICAL DATASET.pptx
QUALITATIVE ANALYSIS VIA ALL TYPES OF PROBABILITY FROM A BIOLOGICAL DATASET.pptxQUALITATIVE ANALYSIS VIA ALL TYPES OF PROBABILITY FROM A BIOLOGICAL DATASET.pptx
QUALITATIVE ANALYSIS VIA ALL TYPES OF PROBABILITY FROM A BIOLOGICAL DATASET.pptx
 
Bias and overconfidence in oil and gas exploration
Bias and overconfidence in oil and gas explorationBias and overconfidence in oil and gas exploration
Bias and overconfidence in oil and gas exploration
 
Example of a one-sample Z-test The previous lecture in P.docx
Example of a one-sample Z-test The previous lecture in P.docxExample of a one-sample Z-test The previous lecture in P.docx
Example of a one-sample Z-test The previous lecture in P.docx
 
Example of a one-sample Z-test The previous lecture in P.docx
Example of a one-sample Z-test The previous lecture in P.docxExample of a one-sample Z-test The previous lecture in P.docx
Example of a one-sample Z-test The previous lecture in P.docx
 
The Ludic Fallacy Applied to Automated Planning
The Ludic Fallacy Applied to Automated PlanningThe Ludic Fallacy Applied to Automated Planning
The Ludic Fallacy Applied to Automated Planning
 
STATUse the information below to answer Questions 1 through 4..docx
STATUse the information below to answer Questions 1 through 4..docxSTATUse the information below to answer Questions 1 through 4..docx
STATUse the information below to answer Questions 1 through 4..docx
 

Plus de OReillyStrata

SapientNitro Strata_presentation_upload
SapientNitro Strata_presentation_uploadSapientNitro Strata_presentation_upload
SapientNitro Strata_presentation_uploadOReillyStrata
 
Digital analytics & privacy: it's not the end of the world
Digital analytics & privacy: it's not the end of the worldDigital analytics & privacy: it's not the end of the world
Digital analytics & privacy: it's not the end of the worldOReillyStrata
 
Giving Organisations new capabilities to ask the right business questions 1.7
Giving Organisations new capabilities to ask the right business questions 1.7Giving Organisations new capabilities to ask the right business questions 1.7
Giving Organisations new capabilities to ask the right business questions 1.7OReillyStrata
 
Data as an Art Material. Case study: The Open Data Institute
Data as an Art Material. Case study: The Open Data InstituteData as an Art Material. Case study: The Open Data Institute
Data as an Art Material. Case study: The Open Data InstituteOReillyStrata
 
Giving Organisations new Capabilities to ask the Right Business Questions
Giving Organisations new Capabilities to ask the Right Business QuestionsGiving Organisations new Capabilities to ask the Right Business Questions
Giving Organisations new Capabilities to ask the Right Business QuestionsOReillyStrata
 
Big Data for Big Power: How smart is the grid if the infrastructure is stupid?
Big Data for Big Power:  How smart is the grid if the infrastructure is stupid?Big Data for Big Power:  How smart is the grid if the infrastructure is stupid?
Big Data for Big Power: How smart is the grid if the infrastructure is stupid?OReillyStrata
 
The Workflow Abstraction
The Workflow AbstractionThe Workflow Abstraction
The Workflow AbstractionOReillyStrata
 
SQL on Hadoop: Defining the New Generation of Analytic SQL Databases
SQL on Hadoop: Defining the New Generation of Analytic SQL DatabasesSQL on Hadoop: Defining the New Generation of Analytic SQL Databases
SQL on Hadoop: Defining the New Generation of Analytic SQL DatabasesOReillyStrata
 
The Future of Big Data is Relational (or why you can't escape SQL)
The Future of Big Data is Relational (or why you can't escape SQL)The Future of Big Data is Relational (or why you can't escape SQL)
The Future of Big Data is Relational (or why you can't escape SQL)OReillyStrata
 
Large scale ETL with Hadoop
Large scale ETL with HadoopLarge scale ETL with Hadoop
Large scale ETL with HadoopOReillyStrata
 
Designing Big Data Interactions: The Language of Discovery
Designing Big Data Interactions: The Language of DiscoveryDesigning Big Data Interactions: The Language of Discovery
Designing Big Data Interactions: The Language of DiscoveryOReillyStrata
 
Digital Reasoning_Tim Estes_Strata NYC 2012
Digital Reasoning_Tim Estes_Strata NYC 2012Digital Reasoning_Tim Estes_Strata NYC 2012
Digital Reasoning_Tim Estes_Strata NYC 2012OReillyStrata
 
clearScienceStrataRx2012
clearScienceStrataRx2012clearScienceStrataRx2012
clearScienceStrataRx2012OReillyStrata
 

Plus de OReillyStrata (13)

SapientNitro Strata_presentation_upload
SapientNitro Strata_presentation_uploadSapientNitro Strata_presentation_upload
SapientNitro Strata_presentation_upload
 
Digital analytics & privacy: it's not the end of the world
Digital analytics & privacy: it's not the end of the worldDigital analytics & privacy: it's not the end of the world
Digital analytics & privacy: it's not the end of the world
 
Giving Organisations new capabilities to ask the right business questions 1.7
Giving Organisations new capabilities to ask the right business questions 1.7Giving Organisations new capabilities to ask the right business questions 1.7
Giving Organisations new capabilities to ask the right business questions 1.7
 
Data as an Art Material. Case study: The Open Data Institute
Data as an Art Material. Case study: The Open Data InstituteData as an Art Material. Case study: The Open Data Institute
Data as an Art Material. Case study: The Open Data Institute
 
Giving Organisations new Capabilities to ask the Right Business Questions
Giving Organisations new Capabilities to ask the Right Business QuestionsGiving Organisations new Capabilities to ask the Right Business Questions
Giving Organisations new Capabilities to ask the Right Business Questions
 
Big Data for Big Power: How smart is the grid if the infrastructure is stupid?
Big Data for Big Power:  How smart is the grid if the infrastructure is stupid?Big Data for Big Power:  How smart is the grid if the infrastructure is stupid?
Big Data for Big Power: How smart is the grid if the infrastructure is stupid?
 
The Workflow Abstraction
The Workflow AbstractionThe Workflow Abstraction
The Workflow Abstraction
 
SQL on Hadoop: Defining the New Generation of Analytic SQL Databases
SQL on Hadoop: Defining the New Generation of Analytic SQL DatabasesSQL on Hadoop: Defining the New Generation of Analytic SQL Databases
SQL on Hadoop: Defining the New Generation of Analytic SQL Databases
 
The Future of Big Data is Relational (or why you can't escape SQL)
The Future of Big Data is Relational (or why you can't escape SQL)The Future of Big Data is Relational (or why you can't escape SQL)
The Future of Big Data is Relational (or why you can't escape SQL)
 
Large scale ETL with Hadoop
Large scale ETL with HadoopLarge scale ETL with Hadoop
Large scale ETL with Hadoop
 
Designing Big Data Interactions: The Language of Discovery
Designing Big Data Interactions: The Language of DiscoveryDesigning Big Data Interactions: The Language of Discovery
Designing Big Data Interactions: The Language of Discovery
 
Digital Reasoning_Tim Estes_Strata NYC 2012
Digital Reasoning_Tim Estes_Strata NYC 2012Digital Reasoning_Tim Estes_Strata NYC 2012
Digital Reasoning_Tim Estes_Strata NYC 2012
 
clearScienceStrataRx2012
clearScienceStrataRx2012clearScienceStrataRx2012
clearScienceStrataRx2012
 

Dernier

Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...Alkin Tezuysal
 
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24Mark Goldstein
 
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...AliaaTarek5
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...Farhan Tariq
 
Sample pptx for embedding into website for demo
Sample pptx for embedding into website for demoSample pptx for embedding into website for demo
Sample pptx for embedding into website for demoHarshalMandlekar2
 
Generative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdfGenerative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdfIngrid Airi González
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity PlanDatabarracks
 
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...Wes McKinney
 
Connecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdfConnecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdfNeo4j
 
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxThe Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxLoriGlavin3
 
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxLoriGlavin3
 
2024 April Patch Tuesday
2024 April Patch Tuesday2024 April Patch Tuesday
2024 April Patch TuesdayIvanti
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.Curtis Poe
 
Emixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native developmentEmixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native developmentPim van der Noll
 
UiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to HeroUiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to HeroUiPathCommunity
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxLoriGlavin3
 
Time Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsTime Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsNathaniel Shimoni
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteDianaGray10
 

Dernier (20)

Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
 
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
 
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...
 
Sample pptx for embedding into website for demo
Sample pptx for embedding into website for demoSample pptx for embedding into website for demo
Sample pptx for embedding into website for demo
 
Generative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdfGenerative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdf
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity Plan
 
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
 
Connecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdfConnecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdf
 
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxThe Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
 
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
 
2024 April Patch Tuesday
2024 April Patch Tuesday2024 April Patch Tuesday
2024 April Patch Tuesday
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.
 
Emixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native developmentEmixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native development
 
UiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to HeroUiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to Hero
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
 
Time Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsTime Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directions
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test Suite
 

Dealing with Uncertainty: What the reverend Bayes can teach us.

  • 1. Dealing With Uncertainty: What the reverend Bayes can teach us
  • 2. Probability – Bernoulli, de Moivre §  Fair coin -  50% heads -  50% tails What is the probability of two consecutive heads? 25% 25% 25% 25%
  • 4. Inverse Probability (Bayes) §  Given a coin, not sure whether biased or not? §  If two rolls turn up heads, is the coin biased or not? Original Belief New Belief Observation
  • 5.
  • 7. Cox Axioms §  The plausibility of a statement is a real number and is dependent on information we have related to the statement. §  Plausibilities should vary sensibly with the assessment of plausibilities in the model. §  If the plausibility of a statement can be derived in many ways, all the results must be equal. Outcome: §  If A is true then p(A) = 1 §  p(A) + p(not A) = 1 §  p(A and B) = p(A|B) x p(B)
  • 9. What is the probability that the person behind the screen is a girl? 50% What is the probability that the person called Charlie behind the screen is a girl?
  • 10. Something about probability of Charlie § Girls: 32 / 22989 = 0.13% § Buys: 89 / 22070 = 0.4%
  • 11. What is the probability that the person called Charlie behind the screen is a girl? 32 / 22989 = 0.13% 50% p(“Charlie”|Girl)p(Girl) p(Girl|“Charlie”) = p(“Charlie”) 25% p(“Charlie”|Girl)p(Girl) + p(“Charlie”|Boy)p(Boy) 32 / 22989 = 0.13% 50% 89 / 22070 = 0.4% 50%
  • 14. TrueSkill p(Match Outcomes|Skill) ⇥ p(Skill) p(Skill|Match Outcomes) = p(Match Outcomes)
  • 15. p(Imaget |Roadt ) ⇥ p(Roadt ) p(Roadt+1 |Imaget ) = p(Imaget )
  • 16. Bayesian Sick People Experiment §  1 in 100 has health issue. §  Test is 90% accurate. §  You test positive, what are the odds that you need a treatment?
  • 17. What is the probability of being sick? A.  ≈ 95% B.  ≈ 90% C.  ≈ 50% D.  ≈ 10%
  • 18. §  1000 people in our sample. §  We expect 10 people to be sick (give or take). §  Imagine testing all individuals?
  • 19. §  1000 people in our sample. §  We expect 10 people to be sick (give or take). §  Imagine testing all individuals? à  9 out of 10 sick people test positive.
  • 20. §  1000 people in our sample. §  We expect 10 people to be sick (give or take). §  Imagine testing all individuals? à  9 out of 10 sick people test positive. à  99 out of 990 healthy people test positive! §  I.o.w. if you test positive, it is actually not very likely that you are sick.
  • 22. Cause à Effect Inputà Output Effect à Cause Output à Input
  • 23. §  Imagine a timeline of sales per day for a particular product. §  Did the sales rate for this product change over time?
  • 24. Thinking From Cause to Effect §  In: -  Sales rate for period 1. model = pymc.Model() with model: switch = pymc.DiscreteUniform(lower=0, lower=70) -  Sales rate for period 2. rate_1 = pymc.Exponential(1.0) -  Switchover point between period 1 and 2. rate_2 = pymc.Exponential(1.0) §  Output: -  Unit sales over period 1 and 2. rates = pymc.switch(switch >= arange(70), rate_1, rate_2) unit_sales = pymc.Poisson(rates, observed=data)
  • 25.
  • 26.
  • 27. References §  Bayesian vs. Frequentist Statistics -  http://www.stat.ufl.edu/~casella/Talks/BayesRefresher.pdf §  Probabilistic Programming & Bayesian Methods for Hackers -  https://github.com/CamDavidsonPilon/Probabilistic-Programming-and-BayesianMethods-for-Hackers §  Bayesian Methods -  http://www.gatsby.ucl.ac.uk/~zoubin/tmp/tutorial.pdf §  “The Theory That Would not Die”, Sharon Bertsch Mcgrayne -  http://www.amazon.co.uk/dp/0300188226
  • 28. Medical Example using PyMC model = pymc.Model() with model: sick = pymc.Bernoulli(p=0.01) test_result = pymc.Bernoulli(sick * 0.9 + (1-sick) * (1.0-0.9), observed=[1]) algorithm = pymc.Metropolis() print “Pr(Sick | Test) = %f” % pymc.sample(1000, algorithm)[sick].mean()