2DI90 Probability & Statistics. 2DI90 Chapter 4 of MR

Similar documents
Chapter Learning Objectives. Probability Distributions and Probability Density Functions. Continuous Random Variables

STAT509: Continuous Random Variable

Chapter 4: Continuous Random Variable

Chapter 4: Continuous Probability Distributions

Chapter 4 Continuous Random Variables and Probability Distributions

Applied Statistics and Probability for Engineers. Sixth Edition. Chapter 4 Continuous Random Variables and Probability Distributions.

Chapter 4 Continuous Random Variables and Probability Distributions

3 Continuous Random Variables

STAT 509 Section 3.4: Continuous Distributions. Probability distributions are used a bit differently for continuous r.v. s than for discrete r.v. s.

Glossary availability cellular manufacturing closed queueing network coefficient of variation (CV) conditional probability CONWIP

STAT 430/510 Probability Lecture 12: Central Limit Theorem and Exponential Distribution

Probability Methods in Civil Engineering Prof. Rajib Maity Department of Civil Engineering Indian Institute of Technology, Kharagpur

b. ( ) ( ) ( ) ( ) ( ) 5. Independence: Two events (A & B) are independent if one of the conditions listed below is satisfied; ( ) ( ) ( )

Link Models for Circuit Switching

ECE Homework Set 2

Sequential Logic (3.1 and is a long difficult section you really should read!)

Ching-Han Hsu, BMES, National Tsing Hua University c 2015 by Ching-Han Hsu, Ph.D., BMIR Lab. = a + b 2. b a. x a b a = 12

Lecture 10: Normal RV. Lisa Yan July 18, 2018

Recall Discrete Distribution. 5.2 Continuous Random Variable. A probability histogram. Density Function 3/27/2012

BMIR Lecture Series on Probability and Statistics Fall, 2015 Uniform Distribution

Queueing Theory and Simulation. Introduction

Chapter 4: CONTINUOUS RANDOM VARIABLES AND PROBABILITY DISTRIBUTIONS

Continuous Probability Distributions. Uniform Distribution

Random Variables. Definition: A random variable (r.v.) X on the probability space (Ω, F, P) is a mapping

(Ch 3.4.1, 3.4.2, 4.1, 4.2, 4.3)

57:022 Principles of Design II Final Exam Solutions - Spring 1997

Probability Methods in Civil Engineering Prof. Dr. Rajib Maity Department of Civil Engineering Indian Institute of Technology, Kharagpur

The exponential distribution and the Poisson process

Lecture 3 Continuous Random Variable

Lecture Notes 2 Random Variables. Discrete Random Variables: Probability mass function (pmf)

Chapter 2 Queueing Theory and Simulation

EEC 686/785 Modeling & Performance Evaluation of Computer Systems. Lecture 18

Part 3: Parametric Models

ECE 313 Probability with Engineering Applications Fall 2000

Answers to selected exercises

Closed book and notes. 60 minutes. Cover page and four pages of exam. No calculators.

Chapter 3 Common Families of Distributions

Continuous-Valued Probability Review

Queueing Theory. VK Room: M Last updated: October 17, 2013.

Name of the Student:

Known probability distributions

Continuous Probability Spaces

Exercises Stochastic Performance Modelling. Hamilton Institute, Summer 2010

Random variable X is a mapping that maps each outcome s in the sample space to a unique real number x, x. X s. Real Line

HW7 Solutions. f(x) = 0 otherwise. 0 otherwise. The density function looks like this: = 20 if x [10, 90) if x [90, 100]

Continuous-time Markov Chains

Midterm Exam 1 Solution

Announcements. Problem Set 6 due next Monday, February 25, at 12:50PM. Midterm graded, will be returned at end of lecture.

(Ch 3.4.1, 3.4.2, 4.1, 4.2, 4.3)

Common ontinuous random variables

Communication Engineering Prof. Surendra Prasad Department of Electrical Engineering Indian Institute of Technology, Delhi

