Probability Harry R. Erwin, PhD School of Computing and Technology University of Sunderland.

Slides:



Advertisements
Similar presentations
Using R Harry R. Erwin, PhD School of Computing and Technology University of Sunderland.
Advertisements

Chapter 4 Probability and Probability Distributions
Economics 105: Statistics Any questions? Go over GH2 Student Information Sheet.
Business Statistics: A Decision-Making Approach, 6e © 2005 Prentice-Hall, Inc. Chap 4-1 Business Statistics: A Decision-Making Approach 6 th Edition Chapter.
Statistics Chapter 3: Introduction to Discrete Random Variables.
Lecture 10 – Introduction to Probability Topics Events, sample space, random variables Examples Probability distribution function Conditional probabilities.
1 1 PRESENTED BY E. G. GASCON Introduction to Probability Section 7.3, 7.4, 7.5.
Chapter 4 Using Probability and Probability Distributions
Business Statistics: A Decision-Making Approach, 7e © 2008 Prentice-Hall, Inc. Chap 4-1 Business Statistics: A Decision-Making Approach 7 th Edition Chapter.
1 Econ 240A Power Three. 2 Summary: Week One Descriptive Statistics –measures of central tendency –measures of dispersion Exploratory data Analysis –stem.
CEEN-2131 Business Statistics: A Decision-Making Approach CEEN-2130/31/32 Using Probability and Probability Distributions.
Expected Value (Mean), Variance, Independence Transformations of Random Variables Last Time:
Probability and Probability Distributions
Chapter 9 Introducing Probability - A bridge from Descriptive Statistics to Inferential Statistics.
Lecture 10 – Introduction to Probability Topics Events, sample space, random variables Examples Probability distribution function Conditional probabilities.
Sets, Combinatorics, Probability, and Number Theory Mathematical Structures for Computer Science Chapter 3 Copyright © 2006 W.H. Freeman & Co.MSCS SlidesProbability.
McGraw-Hill/IrwinCopyright © 2009 by The McGraw-Hill Companies, Inc. All Rights Reserved. Chapter 4 and 5 Probability and Discrete Random Variables.
Sets, Combinatorics, Probability, and Number Theory Mathematical Structures for Computer Science Chapter 3 Copyright © 2006 W.H. Freeman & Co.MSCS SlidesProbability.
Simple Mathematical Facts for Lecture 1. Conditional Probabilities Given an event has occurred, the conditional probability that another event occurs.
Central Tendency Harry R. Erwin, PhD School of Computing and Technology University of Sunderland.
Experimental Design and Modelling Harry R. Erwin, PhD School of Computing and Technology University of Sunderland.
Chapter 5.1 Probability Distributions.  A variable is defined as a characteristic or attribute that can assume different values.  Recall that a variable.
©The McGraw-Hill Companies, Inc. 2008McGraw-Hill/Irwin A Survey of Probability Concepts Chapter 5.
LECTURE 15 THURSDAY, 15 OCTOBER STA 291 Fall
BINOMIALDISTRIBUTION AND ITS APPLICATION. Binomial Distribution  The binomial probability density function –f(x) = n C x p x q n-x for x=0,1,2,3…,n for.
Introduction to Behavioral Statistics Probability, The Binomial Distribution and the Normal Curve.
1.3 Simulations and Experimental Probability (Textbook Section 4.1)
Chap 4-1 A Course In Business Statistics, 4th © 2006 Prentice-Hall, Inc. A Course In Business Statistics 4 th Edition Chapter 4 Using Probability and Probability.
LECTURE 14 TUESDAY, 13 OCTOBER STA 291 Fall
The Cartoon Guide to Statistics
Week 21 Conditional Probability Idea – have performed a chance experiment but don’t know the outcome (ω), but have some partial information (event A) about.
What is Probability?. The Mathematics of Chance How many possible outcomes are there with a single 6-sided die? What are your “chances” of rolling a 6?
1 CHAPTERS 14 AND 15 (Intro Stats – 3 edition) PROBABILITY, PROBABILITY RULES, AND CONDITIONAL PROBABILITY.
Dr. Ahmed Abdelwahab Introduction for EE420. Probability Theory Probability theory is rooted in phenomena that can be modeled by an experiment with an.
Slide 5-1 Chapter 5 Probability and Random Variables.
Copyright © Cengage Learning. All rights reserved. Elementary Probability Theory 5.
PROBABILITY, PROBABILITY RULES, AND CONDITIONAL PROBABILITY
12/7/20151 Math b Conditional Probability, Independency, Bayes Theorem.
1 Probability: Liklihood of occurrence; we know the population, and we predict the outcome or the sample. Statistics: We observe the sample and use the.
Introduction  Probability Theory was first used to solve problems in gambling  Blaise Pascal ( ) - laid the foundation for the Theory of Probability.
Natural Language Processing Giuseppe Attardi Introduction to Probability IP notice: some slides from: Dan Jurafsky, Jim Martin, Sandiway Fong, Dan Klein.
Binary Response Harry R. Erwin, PhD School of Computing and Technology University of Sunderland.
Copyright © 2006 The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin Review of Statistics I: Probability and Probability Distributions.
Statistical Inference Harry R. Erwin, PhD School of Computing and Technology University of Sunderland.
1 Probability: Introduction Definitions,Definitions, Laws of ProbabilityLaws of Probability Random VariablesRandom Variables DistributionsDistributions.
Week 21 Rules of Probability for all Corollary: The probability of the union of any two events A and B is Proof: … If then, Proof:
Chapter 2: Probability. Section 2.1: Basic Ideas Definition: An experiment is a process that results in an outcome that cannot be predicted in advance.
Probability Michael J. Watts
Probability and Simulation The Study of Randomness.
Lecture 19 Dr. MUMTAZ AHMED MTH 161: Introduction To Statistics.
Copyright © 2011 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin Chapter 4 Probability.
Chap 4-1 Chapter 4 Using Probability and Probability Distributions.
Basic Probabilities Starting Unit 6 Today!. Definitions  Experiment – any process that generates one or more observable outcomes  Sample Space – set.
AP Statistics From Randomness to Probability Chapter 14.
Conditional Probability 423/what-is-your-favorite-data-analysis-cartoon 1.
Chapter 7. Section 7.1 Finite probability  In a lottery, players win a large prize when they pick four digits that match, in the correct order, four.
1 COMP2121 Discrete Mathematics Principle of Inclusion and Exclusion Probability Hubert Chan (Chapters 7.4, 7.5, 6) [O1 Abstract Concepts] [O3 Basic Analysis.
The Mathematics of Star Trek Workshop
Chapter 4 Using Probability and Probability Distributions
PROBABILITY AND PROBABILITY RULES
Chapter 4 Probability.
Lecture 5 0f 6 TOPIC 10 Independent Events.
What is Probability? Quantification of uncertainty.
Game Theory “How to Win the Game!”.
Conditional Probability
5.2 Probability
Probability The term probability refers to indicate the likelihood that some event will happen. For example, ‘there is high probability that it will rain.
Advanced Artificial Intelligence
Activity Gerolamo Cardano, Italian mathematician, wrote the first book about Probability in Chances Are!
Sets, Combinatorics, Probability, and Number Theory
Presentation transcript:

Probability Harry R. Erwin, PhD School of Computing and Technology University of Sunderland

Resources Rowntree, D. (1981) Statistics Without Tears. Harmondsworth: Penguin. Hinton, P.R. (1995) Statistics Explained. London: Routledge. Hatch, E.M. and Farhady, H. (1982) Research Design And Statistics For Applied Linguistics. Rowley Mass.: Newbury House. Crawley, MJ (2005) Statistics: An Introduction Using R. Wiley. Gonick, L., and Woollcott Smith (1993) A Cartoon Guide to Statistics. HarperResource (for fun).

Module Outline Introduction Using R Data analysis (the gathering, display, and summary of data) Probability (the laws of chance) Statistical inference (the drawing of conclusions from specific data knowing probability) Experimental design and modeling (putting it all together)

Lecture Outline Introduction Basic Definitions Basic Operations Conditional Probability Independence Bayes Theorem Discrete Random Variables Continuous Random Variables Examples

Introduction Historically, probability has had one application: gambling Claudius (Roman emperor, 10 BCE -54 CE ) wrote the first book on gambling: How to win at dice Blaise Pascal and Pierre de Fermat invented the modern theory of probability

Basic Definitions Random experiment: the process of observing a chance event Elementary outcomes: the possible results Sample space: the collection of all elementary outcomes, written {outcome 1, outcome 2,…} The probability of outcome 1 is written P(outcome 1 )

Heads or Tails (fair coin) OutcomeProbability Heads0.5 Tails0.5

In the play Rosenkrantz and Guilderstein are Dead Outcome (note same sample space) Probability Heads1.0 Tails0.0

Fair Die Outcome Prob1/6

A Pair of Fair Dice /362/363/364/365/366/365/364/363/362/361/36

Can You Imagine a Way of Testing Whether a Die is Fair? Discuss

Rules of Elementary Probability The probability of any outcome in the sample space is between 0.0 and 1.0 (non-negative) The total probability of all outcomes in the sample space is 1.0 Suppose the probability of outcome 1 is p. The total probability of any other outcome is 1.0-p.

Basic Operations An event is a set of elementary outcomes. The probability of the event is the sum of the probabilities of the outcomes in the set. An event is written {list of outcomes} Suppose you roll a die twice, and the sum is 3. The set of events corresponding to this is {(1,2),(2,1)} The probability of this event is 1/36 + 1/36 What is the probability of getting a sum of 4?

Possible Events ‘E and F’, meaning both event E and event F occur. ‘E or F’, meaning either event E or event F occur. ‘not E’, meaning event E does not occur. P(E or F) = P(E) + P(F) - P(E and F) If the events are mutually exclusive, P(E or F) = P(E) + P(F) Finally, P(not E) = P(E)

Conditional Probability Suppose you have two events E in sample space A and F in sample space B. P(E|F) is the probability of E given that F happens. P(E|F) = P(E and F)/P(F) P(E and F) = P(E|F)P(F) = P(F|E)P(E) Note P(E|E) = P(E and E)/P(E) = P(E)/P(E) = 1 Also P(E|F) = 0 if they are mutually exclusive

Independence Two events are independent if the occurrence of one has no influence on the other. If two events, E and F, are independent, –P(E and F) = P(E)P(F)

Bayes Theorem Suppose you know P(A|B) and you want to calculate P(B|A) –P(B|A)P(A) = P(A|B)P(B) –P(B|A) = P(A|B)P(B)/P(A) A rare disease has a prevalence of 1/1000 There is a test that is 99% accurate when you have the disease. The test also reports 2% positives when you don’t. You just had a positive test result. What are your chances?

Solution Look at people, of whom 1000 have the disease – don’t; hence false positives –1000 do; hence 999 true positives –Your chances of having the disease given you had a positive test result are 999/( ) = 1/21. Why? P(I and X) = P(I|X)P(X) = P(X|I)P(I) P(I|X) = P(X|I)P(I)/P(X) = 0.999*0.001/P(X) And P(X) = P(X|I)P(I)+P(X|not I)P(not I) = 0.999* *0.999 = 0.021*0.999 So P(I|X) = 1/21

Discrete Random Variables A random variable is the numerical outcome of a random experiment. Each possible outcome has a probability. Histograms can be used to graph these.

Demonstration Using R

Continuous Random Variables Random variables can be continuous –Your height –Your weight –Your age

Examples of Continuous Random Variables Using R

You Can Also Discuss the Cumulative Probability Distribution This the probability of a result between the smallest possible value and a given value. Mathematically, it is area, calculated by summing.

Examples

How you use probability In your experimental work, you show that a null hypothesis has very low probability of being correct. That means the necessary probabilities must be evaluated easily. Discussed in the next lecture.