Review of Probability. CS1538: Introduction to Simulations

Similar documents
Random Variables. Saravanan Vijayakumaran Department of Electrical Engineering Indian Institute of Technology Bombay

Recitation 2: Probability

Lecture 2: Repetition of probability theory and statistics

A Probability Primer. A random walk down a probabilistic path leading to some stochastic thoughts on chance events and uncertain outcomes.

Random Variables. Cumulative Distribution Function (CDF) Amappingthattransformstheeventstotherealline.

2. Suppose (X, Y ) is a pair of random variables uniformly distributed over the triangle with vertices (0, 0), (2, 0), (2, 1).

Algorithms for Uncertainty Quantification

Basic Probability. Introduction

Joint Distribution of Two or More Random Variables

Appendix A : Introduction to Probability and stochastic processes

Discrete Random Variables

IAM 530 ELEMENTS OF PROBABILITY AND STATISTICS LECTURE 3-RANDOM VARIABLES

Random Variables and Their Distributions

Random Variables. Statistics 110. Summer Copyright c 2006 by Mark E. Irwin

CME 106: Review Probability theory

STAT 430/510 Probability Lecture 7: Random Variable and Expectation

Math 151. Rumbos Fall Solutions to Review Problems for Exam 2. Pr(X = 1) = ) = Pr(X = 2) = Pr(X = 3) = p X. (k) =

Probability and Statisitcs

Relationship between probability set function and random variable - 2 -

Week 12-13: Discrete Probability

Random Variables. Random variables. A numerically valued map X of an outcome ω from a sample space Ω to the real line R

Lecture 10: Probability distributions TUESDAY, FEBRUARY 19, 2019

INF FALL NATURAL LANGUAGE PROCESSING. Jan Tore Lønning

More than one variable

Statistics and Econometrics I

Summary of basic probability theory Math 218, Mathematical Statistics D Joyce, Spring 2016

The random variable 1

Random Variables Example:

Probability. Paul Schrimpf. January 23, UBC Economics 326. Probability. Paul Schrimpf. Definitions. Properties. Random variables.

Overview. CSE 21 Day 5. Image/Coimage. Monotonic Lists. Functions Probabilistic analysis

Probability Review. Chao Lan

Probability. Paul Schrimpf. January 23, Definitions 2. 2 Properties 3

Making Hard Decision. Probability Basics. ENCE 627 Decision Analysis for Engineering

Lecture 1: Basics of Probability

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

Homework 4 Solution, due July 23

DISCRETE RANDOM VARIABLES: PMF s & CDF s [DEVORE 3.2]

STAT2201. Analysis of Engineering & Scientific Data. Unit 3

1 Basic continuous random variable problems

ELEG 3143 Probability & Stochastic Process Ch. 2 Discrete Random Variables

MAS108 Probability I

Edexcel past paper questions

Solutionbank S1 Edexcel AS and A Level Modular Mathematics

M378K In-Class Assignment #1

ECE 450 Homework #3. 1. Given the joint density function f XY (x,y) = 0.5 1<x<2, 2<y< <x<4, 2<y<3 0 else

Dept. of Linguistics, Indiana University Fall 2015

Bernoulli Trials, Binomial and Cumulative Distributions

Joint Probability Distributions and Random Samples (Devore Chapter Five)

Probability Theory Review

1 Random variables and distributions

Deep Learning for Computer Vision

1 Basic continuous random variable problems

Exam 1 - Math Solutions

1 Presessional Probability

3 Multiple Discrete Random Variables

ECE 302, Final 3:20-5:20pm Mon. May 1, WTHR 160 or WTHR 172.

Basics on Probability. Jingrui He 09/11/2007

Random variables, Expectation, Mean and Variance. Slides are adapted from STAT414 course at PennState

Random variables (discrete)

Review: mostly probability and some statistics

ECE353: Probability and Random Processes. Lecture 7 -Continuous Random Variable

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

Expectation, inequalities and laws of large numbers

CMPSCI 240: Reasoning Under Uncertainty

To find the median, find the 40 th quartile and the 70 th quartile (which are easily found at y=1 and y=2, respectively). Then we interpolate:

continuous random variables

Quick Tour of Basic Probability Theory and Linear Algebra

Review of Probability Theory

Multivariate probability distributions and linear regression

More on Distribution Function

2 (Statistics) Random variables

RVs and their probability distributions

IEOR 3106: Introduction to Operations Research: Stochastic Models. Professor Whitt. SOLUTIONS to Homework Assignment 1

Chapter 3 Single Random Variables and Probability Distributions (Part 1)

V7 Foundations of Probability Theory

Notes for Math 324, Part 20

MATH 3510: PROBABILITY AND STATS July 1, 2011 FINAL EXAM

Functions of two random variables. Conditional pairs

EECS 126 Probability and Random Processes University of California, Berkeley: Spring 2015 Abhay Parekh February 17, 2015.

Discrete Probability Refresher

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

STAT 516: Basic Probability and its Applications

Bivariate distributions

ECON Fundamentals of Probability

Stochastic processes Lecture 1: Multiple Random Variables Ch. 5

Notes on Mathematics Groups

2. Variance and Covariance: We will now derive some classic properties of variance and covariance. Assume real-valued random variables X and Y.

02 Background Minimum background on probability. Random process

Topic 3: The Expectation of a Random Variable

f X, Y (x, y)dx (x), where f(x,y) is the joint pdf of X and Y. (x) dx

Data Analysis and Monte Carlo Methods

Random Variables. Lecture 6: E(X ), Var(X ), & Cov(X, Y ) Random Variables - Vocabulary. Random Variables, cont.

