Lecture-6 Models for Data 1. Discrete Variables Engr. Dr. Attaullah Shah.

Slides:



Advertisements
Similar presentations
Presentation on Probability Distribution * Binomial * Chi-square
Advertisements

DISCRETE RANDOM VARIABLES AND PROBABILITY DISTRIBUTIONS
Chapter 5 Some Important Discrete Probability Distributions
Chapter 5 Discrete Random Variables and Probability Distributions
Basic Business Statistics, 10e © 2006 Prentice-Hall, Inc.. Chap 5-1 Chapter 5 Some Important Discrete Probability Distributions Basic Business Statistics.
Basic Business Statistics, 11e © 2009 Prentice-Hall, Inc. Chap 5-1 Chapter 5 Some Important Discrete Probability Distributions Basic Business Statistics.
ฟังก์ชั่นการแจกแจงความน่าจะเป็น แบบไม่ต่อเนื่อง Discrete Probability Distributions.
Statistics for Managers Using Microsoft Excel, 4e © 2004 Prentice-Hall, Inc. Chap 5-1 Chapter 5 Some Important Discrete Probability Distributions Statistics.
CHAPTER 13: Binomial Distributions
HAWKES LEARNING SYSTEMS math courseware specialists Copyright © 2010 by Hawkes Learning Systems/Quant Systems, Inc. All rights reserved. Chapter 7 Probability.
Statistics for Managers Using Microsoft Excel, 5e © 2008 Pearson Prentice-Hall, Inc.Chap 5-1 Statistics for Managers Using Microsoft® Excel 5th Edition.
Chapter 4 Discrete Random Variables and Probability Distributions
Introduction to Probability and Statistics
Discrete Random Variables and Probability Distributions
Probability Distributions
Ka-fu Wong © 2003 Chap 6- 1 Dr. Ka-fu Wong ECON1003 Analysis of Economic Data.
Statistics for Managers Using Microsoft Excel, 4e © 2004 Prentice-Hall, Inc. Chap 5-1 Chapter 5 Some Important Discrete Probability Distributions Statistics.
Discrete Probability Distributions
Chapter 5 Discrete Probability Distributions
Chapter 5 Discrete Random Variables and Probability Distributions
Chap 5-1 Copyright ©2012 Pearson Education, Inc. publishing as Prentice Hall Chap 5-1 Chapter 5 Discrete Probability Distributions Basic Business Statistics.
Statistics Alan D. Smith.
Statistics for Managers Using Microsoft® Excel 5th Edition
McGraw-Hill Ryerson Copyright © 2011 McGraw-Hill Ryerson Limited. Adapted by Peter Au, George Brown College.
Discrete Probability Distributions Binomial Distribution Poisson Distribution Hypergeometric Distribution.
Probability Distribution
Lesson 6 – 2b Hyper-Geometric Probability Distribution.
Problem A newly married couple plans to have four children and would like to have three girls and a boy. What are the chances (probability) their desire.
McGraw-Hill/IrwinCopyright © 2009 by The McGraw-Hill Companies, Inc. All Rights Reserved. Chapter 4 and 5 Probability and Discrete Random Variables.
Chap 5-1 Copyright ©2013 Pearson Education, Inc. publishing as Prentice Hall Chapter 5 Discrete Probability Distributions Business Statistics: A First.
Chapter 11 Discrete Random Variables and their Probability Distributions.
5-1 Business Statistics: A Decision-Making Approach 8 th Edition Chapter 5 Discrete Probability Distributions.
Basic Business Statistics, 10e © 2006 Prentice-Hall, Inc.. Chap 5-1 Chapter 5 Some Important Discrete Probability Distributions Basic Business Statistics.
Copyright © 2010, 2007, 2004 Pearson Education, Inc. Review and Preview This chapter combines the methods of descriptive statistics presented in.
 A probability function is a function which assigns probabilities to the values of a random variable.  Individual probability values may be denoted by.