Solutions to COMP9334 Week 8 Sample Problems

Designing Information Devices and Systems I Summer 2017 D. Aranki, F. Maksimovic, V. Swamy Homework 5

SECTION 9.2: ARITHMETIC SEQUENCES and PARTIAL SUMS

CS 361: Probability & Statistics

Uniform random numbers generators

Chapter 6 Continuous Probability Distributions

CS 361: Probability & Statistics

Chapter 5 continued. Chapter 5 sections

Probability Methods in Civil Engineering Prof. Dr. Rajib Maity Department of Civil Engineering Indian Institute of Technology Kharagpur

Name of the Student: Problems on Discrete & Continuous R.Vs

BINOMIAL DISTRIBUTION

Guidelines for Solving Probability Problems

Calculus Relationships in AP Physics C: Electricity and Magnetism

Chapter 2 Continuous Distributions

Recap. Probability, stochastic processes, Markov chains. ELEC-C7210 Modeling and analysis of communication networks

STAT509: Discrete Random Variable

1 Modelling and Simulation

CS 1538: Introduction to Simulation Homework 1

4Continuous Random. Variables and Probability Distributions CHAPTER OUTLINE LEARNING OBJECTIVES

Name of the Student: Problems on Discrete & Continuous R.Vs

CPSC 531: System Modeling and Simulation. Carey Williamson Department of Computer Science University of Calgary Fall 2017

SOLUTIONS IEOR 3106: Second Midterm Exam, Chapters 5-6, November 8, 2012

Random variables. DS GA 1002 Probability and Statistics for Data Science.

IE 230 Probability & Statistics in Engineering I. Closed book and notes. 120 minutes.

Exponential Distribution and Poisson Process

MATH : EXAM 2 INFO/LOGISTICS/ADVICE

Definition: A random variable X is a real valued function that maps a sample space S into the space of real numbers R. X : S R

Solutions. Some of the problems that might be encountered in collecting data on check-in times are:

Notes 11: OLS Theorems ECO 231W - Undergraduate Econometrics

DS-GA 1002 Lecture notes 2 Fall Random variables

EE126: Probability and Random Processes

Statistical Methods in Particle Physics

Chapter 4 Continuous Random Variables and Probability Distributions

EE126: Probability and Random Processes

One billion+ terminals in voice network alone

CDA6530: Performance Models of Computers and Networks. Chapter 2: Review of Practical Random Variables

Continuous Random Variables

Sequence convergence, the weak T-axioms, and first countability

Why study probability? Set theory. ECE 6010 Lecture 1 Introduction; Review of Random Variables

Part I Stochastic variables and Markov chains

CHAPTER 3 ANALYSIS OF RELIABILITY AND PROBABILITY MEASURES

Q: How can quantum computers break ecryption?

Things to remember when learning probability distributions:

Probability and Statistics for Engineers

IE 303 Discrete-Event Simulation

3 Modeling Process Quality

Probability and Statistics Concepts

Chapter 2 Random Variables

1. If X has density. cx 3 e x ), 0 x < 0, otherwise. Find the value of c that makes f a probability density. f(x) =

Transcription:

2DI90 Probability & Statistics 2DI90 Chapter 4 of MR

Recap - Random Variables ( 2.8 MR)! Example: X is the random variable corresponding to the temperature of the room at time t. x is the measured temperature of the room at time t. 2

Continuous Random Variables - Motivation! Discrete random variables are not the end of the story Let X the be a random variable representing the temperature in a museum room (in centigrade degrees) It seems the probability of X taking any specific value is always be equal to zero, but the probability of X being in an interval is often strictly positive.. 3

Continuous Random Variables - Motivation! It seems the probability that X is in some small interval should be small (but not zero) The smaller the interval, the smaller the probability, so perhaps we can write it as So if we want to compute the probability that X is in an arbitrary interval we can perhaps break it into small pieces 4

