SlideShare a Scribd company logo
1 of 31
Quantitative
Methods
for
Lawyers
Conditional Probability
& Bayes Theorem
!
Class #8
@ computational
computationallegalstudies.com
professor daniel martin katz danielmartinkatz.com
lexpredict.com slideshare.net/DanielKatz
Conditional Probability is an Important Concept
and A Precursor to Discussing Bayes Rule
Conditional Probability
Relies on a Little Bit of Set Theory”
Prob of “A Given B”
P (A intersect B) Divided by the Prob of B
In a conditional probability problem, the sample space is
“reduced” to the “space” of the given outcome (e.g. if given
B, we now just care about the probability of A occurring
“inside” of B)
Given B, what’s
the probability of A?
A Visual Depiction of
Conditional Probability
The Entire Yellow Space is
Intuitively we are asking ...
What Share of B contains the
overlapwithA?
A Dice Based Example
What is the Probability of Getting a “2” if we know
that the number thrown is less than 5?
What is the Probability of Getting a “2” if we know
given that the number thrown is less than 5?
A Dice Based Example
What is the Probability of Getting a “2” if we know
given that the number thrown is less than 5?
Again Here is Our Formula:
A Dice Based Example
What is the Probability of Getting a “2” if we know
given that the number thrown is less than 5?
P ( “2”|know it is Less than 5) = P ( “2” {1,2,3,4} )
P ( {1,2,3,4} )
Again Here is Our Formula:
A Dice Based Example
What is the Probability of Getting a “2” if we know
given that the number thrown is less than 5?
P ( “2”|know it is Less than 5) = P ( “2” {1,2,3,4} )
P ( {1,2,3,4} )
A Dice Based Example
Okay What is P ( “2” {1,2,3,4} ) ?
What is the Probability of Getting a “2” if we know
given that the number thrown is less than 5?
The only element that intersects is “2” so is it the
Prob of “2” which is 1/6
P ( “2”|know it is Less than 5) = P ( “2” {1,2,3,4} )
P ( {1,2,3,4} )
A Dice Based Example
Okay What is P ( “2” {1,2,3,4} ) ?
What is the Probability of Getting a “2” if we know
given that the number thrown is less than 5?
The only element that intersects is “2” so is it the
Prob of “2” which is 1/6
P ( “2”|know it is Less than 5) = P ( “2” {1,2,3,4} )
P ( {1,2,3,4} )
Now What is P ( {1,2,3,4} ) ?
1/6 + 1/6 +1/6 + 1/6 = 4/6
A Dice Based Example
Okay What is P ( “2” {1,2,3,4} ) ?
What is the Probability of Getting a “2” if we know
given that the number thrown is less than 5?
The only element that intersects is “2” so is it the
Prob of “2” which is 1/6
P ( “2”|know it is Less than 5) = P ( “2” {1,2,3,4} )
P ( {1,2,3,4} )
Now What is P ( {1,2,3,4} ) ?
1/6 + 1/6 +1/6 + 1/6 = 4/6
Okay Lets Put
it All Together:
P ( “2” {1,2,3,4} )
P ( {1,2,3,4} )
= 1/41/6
4/6
=
A Dice Based Example
Monty
Hall
Problem
In “Lets Make a Deal” you are given the opportunity to
select one closed door of three, behind one of which there is
a prize.
The other two doors hide “goats” (or some other such “non–
prize”), or nothing at all. Once you have made your
selection, Monty Hall will open one of the remaining doors,
revealing that it does not contain the prize.
Monty Hall
Problem
Assume You Picked Door #1
Monty Hall Problem
Now Assume Monty Has Removed Door #2
Here is the problem:
Should You Stay or Should you switch?
Monty Hall Problem
Answer is You Should Switch
This is Counterintuitive
Key Fact: the host always opens the door to
reveal a goat (if not the properties of the problem
would change)
Tree showing the probability of every possible outcome if the
player initially picks Door 1
Monty Hall Problem
There are 100 doors to pick from in the beginning
You pick one door
Monty looks at the 99 others, finds the goats, and opens all but 1
Do you stick with your original door (1/100), or the other door, which was filtered
from 99?
It’s a bit clearer now : Monty is taking a set of 99 choices and improving them by
removing 98 goats. When he’s done, he has the top door out of 99 for you to pick.
Your decision: Do you want a random door out of 100 (initial guess) or the best
door out of 99? Said another way, do you want 1 random chance or the best of 99
random chances?
We’re starting to see why Monty’s actions help us. He’s letting us choose between a
generic, random choice and a curated, filtered choice. Filtered is better.
Monty Hall Problem
Bayes Rule
Bayes Rule In
Spam Filtering
Spam
Filtering
Fighting spam is a constant exercise. As the junk filters
become more intelligent, the spam senders come up with
innovative means to ensure their emails reach your
inbox.
The automatic identification of spam and phishing scams
is usually coupled with a “human” element. This
Human Element has to be Weighted / Blended.
Spam
Filtering
When many people mark an email message as spam,
the filter will eventually “update”
(using an updating rule)
The properties of a spam message are constantly in flux.
Thus, spam filters need to be taught constantly.
Spam Filtering
Key Insight is that when developing a filter we are trying
to mimic the information that allows you (as a human
reasoner) to rapidly detect that a message is spam:
(1) Message is from another country ( in particular
china, Nigeria, India, etc.)
(2) Message is from new email address
(3) ... What Else?
Bayes Rule In
Spam Filtering
Some of the same properties at work in spam filtering are
those at work in E-Discovery
bayesian spam filters calculate the probability of a
message being spam based on its contents. Unlike
simple content-based filters, Bayesian spam filtering
learns from spam and from good mail, resulting in a
very robust, adapting and efficient anti-spam approach
that, best of all, returns hardly any false positives.
Bayes Rule In
Spam Filtering
Type 1 vs. Type 2 Error Trade Off:
Type 1 = False positive
(convict someone /something that is innocent)
Type 2 = False Negative
(Fail to convict someone /something that is Guilty)
Which Would We Rather Have in This Context?
Bayes Rule In
Spam Filtering
Type 1 vs. Type 2 Error Trade Off:
Type 1 = False positive
(convict someone /something that is innocent)
Type 2 = False Negative
(Fail to convict someone /something that is Guilty)
Which Would We Rather Have in This Context?
Allow Some Messages to Go Your Inbox
Bayes Rule In
Spam Filtering
Basic Scoring Content-based spam filter
looks for words and other characteristics typical of spam.
Every characteristic element is assigned a score, and a
spam score for the whole message is computed from the
individual scores.
Some scoring filters also look for characteristics of
legitimate mail, lowering the complete score
=
Train the Filter =
In light of what you have now identified as spam, update
the scoring methods or properties that the spam filter
uses
Wisdom of Crowds --> Leverage large data set to see
what crowd thinks is spam
Example From a
Info Tech Company
http://www.bluewatermedia.com/support/spam-filter.html
Bayes Rule In
Spam Filtering
http://www.bluewatermedia.com/support/spam-filter.html
Keep Thinking About the Relationship
between
Spam Filters
and
EDiscovery /
Automated Doc Review
Daniel Martin Katz
@ computational
computationallegalstudies.com
lexpredict.com
danielmartinkatz.com
illinois tech - chicago kent college of law@