Basic Business Statistics, 10e © 2006 Prentice-Hall, Inc.. Chap 5-1 Chapter 5 Some Important Discrete Probability Distributions Basic Business Statistics.
 A probability function is a function which assigns probabilities to the values of a random variable.  Individual probability values may be denoted by.
Discrete Probability Distributions
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.
Binomial Experiment A binomial experiment (also known as a Bernoulli trial) is a statistical experiment that has the following properties:
Copyright © 2010 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin Chapter 5 Discrete Random Variables.
Copyright ©2011 Pearson Education, Inc. publishing as Prentice Hall 5-1 Business Statistics: A Decision-Making Approach 8 th Edition Chapter 5 Discrete.
Definition A random variable is a variable whose value is determined by the outcome of a random experiment/chance situation.
Copyright (C) 2002 Houghton Mifflin Company. All rights reserved. 1 Understandable Statistics Seventh Edition By Brase and Brase Prepared by: Mistah Flynn.
Probability Distributions, Discrete Random Variables
Business Statistics: A Decision-Making Approach, 7e © 2008 Prentice-Hall, Inc. Chap 5-1 Business Statistics: A Decision-Making Approach 7 th Edition Chapter.
What Is Probability Distribution?Ir. Muhril A., M.Sc., Ph.D.1 Chapter 6. Discrete Probability Distributions.
Copyright © 2011 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin Chapter 5 Discrete Random Variables.
Business Statistics, A First Course (4e) © 2006 Prentice-Hall, Inc. Chap 5-1 Chapter 5 Some Important Discrete Probability Distributions Business Statistics,
Random Variables Lecture Lecturer : FATEN AL-HUSSAIN.
Chap 5-1 Discrete and Continuous Probability Distributions.
Copyright (C) 2002 Houghton Mifflin Company. All rights reserved. 1 Understandable Statistics Seventh Edition By Brase and Brase Prepared by: Lynn Smith.
Chapter 4 Discrete Random Variables and Probability Distributions
©The McGraw-Hill Companies, Inc. 2008McGraw-Hill/Irwin Probability Distributions Chapter 6.
Probability Distributions ( 확률분포 ) Chapter 5. 2 모든 가능한 ( 확률 ) 변수의 값에 대해 확률을 할당하는 체계 X 가 1, 2, …, 6 의 값을 가진다면 이 6 개 변수 값에 확률을 할당하는 함수 Definition.
Chapter Five The Binomial Probability Distribution and Related Topics
Chapter 5 Created by Bethany Stubbe and Stephan Kogitz.
Random Variables A random variable is a numerical outcome of a random experiment A discrete random variable can take on only specific, isolated numerical.
Random variables (r.v.) Random variable
Chapter 5 Some Important Discrete Probability Distributions
Discrete Probability Distributions
Probability distributions
Probability Theory and Specific Distributions (Moore Ch5 and Guan Ch6)
Discrete Probability Distributions
Discrete Probability Distributions
Discrete Probability Distributions
Discrete Probability Distributions
Discrete Probability Distributions
Discrete Random Variables and Probability Distributions
Presentation transcript:

Lecture-6 Models for Data 1. Discrete Variables Engr. Dr. Attaullah Shah

Statistical Models In Statistics the distribution of random variable in a data is expressed by one or more equation. A simple model for the measurement X made by an instrument: X = θ + ε θ is the true value of what is being measured, and ε is a measurement error. A plausible model is selected to ensure that the data is in agreement with the model. For this purpose both the type of model and distribution of r.v is important to know. There are a number of distribution variables used for data, such as for Discrete Statistical Distributions, we use The Hyper- geometric Distribution, The Binomial Distribution, The Poisson Distribution and for continuous statistical distribution we use Normal or Gaussian Distribution, Exponential Distribution, Lognormal Distribution etc.