Notes 12 Autumn 2005

STT 441 Final Exam Fall 2013

Chapter 3 Discrete Random Variables

Single Maths B: Introduction to Probability

Midterm Exam 1 Solution

p. 6-1 Continuous Random Variables p. 6-2

Discrete Random Variables. Discrete Random Variables

A brief review of basics of probabilities

Transcription:

Review of Probability CS1538: Introduction to Simulations

Probability and Statistics in Simulation Why do we need probability and statistics in simulation? Needed to validate the simulation model Needed to determine / choose the input probability distributions Needed to generate random samples / values from these distributions Needed to analyze the output data / results Needed to design correct / efficient simulation experiments 2

Experiments and Sample Space Experiment A process which could result in several different outcomes Sample Space The set of possible outcomes of a given experiment Example: Experiment: Rolling a single die Sample Space: {1, 2, 3, 4, 5, 6} Another example? 3

Random Variables Random Variable A function that assigns a real number to each point in a sample space Example: Let X be the value that results when a single die is rolled Possible values of X are 1, 2, 3, 4, 5, 6 Discrete Random Variable A random variable for which the number of possible values is finite or countably infinite Example above is discrete 6 possible values Countably infinite means the values can be mapped to the set of integers Ex: Flip a coin an arbitrary number of times. Let X be the number of times the coin comes up heads 4

Random Variables and Probability Distribution Probability Distribution For each possible value, x i, for discrete random variable X, there is a probability of occurrence, P(X = x i ) = p(x i ) p(x i ) is the probability mass function (pmf) of X, and obeys the following rules: 1) p(x i ) >= 0 for all I 2) p ( x i ) = 1 all i 5

Random Variables and Probability Distribution Probability Distribution The set of pairs (x i, p(x i )) is the probability distribution of X Examples: For the die example (assuming a fair die): Probability Distribution: {(1, 1/6), (2, 1/6), (3, 1/6), (4, 1/6), (5, 1/6), (6, 1/6)} 6

Cumulative Distribution Cumulative Distribution Function The pmf gives probabilities for individual values x i of random variable X The cumulative distribution function (cdf), F(x), gives the probability that the value of random variable X is <= x, or F(x) = P(X <= x) For a discrete random variable, this can be calculated simply by addition: F(x) = p ( xi ) x i x 7

Cumulative Distribution Properties of cdf, F: 1) F is non-decreasing F( x) 1 2) lim x 0 3) lim F( x) x and P(a < X b) = F(b) F(a) for all a < b Ex: Probability that a roll of two dice will result in a value > 7? Discuss Ex: Probability that 10 flips of a fair coin will yield between 6 and 8 (inclusive) heads? Discuss 8

Probability Distributions (Joint & Conditional) Joint Probability that A=a and B=b Conditional Probability that A=a given B=b Since we know B=b, what s the probability that A=a? ) ( ), ( ) ( ) ( ) ( b B P b B a A P b B P b B a A P b B a A P ), ( b B a A P

Probability Distributions (Joint & Conditional) Pastries example (from survey) Topping Filling Number Powder Apple 1 Powder Cream 6 Sprinkles Apple 3 Sprinkles Cream 2 What s the probability that I get powder and cream if I pick at random?

Probability Distributions (Joint & Conditional) Pastries example (from survey) Topping Filling Number Powder Apple 1 Powder Cream 6 Sprinkles Apple 3 Sprinkles Cream 2 What s the probability that I get cream if I can feel it has powder but I m otherwise picking at random?

Independent & Dependent Variables Independent Variables Changing one has no effect on the other A and B are independent iff: P A B = P A P(B) Dependent Variables Changing one has an effect on the other 14

Example Revisited Probability that a roll of two dice will result in a value > 7? 15

Some Examples For the experiments below, provide the sample space and random variable(s) Experiment: The arrival of the next customer in our single-server restaurant example Experiment: The temperature in Pittsburgh on 12/1/2011 18

In Class Exercise In a game of darts, one throws two darts at the board as configured below: 1 2 4 d 2d 3d The score from the game is the product of the scores gotten from the two throws. Assume that when a person throws a dart, it always hits the board. Assume that the chance of a dart landing at any particular location is uniformly distributed with respect to the area of the dart board. Set up the problem to figure out the chance that the person would score a 4 on his game. 20

Expected Value Expected Value mean or average value If X is a discrete random variable that can take on possible values x1, x2,, then the expected value of X is defined as: E[X] = S p(x i ) * x i If X is a continuous random variable with a probability density function F, then the expectation is: inf E[X] = inf f x x dx Notation wise, we often use the Greek letter m to represent the mean. That is, m = E[X] 21

Expected Value E[c] = c c is constant E[c X] = c E[X] X is a random variable E[X 1 + X 2 + X n ] = E[X 1 ] + E[X 2 ] + + E[X n ] X 1, X 2,, X n, are all random variables 22

Variance Variance how different is each r.v. outcome from the mean? Expectation of how much difference there is between each possible outcome and the mean Var(X) = E[ (X E[X]) 2 ] = E[X 2 ] (E[X]) 2 23

Variance and Covariance Covariance of two random variables X, Y Cov(X, Y) = E[(X - m x )(Y - m y )] = E[XY] E[X]E[Y] Var(X + Y) = E[(X+Y m x m y ) 2 ] = Var(X) + Var(Y) + 2Cov(X, Y) When X and Y are independent, Cov(X, Y) = 0 The correlation between X, Y is defined as Corr X, Y = Cov(X,Y) Var X Var(Y) 25