Probabilities as Areas! So computing these probabilities seems to be essentially the same as computing areas under functions!!! 5

Probability Density Functions ( 4.2 MR)!! For continuous random variables it doesn t make sense to talk about probability mass functions, as the probability of such variables to take a specific value is always zero. However, we can define a density, which plays a similar role Definition: Probability Density Function (p.d.f.) A valid p.d.f. must always satisfy (i) and (ii)! 6

Probability Density Functions! Probability Density Function (continuous random variables) Probability Mass Function (discrete random variables) There is a strong parallel between discrete and continuous random variables 7

Probability Density Functions! Important Note: It is often difficult to get your head around the fact that despite the fact the probability that a continuous random variable takes any specific value is always zero, but that the probability that the random variable takes a value within an interval is generally non-zero 8

Example! Let the random variable X denote the time it takes (in days) for a hard drive to fail. We have reason to believe that this random variable has the following density 9

Cumulative Distribution Function ( 4.3 MR)!!We already saw that we can consider also different descriptions of a random variable, namely we defined in the first lecture the Definition: Cumulative Distribution Function (c.d.f.) This seemingly simple object is extremely powerful, as all the information contained in the probability density function is also contained in the c.d.f. This is EXACTLY the same definition we had for discrete random variables!!! 10

Cumulative Distribution Function! All the information in the density is also contained in the cumulative distribution function (also referred to simply as the distribution function) 11

Cumulative Distribution Function! Technical remark: note that the cumulative distribution function might not be differentiable at all points. However, this is not a big problem, provided the derivative exists for all but a finite number of points (all those densities are equivalent). 12

C.D.F. Example! 13

C.D.F. Example! Note: the area under the distribution function is NOT a probability!!! 14

Mean and Variance ( 4.4 MR)!! As we did for discrete random variables, we can consider also certain summaries of the distributions Definition: Mean and Variance (continuous r.v.) 15

Mean and Variance! The mean is a weighted average of the possible values of X, where the weights are their corresponding probabilities. Therefore the mean describes the center of the distribution. In other words X takes values around its mean The variance measures the dispersion of X around the mean. If this value is large means X varies a lot. Definition: Standard deviation 16

Functions of Random Variables! To clarify things lets consider a real-world model 17

Example! Suppose you want to model the clock frequency (in GHz) of a certain mobile device processor. This is a random quantity, and in some cases it can be well modeled by a continuous random variable with density Let s study this random variable in more detail 18

Example! Let s first check this is a valid probability density function: 19

Example! 20

Example! Suppose you replace the old processor with a better one, with the same average speed, but much more steady 21

Example! 22

Properties of the Mean and Variance! WARNING!!! 23

Specific Continuous Distributions! In what follows we are going to study and learn about some specific continuous distributions, namely: Continuous Uniform Distribution Normal Distribution Exponential Distribution Erlang Distribution Weibull Distribution All these are very important in a number of scenarios, fitting many practical situations one might encounter. Remark: There are many other common and important continuous distributions that arise in the context of statistics. We will see some of these later on 24

Continuous Uniform Distribution ( 4.5 MR)! Definition: Continuous Uniform Distribution This is exactly the type of distribution we saw on our last example. It is extremely simple, which makes it attractive in many situations. 25

Countinuous Uniform Distribution! 26

Normal Distribution ( 4.6 MR)! Without any doubt, this is the most important continuous distribution you might encounter. Before defining it, let s see why it is so important with a simple but informative example 0.10 0.14 0.18 0.22 1 2 3 4 5 6 27

Normal Distribution - Motivation! 0.04 0.08 0.12 0.16 2 4 6 8 10 12 28

Normal Distribution - Motivation! 0.00 0.04 0.08 0.12 5 10 15 0.00 0.04 0.08 5 10 15 20 These probability mass functions look more and more like a bell-shaped curve 29