More Related Content

Viewers also liked

Viewers also liked (7)

Quantitative Methods for Lawyers - Class #7 - Probability & Basic Statistics ...
Quantitative Methods for Lawyers - Class #7 - Probability & Basic Statistics ...Quantitative Methods for Lawyers - Class #7 - Probability & Basic Statistics ...
Quantitative Methods for Lawyers - Class #7 - Probability & Basic Statistics ...
 
Quantitative Methods for Lawyers - Bonus Module - Introduction to R, Installi...
Quantitative Methods for Lawyers - Bonus Module - Introduction to R, Installi...Quantitative Methods for Lawyers - Bonus Module - Introduction to R, Installi...
Quantitative Methods for Lawyers - Bonus Module - Introduction to R, Installi...
 
Legal Analytics Course - Class 10 - Information Visualization + DataViz in R ...
Legal Analytics Course - Class 10 - Information Visualization + DataViz in R ...Legal Analytics Course - Class 10 - Information Visualization + DataViz in R ...
Legal Analytics Course - Class 10 - Information Visualization + DataViz in R ...
 
Legal Analytics Course - Class #2 - Introduction to Machine Learning for Lawy...
Legal Analytics Course - Class #2 - Introduction to Machine Learning for Lawy...Legal Analytics Course - Class #2 - Introduction to Machine Learning for Lawy...
Legal Analytics Course - Class #2 - Introduction to Machine Learning for Lawy...
 