Discrete vs. Continuous Random Variables DISCRETECONTINUOUS Values that can be counted and ordered Values that cannot be counted Gap between consecutive values On continuous spectrum Examples: 1) Insurance claims filed in one day 2) Cars sold in one month 3) Employees who call in sick on a day Examples: 1) Time to check out a customer 2) Weight of an outgoing shipment 3) Distance traveled by a truck in a single day 4) Price of a gallon of gas Measure with a specific amount of precision

Discrete Statistical Distribution discrete distribution is one for which the random variable being considered can only take on certain specific values, rather than any value within some range. The possible values are 0, 1, 2, 3, and so on. It is conventional to denote a random variable by a capital X and a particular observed value by a lowercase x. A discrete distribution is then defined by a list of the possible values x 1, x 2, x 3, …, for X, and the probabilities P(x 1 ),P(x 2 ), P(x 3 ), …, for these values. P(x 1 ) + P(x 2 ) + P(x 3 ) + … = 1 Often there is a specific equation for the probabilities defined by a probability function P(x) = Prob(X = x). where P(x) is some function of x. The mean of a random variable is sometimes called the expected value, and is usually denoted either by μ or E(X). E(X) =ΣxiP(xi ) = x 1 P(x 1 ), x 2 P(x 2 ), x 3 P(x 3 )+……

The variance of a discrete distribution is equal to the sample variance that would be obtained for a very large sample from the distribution. The square root of the variance, σ, is the standard deviation of the distribution Example: Two thrown are thrown at a time, the possible outcomes are ( HH, HT, TH, TT) If a random variable X=No of heads p(x=0) = 1/4, p(x=1)=2/4=1/2, p(x=2)=1/4 E(x)=xp(x)= 0.(1/4)+1.(1/2)+2(1/4) = ½+ ½ =1

The Hypergeometric Distribution when a random sample of size n is taken from a population of N units. If the population contains R units with a certain characteristic, then the probability that the sample will contain exactly x units with the characteristic is: P(x) = RC x N−RC n−x /NC n, for x = 0, 1, …, Min(n,R). where aC b denotes the number of combinations of a objects taken b at a time. The mean and variance are   μ = nR/N and   σ 2 = [nR (N − R)(N − n)]/[N 2 (N − 1)].

Hypergeometric Probability Distribution Where N = total number of elements in the population r = number of success in the population N-r = number of failures in the population n = number of trials (sample size) x= number of successes in trial n-x= number of failures in n trials n-x= number of failures in n trials

Hypergeometric Probability Distribution Example Suppose we select 5 cards from an ordinary deck of playing cards. What is the probability of obtaining 2 or fewer hearts? Solution: N = 52; since there are 52 cards in a deck. r = 13; since there are 13 hearts in a deck. n = 5; since we randomly select 5 cards from the deck. x = 0 to 2; since our selection includes 0, 1, or 2 hearts. We plug these values into the hyper geometric formula as follows: p(x=0-2)=p(x=0)+p(x=1)+p(x=2)= = = 90.72%

(a) (a) Hypergeometric Distributions Can U verify these curves?

The Binomial Distribution Suppose that it is possible to carry out a certain type of trial and that, when this is done, the probability of observing a positive result is always p for each trial, irrespective of the outcome of any other trial. Then if n trials are carried out, the probability of observing exactly x positive results is given by the binomial distribution: P(x) = nC x p x (1 − p) n−x, for x = 0, 1, 2, …, n For example when a single dice is thrown, the probability of getting 1 is 1/6. If p=1/6 then 1-p = 5/6. If the dice is thrown n=50 times, what is the probability of x=1,2 and 3.

Case Study Inspecting water samples The number X of turbidity pollution in ppm has approximately the binomial distribution with n=10 and p=0.1. Find the probability of getting 1 or 2 ppm in a sample of 10.

If X has the binomial distribution with n observations and probability p of success on each observation, then the mean and standard deviation of X are If X has the binomial distribution with n observations and probability p of success on each observation, then the mean and standard deviation of X are Mean and Standard Deviation