Normal Distribution ( 4.6 MR)! Remarkably the sum of many independent random variables almost always looks similar to a bell curve!!! No matter what these random variables look like themselves This bell curve is known as the normal distribution. Definition: Normal Density Function 30

Why is the Normal Distribution Important?! The result relating the sum of many independent random variables and the normal distribution is called the Central Limit Theorem. It is a very important result that we will state later on. For now it is important to note that normal distributions can be used to model many different things: Total time it takes to download a file (the time is the sum of the time is takes to receive each packet) Average grade of a test (this is the sum of all the grades, divided by the number of tests) Noise level in a phone line (the noise is the superposition of many interferences). 31

Normal or Gaussian Distribution?! Historically this distribution is often referred to as the Gaussian Distribution. However, the central limit theorem was first stated (without proof) by Abraham De Moivre (in 1733), but the result got somehow lost. Gauss independently discovered the same result more than 100 years later!!! Carl Friedrich Gauss (1777 1855) Abraham de Moivre (1667 1754) 32

Normal or Gaussian Distribution?! 33

Example! 34

Basic Properties! 35

Standard Normal Distribution! Unfortunately it is not possible to calculate in closed form the areas under the normal density :(. One must resort to either numerical evaluation of the integral, or the use of tables however, we need only one table for a very specific normal distribution. Definition: Standard Normal Density 36

Standardizing a Normal Random Variable! So, if we have access to the cumulative distribution function of the standard normal random variable, we can do computations 37 with any other normal random variable!

Standardizing a Normal Random Variable! We essentially just proved the following: We can now use this to compute probabilities associated with X using the standard normal table at the end of the book, or in the statistical compendium 38

A Practical Example! In a communication system each bit to be transmitted is converted into an electrical signal, that is send through a copper wire. This transmitted signal is then converted into a potential (in volt). Let X be a random variable denoting this value: 39

A Practical Example! 40

A Practical Example! 41

A Practical Example! Modification: Actually, the system only decodes a bit if the signal has a magnitude greater than 0.08, regardless of the sign. 42

Exponential Distribution ( 4.8 MR)! When we discussed discrete random variables we encountered the geometric random variables, which had an interesting memoryless property. In the continuous setting we also have a similar random variable. Definition: Exponential Random Variable 43

Properties! The facts above are easily checked, and left as an exercise. The lack of memory property is rather interesting. If X denotes the time until a certain event happens: Given that we already waited t 1 for the event implies that the probability that we must wait t 2 more time does not depend on the value of t 1. 44

Applicability of the Exponential Dist.! Because of it s simplicity and important properties, the exponential distribution is used to model many important situations: The time until a device fails (if the device doesn t wear out, as it is the case in some electronic components) The time in between consecutive calls to a call center The time between the arrival of packets at a router In fact there is an interesting relation between the exponential distribution and a very important stochastic model, called the Poisson process!!! 45

Example! The duration of IC555 integrated circuits under normal operation conditions is well modeled by an exponential distribution with mean 2000 days. What is the probability such an IC lasts more than 10 years? 46

Example! The duration of IC555 integrated circuits under normal operation conditions is well modeled by an exponential distribution with mean 2000 days. What is the probability such an IC lasts more than 10 years? You have a specific IC555 that has already lasted 3 years. What is the probability that it will last another 10 years? 47

Relation to the Poisson Process! Recall the Poisson process with an example. Suppose you want to model the number of customers entering a store over the period of one day. Assumptions: The customers behave independently from one another The expected number of customers per unit time is a constant λ. It is interesting to ask for how long do we have to wait for the first customer 48

Relation to the Poisson Process! Assumptions: The customers behave independently from one another The expected number of customers per unit time is a constant λ. So X is an exponential random variable with parameter λ!!! 49

Relation to the Poisson Process! Furthermore, the time in between each customer corresponds to independent exponential random variables with parameter λ. To make things clear let s consider an example: The number of clients accessing the course webpage follows closely a Poisson process. The number of connections per hour is on average 6. What is the probability that no one accesses the webpage between 12.00 and 12.20? 50

Example first solution! The number of clients accessing the course webpage follows closely a Poisson process. The number of connections per hour is on average 6. What is the probability that no one accesses the webpage between 12.00 and 12.20? Two different ways to tackle this problem: 51

Example second solution! The number of clients accessing the course webpage follows closely a Poisson process. The number of connections per hour is on average 6. What is the probability that no one accesses the webpage between 12.00 and 12.20? memoryless property 52

Erlang and Gamma Distribution( 4.9 MR)!!The exponential distribution corresponds to the time it takes to observe the first event in a Poisson process. We can generalize this by asking what is the time it takes to observe r events in a Poisson process. 53

Erlang Distribution!!We can get the density of X by computing the derivative of its cumulative distribution function 54

Erlang Distribution!!We have just derived the Definition: Erlang Distribution Actually X can be viewed simply as the sum of r independent exponential random variables!!! 55

Erlang and Gamma Distribution*!! The Erlang distribution can be generalized for the case r is not an integer (although our interpretation of this random variable is no longer based on the Poisson process). For this we need to generalize the factorial function We can use this to generalize the Erlang distribution in a very natural way * - Not covered in the lectures 56

Gamma Distribution*!!Definition: Gamma Distribution This is a rich class of distributions, that includes also some commonly used distributions Warning: the parameterization of the Gamma distribution is not standard, and might change depending on the book/software your check! Always check the definition or documentation!!! 57 * - Not covered in the lectures

Example! For record keeping purposes, each electronic transaction made in a ATM machine much be stored recorded in a paper roll. The transactions are well modeled by a Poisson process, with an average of 25 transactions per hour. Suppose you install a new roll. Let X denote the time (in minutes) until three transactions are registered. What is the distribution of X? You installed a new roll at 12:00. What is the probability that the third transaction happens before 12:10? 58

Example! For record keeping purposes, each electronic transaction made in a ATM machine much be stored recorded in a paper roll. The transactions are well modeled by a Poisson process, with an average of 25 transactions per hour. The roll can hold 640 transactions. What is the probability the machine runs out of paper in 24 hours? 59

Summary of Poisson Processes! Example: Customers entering a store: The customers behave independently from one another The expected number of customers per unit time is a constant λ. Number of customers in a certain time interval: 60

Summary of Poisson Processes! Example: Customers entering a store: The customers behave independently from one another The expected number of customers per unit time is a constant λ. Time in between consecutive customers: 61

Summary of Poisson Processes! Example: Customers entering a store: The customers behave independently from one another The expected number of customers per unit time is a constant λ. Time until r customers arrive: There are generalizations of this stochastic process than make it even more applicable to real world scenarios most communication protocols are designed with such processes in 62 mind!!!

Weibull Distribution ( 4.10 MR)!! If we want to model the time until failure of a part that is subject to wear over time the exponential distribution is no longer a suitable candidate, due to the lack-of-memory property. In that case the Weibull distribution is much more reasonable: Definition: Weibull Distribution 63

Properties! To make things clear, let s look at a compelling example for the 64 Dutch reality

Example! The lifetime of bottom bracket (dichte trapas) from a certain bicycle manufacturer is well modeled by a Weibull distribution with parameters β=2 and δ=5000. What s the mean time until failure? What s the probability that bottom bracket lasts at least 6000 hours? What s the probability it lasts 3000 hours What s the probability that is lasts 3000 hours more given that it already lasted 3000 hours?! 65

Example! What s the probability that bottom bracket lasts at least 6000 hours? What s the probability it lasts more than 3000 hours What s the probability that is lasts 6000 hours given that it already lasted 3000 hours?! Therefore bottom bracket remembers that it already lasted 3000 hours, so the probability of lasting 3000 hours more is not as large!!! (what if β=1???) 66