Legal Analytics Course - Class 5 - Quantitative Legal Prediction + Data Drive...
Legal Analytics Course - Class 5 - Quantitative Legal Prediction + Data Drive...Legal Analytics Course - Class 5 - Quantitative Legal Prediction + Data Drive...
Legal Analytics Course - Class 5 - Quantitative Legal Prediction + Data Drive...
 
Legal Analytics - Introduction to the Course - Professor Daniel Martin Katz +...
Legal Analytics - Introduction to the Course - Professor Daniel Martin Katz +...Legal Analytics - Introduction to the Course - Professor Daniel Martin Katz +...
Legal Analytics - Introduction to the Course - Professor Daniel Martin Katz +...
 
AWS re:Invent 2016: Blockchain on AWS: Disrupting the Norm (GPST301)
AWS re:Invent 2016: Blockchain on AWS: Disrupting the Norm (GPST301)AWS re:Invent 2016: Blockchain on AWS: Disrupting the Norm (GPST301)
AWS re:Invent 2016: Blockchain on AWS: Disrupting the Norm (GPST301)
 

More from Daniel Katz

More from Daniel Katz (20)

Legal Analytics versus Empirical Legal Studies - or - Causal Inference vs Pre...
Legal Analytics versus Empirical Legal Studies - or - Causal Inference vs Pre...Legal Analytics versus Empirical Legal Studies - or - Causal Inference vs Pre...
Legal Analytics versus Empirical Legal Studies - or - Causal Inference vs Pre...
 
Can Law Librarians Help Law Become More Data Driven ? An Open Question in Ne...
Can Law Librarians Help Law Become More Data Driven ?  An Open Question in Ne...Can Law Librarians Help Law Become More Data Driven ?  An Open Question in Ne...
Can Law Librarians Help Law Become More Data Driven ? An Open Question in Ne...
 
Why We Are Open Sourcing ContraxSuite and Some Thoughts About Legal Tech and ...
Why We Are Open Sourcing ContraxSuite and Some Thoughts About Legal Tech and ...Why We Are Open Sourcing ContraxSuite and Some Thoughts About Legal Tech and ...
Why We Are Open Sourcing ContraxSuite and Some Thoughts About Legal Tech and ...
 