Case Study Inspecting water samples number X of turbidity pollution in ppm has approximately the binomial distribution with n=10 and p=0.1. Find the mean and standard deviation of this distribution. µ = np = (10)(0.1) = 1   the probability of each sample being bad is one tenth; so we expect (on average) to get 1 bad one out of the 10 sampled

(b) Binomial Distributions

Binomial Probability Distribution A fixed number of observations (trials), n A fixed number of observations (trials), n  e.g., 15 tosses of a coin; 20 patients; 1000 people surveyed A binary random variable A binary random variable  e.g., head or tail in each toss of a coin; defective or not defective light bulb  Generally called “success” and “failure”  Probability of success is p, probability of failure is 1 – p Constant probability for each observation Constant probability for each observation  e.g., Probability of getting a tail is the same each time we toss the coin

Binomial distribution Intuitive explanation of binomial distribution formula: Take the example of 5 coin tosses. What’s the probability that you flip exactly 3 heads in 5 coin tosses? Take the example of 5 coin tosses. What’s the probability that you flip exactly 3 heads in 5 coin tosses?

Example 2 As visitors exit the park on April 20, you ask a representative random sample of 6 visitors if they feel pollen allergy in the park. If the true percentage of visitors who say yes is 55.1%, what is the probability that exactly 2 of them have allergy and 4 of them did not have the allergy? As visitors exit the park on April 20, you ask a representative random sample of 6 visitors if they feel pollen allergy in the park. If the true percentage of visitors who say yes is 55.1%, what is the probability that exactly 2 of them have allergy and 4 of them did not have the allergy?

Binomial distribution: example If I toss a coin 20 times, what’s the probability of getting of getting 2 or less heads? If I toss a coin 20 times, what’s the probability of getting of getting 2 or less heads?

The Poisson Distribution One derivation of the Poisson distribution is as the limiting form of the binomial distribution as n tends to infinity and p tends to zero, with the mean μ = np remaining constant. The probability function is P(x) = μ x exp(−μ) /x!, for x = 0, 1, 2, …, n.  represents average number of occurrences in an interval.  μ represents average number of occurrences in an interval.  x represents the actual number of occurrences  e is approximately The mean and variance are both equal to μ.   In terms of events occurring in time, the type of situation where a Poisson distribution might occur is for counts of the number of occurrences of minor oil leakages in a region per month, or the number of cases per year of a rare disease in the same region. For events occurring in space, a Poisson distribution might occur for the number of rare plants found in randomly selected meter-square quadrats taken from a large area

The Poisson Distribution

Example For example, if new cases of avian flu in Asia are occurring at a rate of about 2 per month, then these are the probabilities that: 0,1, 2, 3, 4, cases will occur in Asia in the next month: For example, if new cases of avian flu in Asia are occurring at a rate of about 2 per month, then these are the probabilities that: 0,1, 2, 3, 4, cases will occur in Asia in the next month:

Poisson Probability table XP(X) 0=.135 1= =.18 4=.09 5 ……

Example: Poisson distribution Suppose that a rare disease has an incidence of 1 in 1000 person- years. Assuming that members of the population are affected independently, find the probability of k cases in a population of 10,000 (followed over 1 year) for k=0,1,2. The expected value (mean) = =np=.001*10,000 = new cases expected in this population per year 

Home Assignment: Hyper geometric Distribution: Hyper geometric Distribution:   7 students were selected from a total of class 45 students of Statistical Environment containing 15 PhD students. What is the probability of obtaining 3 or fewer PhD students? Binomial Distribution: Binomial Distribution:  What is the probability of getting 1 if a fair dice is thrown 100 times? Poisson Distribution: Poisson Distribution:  A colony of 200 people were checked for pollen allergy and it was found that only 3 persons had the diseases. What is the probability that 10 people in population of 1000 people will have the problem?