SlideShare ist ein Scribd-Unternehmen logo
1 von 66
Car Alarms &
Smoke Alarms
& Monitoring
Who’s this punk?
• Dan Slimmon
• @danslimmon on the Twitters
• Senior Platform Engineer at Exosite
• Previously Operations Team Manager at
Blue State Digital
Learn to do some stats and
visualization.
You’ll be right much more often, &
people will THINK you’re right even
more often than that!
Signal-To-Noise Ratio
A word problem
You’ve invented an automated test for
plagiarism.
• Plagiarism: 90% chance of positive
• No Plagiarism: 20% chance of positive
• Jerkwad kids plagiarize 30% of the time
A word problem
Question 1
Given a random paper, what’s the probability
that you’ll get a negative result?
• Plagiarism: 90% chance of positive
• No Plagiarism: 20% chance of positive
• 30% chance of plagiarism
Question 2
If there’s plagiarism, what’s the probability
PLAJR will detect it?
• Plagiarism: 90% chance of positive
• No plagiarism: 20% chance of positive
• 30% chance of plagiarism
Question 2
If there’s plagiarism, what’s the probability
you’ll detect it?
• Plagiarism: 90% chance of positive
• No plagiarism: 20% chance of positive
• 30% chance of plagiarism
Question 3
If you get a positive result, what’s the
probability that the paper is plagiarized?
• Plagiarism: 90% chance of positive
• No plagiarism: 20% chance of positive
• 30% chance of plagiarism
No Plagiarism Plagiarism
No Plagiarism
Negative
Positive
No Plagiarism
Negative
Positive
Plagiarism
Negative
Positive
Question 1
Given a random paper, what’s the probability
that you’ll get a negative result?
No Plagiarism
Negative
Positive
Plagiarism
Negative
Positive
Question 2
If the paper is plagiarized, what’s the
probability that you’ll get a positive result?
No Plagiarism
Negative
Positive
Plagiarism
Negative
Positive
Question 3
If you get a positive result, what’s the
probability that the paper was plagiarized?
No Plagiarism
Negative
Positive
Plagiarism
Negative
Positive
Question 3
If you get a positive result, what’s the
probability that the paper was plagiarized?
Dark Green
------------------------------------------
(Dark Blue) + (Dark Green)
Question 3
If you get a positive result, what’s the
probability that the paper was plagiarized?
27
------------------------------------------
14 + 27
Question 3
If you get a positive result, what’s the
probability that the paper was plagiarized?
65.8%
Sensitivity & Specificity
Sensitivity:
% of actual positives
that are identified as
such
Specificity:
% of actual negatives
that are identified as
such
Sensitivity & Specificity
Sensitivity:
High sensitivity
Test is very sensitive
to problems
Specificity:
High specificity
Test works for a
specific type of
problem
Specificity:
Probability that, if a
paper isn’t
plagiarized, you’ll
get a negative.
Sensitivity & Specificity
Sensitivity:
Probability that, if a
paper is plagiarized,
you’ll get a positive.
90% 80%
Specificity
Sensitivity
Prevalence
http://i.imgur.com/
LkxcxLt.png
Positive Predictive Value
The probability that
If you get a positive result,
Then it’s a true positive.
When you get paged at 3
AM, Positive Predictive
Value is the probability that
something is actually
wrong.
Imagine if you will...
• Service has 99.9% uptime
• Probe has 99% sensitivity
• Probe has 99% specificity
Pretty decent, right?
Let’s calculate the PPV.
True
Negative
False
Negative
False
Positive
True
Positive
Positive
Result
Negative
Result
Condition
Present
Condition
Absent
The true-positive probability
P(TP) = (prob. of service failure) * (sensitivity)
P(TP) = 0.1% * 99%
P(TP) = 0.099%
Let’s calculate the probability that any given
probe run will produce a true positive.
The true-positive probability
P(TP) = 0.099%
So roughly 1 in every 1000 checks will be a
true positive.
The false-positive probability
P(FP) = (prob. working) * (100% - specificity)
P(FP) = 99.9% * 1%
P(FP) = 0.99%
So roughly 1 in every 100 checks will be a
false positive.
Positive predictive value
PPV = P(TP) / [P(TP) + P(FP)]
PPV = 0.099% / (0.099% + 0.99%)
PPV = 9.1%
If you get a positive, there’s only a 1 in 10
chance that something’s actually wrong.
Why is this terrible?
Car Alarms
http://inserbia.info/news/wp-content/uploads/2013/06/carthief.jpg
Smoke Alarms
http://www.props.eric-hart.com/wp-content/uploads/2011/03/nysf_firedrill_2011.jpg
You want smoke alarms,
not car alarms.
Practical Advice
(Semi-)
Practical Advice
Why do we have such
noisy checks?
“Office Space”, 1999.
Monty Python’s Flying Circus, 1975.
Semi-Practical Advice
Undetected outages are embarrassing, so we
tend to focus on sensitivity.
That’s good.
But be careful with thresholds.
Semi-Practical Advice
Response Time Threshold
Positive
Predictive
Value
Semi-Practical Advice
Get more degrees of freedom.
Semi-Practical Advice
Response Time Threshold
Positive
Predictive
Value
Semi-Practical Advice
Hysteresis is a great way to add degrees of
freedom.
• State machines
• Time-series analysis
Semi-Practical Advice
As your uptime increases, so must your
specificity.
It affects your PPV much more than
sensitivity.
Specificity
Sensitivity
Uptime Prevalence
False
Positive
Rate
False
Negative
Rate
Specificity
Sensitivity
Uptime
Semi-Practical Advice
Separate the concerns of problem detection
and problem identification
Semi-Practical Advice
• Check Apache process count
• Check swap usage
• Check median HTTP response time
• Check requests/second
Your alerting should tell you
whether work is getting
done.
Baron Schwartz
(paraphrased)
Semi-Practical Advice
• Check Apache process count
• Check swap usage
• Check median HTTP response time
• Check requests/second
Semi-Practical Advice
• Check Apache process count
• Check swap usage
• Check median HTTP response time &
requests/second
A Pony I Want
Something like Nagios, but which
• Helps you separate detection from diagnosis
• Is SNR-aware
• Medical paper with a nice
visualization:http://tinyurl.com/specsens
• Blog post with some algebra:
http://tinyurl.com/carsmoke
• Base rate
fallacy:http://tinyurl.com/brfallacy
• Bischeck:http://tinyurl.com/bischeck
Other useful stuff
Come find me
and chat.