Fin (Legal) Tech – Law’s Future from Finance’s Past (Some Thoughts About the ...
Fin (Legal) Tech – Law’s Future from Finance’s Past (Some Thoughts About the ...Fin (Legal) Tech – Law’s Future from Finance’s Past (Some Thoughts About the ...
Fin (Legal) Tech – Law’s Future from Finance’s Past (Some Thoughts About the ...
 
Exploring the Physical Properties of Regulatory Ecosystems - Professors Danie...
Exploring the Physical Properties of Regulatory Ecosystems - Professors Danie...Exploring the Physical Properties of Regulatory Ecosystems - Professors Danie...
Exploring the Physical Properties of Regulatory Ecosystems - Professors Danie...
 
Law + Complexity & Prediction: Toward a Characterization of Legal Systems as ...
Law + Complexity & Prediction: Toward a Characterization of Legal Systems as ...Law + Complexity & Prediction: Toward a Characterization of Legal Systems as ...
Law + Complexity & Prediction: Toward a Characterization of Legal Systems as ...
 
Building Your Personal (Legal) Brand - Some Thoughts for Law Students and Oth...
Building Your Personal (Legal) Brand - Some Thoughts for Law Students and Oth...Building Your Personal (Legal) Brand - Some Thoughts for Law Students and Oth...
Building Your Personal (Legal) Brand - Some Thoughts for Law Students and Oth...
 
Measure Twice, Cut Once - Solving the Legal Profession Biggest Challenges Tog...
Measure Twice, Cut Once - Solving the Legal Profession Biggest Challenges Tog...Measure Twice, Cut Once - Solving the Legal Profession Biggest Challenges Tog...
Measure Twice, Cut Once - Solving the Legal Profession Biggest Challenges Tog...
 
Artificial Intelligence and Law - 
A Primer
Artificial Intelligence and Law - 
A Primer Artificial Intelligence and Law - 
A Primer
Artificial Intelligence and Law - 
A Primer
 
Machine Learning as a Service: #MLaaS, Open Source and the Future of (Legal) ...
Machine Learning as a Service: #MLaaS, Open Source and the Future of (Legal) ...Machine Learning as a Service: #MLaaS, Open Source and the Future of (Legal) ...
Machine Learning as a Service: #MLaaS, Open Source and the Future of (Legal) ...
 
Technology, Data and Computation Session @ The World Bank - Law, Justice, and...
Technology, Data and Computation Session @ The World Bank - Law, Justice, and...Technology, Data and Computation Session @ The World Bank - Law, Justice, and...
Technology, Data and Computation Session @ The World Bank - Law, Justice, and...
 
LexPredict - Empowering the Future of Legal Decision Making
LexPredict - Empowering the Future of Legal Decision MakingLexPredict - Empowering the Future of Legal Decision Making
LexPredict - Empowering the Future of Legal Decision Making
 
{Law, Tech, Design, Delivery} Observations Regarding Innovation in the Legal ...
{Law, Tech, Design, Delivery} Observations Regarding Innovation in the Legal ...{Law, Tech, Design, Delivery} Observations Regarding Innovation in the Legal ...
{Law, Tech, Design, Delivery} Observations Regarding Innovation in the Legal ...
 
Legal Analytics Course - Class 11 - Network Analysis and Law - Professors Dan...
Legal Analytics Course - Class 11 - Network Analysis and Law - Professors Dan...Legal Analytics Course - Class 11 - Network Analysis and Law - Professors Dan...
Legal Analytics Course - Class 11 - Network Analysis and Law - Professors Dan...
 
Legal Analytics Course - Class 12 - Data Preprocessing using dPlyR - Professo...
Legal Analytics Course - Class 12 - Data Preprocessing using dPlyR - Professo...Legal Analytics Course - Class 12 - Data Preprocessing using dPlyR - Professo...
Legal Analytics Course - Class 12 - Data Preprocessing using dPlyR - Professo...
 
Legal Analytics Course - Class #4 - Github and RMarkdown Tutorial - Professor...
Legal Analytics Course - Class #4 - Github and RMarkdown Tutorial - Professor...Legal Analytics Course - Class #4 - Github and RMarkdown Tutorial - Professor...
Legal Analytics Course - Class #4 - Github and RMarkdown Tutorial - Professor...
 
Legal Analytics Course - Class 9 - Clustering Algorithms (K-Means & Hierarch...
Legal Analytics Course - Class 9 -  Clustering Algorithms (K-Means & Hierarch...Legal Analytics Course - Class 9 -  Clustering Algorithms (K-Means & Hierarch...
Legal Analytics Course - Class 9 - Clustering Algorithms (K-Means & Hierarch...
 
Legal Analytics Course - Class 8 - Introduction to Random Forests and Ensembl...
Legal Analytics Course - Class 8 - Introduction to Random Forests and Ensembl...Legal Analytics Course - Class 8 - Introduction to Random Forests and Ensembl...
Legal Analytics Course - Class 8 - Introduction to Random Forests and Ensembl...
 
Legal Analytics Course - Class 7 - Binary Classification with Decision Tree L...
Legal Analytics Course - Class 7 - Binary Classification with Decision Tree L...Legal Analytics Course - Class 7 - Binary Classification with Decision Tree L...
Legal Analytics Course - Class 7 - Binary Classification with Decision Tree L...
 
Legal Analytics Course - Class 6 - Overfitting, Underfitting, & Cross-Validat...
Legal Analytics Course - Class 6 - Overfitting, Underfitting, & Cross-Validat...Legal Analytics Course - Class 6 - Overfitting, Underfitting, & Cross-Validat...
Legal Analytics Course - Class 6 - Overfitting, Underfitting, & Cross-Validat...
 

Recently uploaded

一比一原版(OhioStateU毕业证书)美国俄亥俄州立大学毕业证如何办理
一比一原版(OhioStateU毕业证书)美国俄亥俄州立大学毕业证如何办理一比一原版(OhioStateU毕业证书)美国俄亥俄州立大学毕业证如何办理
一比一原版(OhioStateU毕业证书)美国俄亥俄州立大学毕业证如何办理
e9733fc35af6
 
ASMA JILANI EXPLAINED CASE PLD 1972 FOR CSS
ASMA JILANI EXPLAINED CASE PLD 1972 FOR CSSASMA JILANI EXPLAINED CASE PLD 1972 FOR CSS
ASMA JILANI EXPLAINED CASE PLD 1972 FOR CSS
CssSpamx
 
一比一原版(Carleton毕业证书)加拿大卡尔顿大学毕业证如何办理
一比一原版(Carleton毕业证书)加拿大卡尔顿大学毕业证如何办理一比一原版(Carleton毕业证书)加拿大卡尔顿大学毕业证如何办理
一比一原版(Carleton毕业证书)加拿大卡尔顿大学毕业证如何办理
e9733fc35af6
 
一比一原版(Monash毕业证书)澳洲莫纳什大学毕业证如何办理
一比一原版(Monash毕业证书)澳洲莫纳什大学毕业证如何办理一比一原版(Monash毕业证书)澳洲莫纳什大学毕业证如何办理
一比一原版(Monash毕业证书)澳洲莫纳什大学毕业证如何办理
F La
 
一比一原版赫尔大学毕业证如何办理
一比一原版赫尔大学毕业证如何办理一比一原版赫尔大学毕业证如何办理
一比一原版赫尔大学毕业证如何办理
Airst S
 
一比一原版(TheAuckland毕业证书)新西兰奥克兰大学毕业证如何办理
一比一原版(TheAuckland毕业证书)新西兰奥克兰大学毕业证如何办理一比一原版(TheAuckland毕业证书)新西兰奥克兰大学毕业证如何办理
一比一原版(TheAuckland毕业证书)新西兰奥克兰大学毕业证如何办理
F La
 
一比一原版伦敦南岸大学毕业证如何办理
一比一原版伦敦南岸大学毕业证如何办理一比一原版伦敦南岸大学毕业证如何办理
一比一原版伦敦南岸大学毕业证如何办理
Airst S
 
一比一原版(RMIT毕业证书)皇家墨尔本理工大学毕业证如何办理
一比一原版(RMIT毕业证书)皇家墨尔本理工大学毕业证如何办理一比一原版(RMIT毕业证书)皇家墨尔本理工大学毕业证如何办理
一比一原版(RMIT毕业证书)皇家墨尔本理工大学毕业证如何办理
ss
 
Code_Ethics of_Mechanical_Engineering.ppt
Code_Ethics of_Mechanical_Engineering.pptCode_Ethics of_Mechanical_Engineering.ppt
Code_Ethics of_Mechanical_Engineering.ppt
JosephCanama
 
一比一原版(UM毕业证书)美国密歇根大学安娜堡分校毕业证如何办理
一比一原版(UM毕业证书)美国密歇根大学安娜堡分校毕业证如何办理一比一原版(UM毕业证书)美国密歇根大学安娜堡分校毕业证如何办理
一比一原版(UM毕业证书)美国密歇根大学安娜堡分校毕业证如何办理
A AA
 
买(rice毕业证书)莱斯大学毕业证本科文凭证书原版质量
买(rice毕业证书)莱斯大学毕业证本科文凭证书原版质量买(rice毕业证书)莱斯大学毕业证本科文凭证书原版质量
买(rice毕业证书)莱斯大学毕业证本科文凭证书原版质量
acyefsa
 
一比一原版(JCU毕业证书)詹姆斯库克大学毕业证如何办理
一比一原版(JCU毕业证书)詹姆斯库克大学毕业证如何办理一比一原版(JCU毕业证书)詹姆斯库克大学毕业证如何办理
一比一原版(JCU毕业证书)詹姆斯库克大学毕业证如何办理
Airst S
 
一比一原版(UNSW毕业证书)新南威尔士大学毕业证如何办理
一比一原版(UNSW毕业证书)新南威尔士大学毕业证如何办理一比一原版(UNSW毕业证书)新南威尔士大学毕业证如何办理
一比一原版(UNSW毕业证书)新南威尔士大学毕业证如何办理
ss
 

Recently uploaded (20)

一比一原版(OhioStateU毕业证书)美国俄亥俄州立大学毕业证如何办理
一比一原版(OhioStateU毕业证书)美国俄亥俄州立大学毕业证如何办理一比一原版(OhioStateU毕业证书)美国俄亥俄州立大学毕业证如何办理
一比一原版(OhioStateU毕业证书)美国俄亥俄州立大学毕业证如何办理
 
Who is Spencer McDaniel? And Does He Actually Exist?
Who is Spencer McDaniel? And Does He Actually Exist?Who is Spencer McDaniel? And Does He Actually Exist?
Who is Spencer McDaniel? And Does He Actually Exist?
 
ASMA JILANI EXPLAINED CASE PLD 1972 FOR CSS
ASMA JILANI EXPLAINED CASE PLD 1972 FOR CSSASMA JILANI EXPLAINED CASE PLD 1972 FOR CSS
ASMA JILANI EXPLAINED CASE PLD 1972 FOR CSS
 
一比一原版(Carleton毕业证书)加拿大卡尔顿大学毕业证如何办理
一比一原版(Carleton毕业证书)加拿大卡尔顿大学毕业证如何办理一比一原版(Carleton毕业证书)加拿大卡尔顿大学毕业证如何办理
一比一原版(Carleton毕业证书)加拿大卡尔顿大学毕业证如何办理
 
一比一原版(Monash毕业证书)澳洲莫纳什大学毕业证如何办理
一比一原版(Monash毕业证书)澳洲莫纳什大学毕业证如何办理一比一原版(Monash毕业证书)澳洲莫纳什大学毕业证如何办理
一比一原版(Monash毕业证书)澳洲莫纳什大学毕业证如何办理
 
一比一原版赫尔大学毕业证如何办理
一比一原版赫尔大学毕业证如何办理一比一原版赫尔大学毕业证如何办理
一比一原版赫尔大学毕业证如何办理
 
Understanding the Role of Labor Unions and Collective Bargaining
Understanding the Role of Labor Unions and Collective BargainingUnderstanding the Role of Labor Unions and Collective Bargaining
Understanding the Role of Labor Unions and Collective Bargaining
 
一比一原版(TheAuckland毕业证书)新西兰奥克兰大学毕业证如何办理
一比一原版(TheAuckland毕业证书)新西兰奥克兰大学毕业证如何办理一比一原版(TheAuckland毕业证书)新西兰奥克兰大学毕业证如何办理
一比一原版(TheAuckland毕业证书)新西兰奥克兰大学毕业证如何办理
 
一比一原版伦敦南岸大学毕业证如何办理
一比一原版伦敦南岸大学毕业证如何办理一比一原版伦敦南岸大学毕业证如何办理
一比一原版伦敦南岸大学毕业证如何办理
 
一比一原版(RMIT毕业证书)皇家墨尔本理工大学毕业证如何办理
一比一原版(RMIT毕业证书)皇家墨尔本理工大学毕业证如何办理一比一原版(RMIT毕业证书)皇家墨尔本理工大学毕业证如何办理
一比一原版(RMIT毕业证书)皇家墨尔本理工大学毕业证如何办理
 
A SHORT HISTORY OF LIBERTY'S PROGREE THROUGH HE EIGHTEENTH CENTURY
A SHORT HISTORY OF LIBERTY'S PROGREE THROUGH HE EIGHTEENTH CENTURYA SHORT HISTORY OF LIBERTY'S PROGREE THROUGH HE EIGHTEENTH CENTURY
A SHORT HISTORY OF LIBERTY'S PROGREE THROUGH HE EIGHTEENTH CENTURY
 
Code_Ethics of_Mechanical_Engineering.ppt
Code_Ethics of_Mechanical_Engineering.pptCode_Ethics of_Mechanical_Engineering.ppt
Code_Ethics of_Mechanical_Engineering.ppt
 
3 Formation of Company.www.seribangash.com.ppt
3 Formation of Company.www.seribangash.com.ppt3 Formation of Company.www.seribangash.com.ppt
3 Formation of Company.www.seribangash.com.ppt
 
一比一原版(UM毕业证书)美国密歇根大学安娜堡分校毕业证如何办理
一比一原版(UM毕业证书)美国密歇根大学安娜堡分校毕业证如何办理一比一原版(UM毕业证书)美国密歇根大学安娜堡分校毕业证如何办理
一比一原版(UM毕业证书)美国密歇根大学安娜堡分校毕业证如何办理
 
买(rice毕业证书)莱斯大学毕业证本科文凭证书原版质量
买(rice毕业证书)莱斯大学毕业证本科文凭证书原版质量买(rice毕业证书)莱斯大学毕业证本科文凭证书原版质量
买(rice毕业证书)莱斯大学毕业证本科文凭证书原版质量
 
一比一原版(JCU毕业证书)詹姆斯库克大学毕业证如何办理
一比一原版(JCU毕业证书)詹姆斯库克大学毕业证如何办理一比一原版(JCU毕业证书)詹姆斯库克大学毕业证如何办理
一比一原版(JCU毕业证书)詹姆斯库克大学毕业证如何办理
 
Navigating Employment Law - Term Project.pptx
Navigating Employment Law - Term Project.pptxNavigating Employment Law - Term Project.pptx
Navigating Employment Law - Term Project.pptx
 
Performance of contract-1 law presentation
Performance of contract-1 law presentationPerformance of contract-1 law presentation
Performance of contract-1 law presentation
 
一比一原版(UNSW毕业证书)新南威尔士大学毕业证如何办理
一比一原版(UNSW毕业证书)新南威尔士大学毕业证如何办理一比一原版(UNSW毕业证书)新南威尔士大学毕业证如何办理
一比一原版(UNSW毕业证书)新南威尔士大学毕业证如何办理
 
5-6-24 David Kennedy Article Law 360.pdf
5-6-24 David Kennedy Article Law 360.pdf5-6-24 David Kennedy Article Law 360.pdf
5-6-24 David Kennedy Article Law 360.pdf
 

Quantitative Methods for Lawyers - Class #8 - Bayes Rule and Conditional Probability - Professor Daniel Martin Katz

  • 1. Quantitative Methods for Lawyers Conditional Probability & Bayes Theorem ! Class #8 @ computational computationallegalstudies.com professor daniel martin katz danielmartinkatz.com lexpredict.com slideshare.net/DanielKatz
  • 2. Conditional Probability is an Important Concept and A Precursor to Discussing Bayes Rule Conditional Probability Relies on a Little Bit of Set Theory” Prob of “A Given B” P (A intersect B) Divided by the Prob of B
  • 3. In a conditional probability problem, the sample space is “reduced” to the “space” of the given outcome (e.g. if given B, we now just care about the probability of A occurring “inside” of B) Given B, what’s the probability of A? A Visual Depiction of Conditional Probability The Entire Yellow Space is Intuitively we are asking ... What Share of B contains the overlapwithA?
  • 4. A Dice Based Example What is the Probability of Getting a “2” if we know that the number thrown is less than 5?
  • 5. What is the Probability of Getting a “2” if we know given that the number thrown is less than 5? A Dice Based Example
  • 6. What is the Probability of Getting a “2” if we know given that the number thrown is less than 5? Again Here is Our Formula: A Dice Based Example
  • 7. What is the Probability of Getting a “2” if we know given that the number thrown is less than 5? P ( “2”|know it is Less than 5) = P ( “2” {1,2,3,4} ) P ( {1,2,3,4} ) Again Here is Our Formula: A Dice Based Example
  • 8. What is the Probability of Getting a “2” if we know given that the number thrown is less than 5? P ( “2”|know it is Less than 5) = P ( “2” {1,2,3,4} ) P ( {1,2,3,4} ) A Dice Based Example
  • 9. Okay What is P ( “2” {1,2,3,4} ) ? What is the Probability of Getting a “2” if we know given that the number thrown is less than 5? The only element that intersects is “2” so is it the Prob of “2” which is 1/6 P ( “2”|know it is Less than 5) = P ( “2” {1,2,3,4} ) P ( {1,2,3,4} ) A Dice Based Example
  • 10. Okay What is P ( “2” {1,2,3,4} ) ? What is the Probability of Getting a “2” if we know given that the number thrown is less than 5? The only element that intersects is “2” so is it the Prob of “2” which is 1/6 P ( “2”|know it is Less than 5) = P ( “2” {1,2,3,4} ) P ( {1,2,3,4} ) Now What is P ( {1,2,3,4} ) ? 1/6 + 1/6 +1/6 + 1/6 = 4/6 A Dice Based Example
  • 11. Okay What is P ( “2” {1,2,3,4} ) ? What is the Probability of Getting a “2” if we know given that the number thrown is less than 5? The only element that intersects is “2” so is it the Prob of “2” which is 1/6 P ( “2”|know it is Less than 5) = P ( “2” {1,2,3,4} ) P ( {1,2,3,4} ) Now What is P ( {1,2,3,4} ) ? 1/6 + 1/6 +1/6 + 1/6 = 4/6 Okay Lets Put it All Together: P ( “2” {1,2,3,4} ) P ( {1,2,3,4} ) = 1/41/6 4/6 = A Dice Based Example
  • 13. In “Lets Make a Deal” you are given the opportunity to select one closed door of three, behind one of which there is a prize. The other two doors hide “goats” (or some other such “non– prize”), or nothing at all. Once you have made your selection, Monty Hall will open one of the remaining doors, revealing that it does not contain the prize. Monty Hall Problem
  • 14. Assume You Picked Door #1 Monty Hall Problem Now Assume Monty Has Removed Door #2 Here is the problem: Should You Stay or Should you switch?
  • 15. Monty Hall Problem Answer is You Should Switch This is Counterintuitive Key Fact: the host always opens the door to reveal a goat (if not the properties of the problem would change)
  • 16. Tree showing the probability of every possible outcome if the player initially picks Door 1 Monty Hall Problem
  • 17. There are 100 doors to pick from in the beginning You pick one door Monty looks at the 99 others, finds the goats, and opens all but 1 Do you stick with your original door (1/100), or the other door, which was filtered from 99? It’s a bit clearer now : Monty is taking a set of 99 choices and improving them by removing 98 goats. When he’s done, he has the top door out of 99 for you to pick. Your decision: Do you want a random door out of 100 (initial guess) or the best door out of 99? Said another way, do you want 1 random chance or the best of 99 random chances? We’re starting to see why Monty’s actions help us. He’s letting us choose between a generic, random choice and a curated, filtered choice. Filtered is better. Monty Hall Problem
  • 19. Bayes Rule In Spam Filtering
  • 20. Spam Filtering Fighting spam is a constant exercise. As the junk filters become more intelligent, the spam senders come up with innovative means to ensure their emails reach your inbox. The automatic identification of spam and phishing scams is usually coupled with a “human” element. This Human Element has to be Weighted / Blended.
  • 21. Spam Filtering When many people mark an email message as spam, the filter will eventually “update” (using an updating rule) The properties of a spam message are constantly in flux. Thus, spam filters need to be taught constantly.
  • 22. Spam Filtering Key Insight is that when developing a filter we are trying to mimic the information that allows you (as a human reasoner) to rapidly detect that a message is spam: (1) Message is from another country ( in particular china, Nigeria, India, etc.) (2) Message is from new email address (3) ... What Else?
  • 23. Bayes Rule In Spam Filtering Some of the same properties at work in spam filtering are those at work in E-Discovery bayesian spam filters calculate the probability of a message being spam based on its contents. Unlike simple content-based filters, Bayesian spam filtering learns from spam and from good mail, resulting in a very robust, adapting and efficient anti-spam approach that, best of all, returns hardly any false positives.
  • 24. Bayes Rule In Spam Filtering Type 1 vs. Type 2 Error Trade Off: Type 1 = False positive (convict someone /something that is innocent) Type 2 = False Negative (Fail to convict someone /something that is Guilty) Which Would We Rather Have in This Context?
  • 25. Bayes Rule In Spam Filtering Type 1 vs. Type 2 Error Trade Off: Type 1 = False positive (convict someone /something that is innocent) Type 2 = False Negative (Fail to convict someone /something that is Guilty) Which Would We Rather Have in This Context? Allow Some Messages to Go Your Inbox
  • 26. Bayes Rule In Spam Filtering Basic Scoring Content-based spam filter looks for words and other characteristics typical of spam. Every characteristic element is assigned a score, and a spam score for the whole message is computed from the individual scores. Some scoring filters also look for characteristics of legitimate mail, lowering the complete score =
  • 27. Train the Filter = In light of what you have now identified as spam, update the scoring methods or properties that the spam filter uses Wisdom of Crowds --> Leverage large data set to see what crowd thinks is spam
  • 28. Example From a Info Tech Company http://www.bluewatermedia.com/support/spam-filter.html
  • 29. Bayes Rule In Spam Filtering http://www.bluewatermedia.com/support/spam-filter.html
  • 30. Keep Thinking About the Relationship between Spam Filters and EDiscovery / Automated Doc Review
  • 31. Daniel Martin Katz @ computational computationallegalstudies.com lexpredict.com danielmartinkatz.com illinois tech - chicago kent college of law@