Weitere ähnliche Inhalte

Ähnlich wie Car Alarms & Smoke Alarms [Monitorama]

Slides February 23rd
Slides February 23rdSlides February 23rd
Slides February 23rd
heviatar
 
Ap stats survey project
Ap stats survey projectAp stats survey project
Ap stats survey project
SerPaRam
 
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
rafaelaj1
 

Ähnlich wie Car Alarms & Smoke Alarms [Monitorama] (20)

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
 
13-statistics.pptx
13-statistics.pptx13-statistics.pptx
13-statistics.pptx
 
A/B testing problems
A/B testing problemsA/B testing problems
A/B testing problems
 
Emily Greer at GDC 2018: Data-Driven or Data-Blinded?
Emily Greer at GDC 2018: Data-Driven or Data-Blinded?Emily Greer at GDC 2018: Data-Driven or Data-Blinded?
Emily Greer at GDC 2018: Data-Driven or Data-Blinded?
 
Algebra unit 9.6.2
Algebra unit 9.6.2Algebra unit 9.6.2
Algebra unit 9.6.2
 
Algebra unit 9.6.2
Algebra unit 9.6.2Algebra unit 9.6.2
Algebra unit 9.6.2
 
Probability
ProbabilityProbability
Probability
 
Automated decision making with predictive applications – Big Data Frankfurt
Automated decision making with predictive applications – Big Data FrankfurtAutomated decision making with predictive applications – Big Data Frankfurt
Automated decision making with predictive applications – Big Data Frankfurt
 
Data-Driven off a Cliff: Anti-Patterns in Evidence-Based Decision Making
Data-Driven off a Cliff: Anti-Patterns in Evidence-Based Decision MakingData-Driven off a Cliff: Anti-Patterns in Evidence-Based Decision Making
Data-Driven off a Cliff: Anti-Patterns in Evidence-Based Decision Making
 
Pre-Cal 40S Slides January 10, 2008
Pre-Cal 40S Slides January 10, 2008Pre-Cal 40S Slides January 10, 2008
Pre-Cal 40S Slides January 10, 2008
 
Frontiers of Computational Journalism week 7 - Randomness and Statistical Sig...
Frontiers of Computational Journalism week 7 - Randomness and Statistical Sig...Frontiers of Computational Journalism week 7 - Randomness and Statistical Sig...
Frontiers of Computational Journalism week 7 - Randomness and Statistical Sig...
 
7 tough brainteasers to test your interviewees’ critical thinking
7 tough brainteasers to test your interviewees’ critical thinking7 tough brainteasers to test your interviewees’ critical thinking
7 tough brainteasers to test your interviewees’ critical thinking
 
Distilling the crowd: the next evolutionary step in crowd wisdom
Distilling the crowd: the next evolutionary step in crowd wisdomDistilling the crowd: the next evolutionary step in crowd wisdom
Distilling the crowd: the next evolutionary step in crowd wisdom
 
Slides February 23rd
Slides February 23rdSlides February 23rd
Slides February 23rd
 
Quantitative Methods for Lawyers - Class #14 - Power Laws, Hypothesis Testing...
Quantitative Methods for Lawyers - Class #14 - Power Laws, Hypothesis Testing...Quantitative Methods for Lawyers - Class #14 - Power Laws, Hypothesis Testing...
Quantitative Methods for Lawyers - Class #14 - Power Laws, Hypothesis Testing...
 
Ap stats survey project
Ap stats survey projectAp stats survey project
Ap stats survey project
 
Applied Math 40S February 25, 2008
Applied Math 40S February 25, 2008Applied Math 40S February 25, 2008
Applied Math 40S February 25, 2008
 
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
 
04 performance metrics v2
04 performance metrics v204 performance metrics v2
04 performance metrics v2
 
Strategy 102 Research & Insights (Strategic Planners' Workshop- 4As/ 95%Academy)
Strategy 102 Research & Insights (Strategic Planners' Workshop- 4As/ 95%Academy)Strategy 102 Research & Insights (Strategic Planners' Workshop- 4As/ 95%Academy)
Strategy 102 Research & Insights (Strategic Planners' Workshop- 4As/ 95%Academy)
 

Kürzlich hochgeladen

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 

Kürzlich hochgeladen (20)

The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 

Car Alarms & Smoke Alarms [Monitorama]