Will Monroe July 21, with materials by Mehran Sahami and Chris Piech. Joint Distributions

Size: px
Start display at page:

Download "Will Monroe July 21, with materials by Mehran Sahami and Chris Piech. Joint Distributions"

Transcription

1 Will Monroe July 1, 017 with materials by Mehran Sahami and Chris Piech Joint Distributions

2 Review: Normal random variable An normal (= Gaussian) random variable is a good approximation to many other distributions. It often results from sums or averages of independent random variables. X N (μ, σ ) 1 x μ ( 1 σ ) f X ( x)= e σ π

3 Review: Normal fact sheet mean X N (μ, σ ) variance (σ = standard deviation) PDF: CDF: 1 x μ σ ( ) 1 f X ( x)= e σ π x x μ F X ( x)=φ σ = dx f X ( x) ( ) (no closed form) expectation: variance: E[ X ]=μ Var( X )=σ

4 Review: Normal approximation to the binomial large n, medium p P( X =k ) Bin (n, p) N (μ, σ ) k

5 Linear transform of a normal Adding a constant to a normal? Add the constant to the mean. Multiplying a normal by a constant? Multiply the mean by the constant and the variance by the square of the constant. X N (μ, σ ) a X +b N (a μ+b, a σ )

6 Most real-world problems involve multiple random variables

7 Joint distributions A joint distribution combines multiple random variables. Its PDF or PMF gives the probability or relative likelihood of both random variables taking on specific values. p X,Y (a, b)=p ( X =a,y =b)

8 A table of probabilities Two random variables: X, Y Each can take on values {0, 1, } Y X P(X = 0, Y = 0) and all add up to 1 P(X = 1, Y = )

9 A just-for-fun demo

10 Joint probability mass function A joint probability mass function gives the probability of more than one discrete random variable each taking on a specific value (an AND of the + values). p X,Y (a, b)=p ( X =a,y =b) Y X

11 Joint probability density function A joint probability density function gives the relative likelihood of more than one continuous random variable each taking on a specific value. P (a1 < X a, b1 <Y b )= a b dx dy f X,Y ( x, y ) a1 b1

12 Joint probability density function f X, Y (x, y ) y x P (a1 < X a, b1 <Y b )= a b dx dy f X,Y ( x, y ) a1 b1 plot by Academo

13 Multiple integrals (without tears) X and Y are two continuous random variables: 0 X 1, 0 Y f X, Y (x, y)= 1 ( 1 { x y if 0 x 1, 0 y 0 otherwise evaluate the inner integral (treat outer variable as constant) ) dy dx ( x y)= dy dx ( x y ) y=0 x=0 y=0 x=0 1 1 = dy y x x=0 y=0 1 1 = dy y = y 4 y=0 [ ] [ ] now evaluate the outer integral = =1 4 y=0

14 Marginalization Marginal probabilities give the distribution of a subset of the variables (often, just one) of a joint distribution. Sum/integrate over the variables you don t care about. p X (a)= p X,Y (a, y) y f X (a)= dy f X,Y (a, y)

15 A just-for-fun demo

16 Defects on a hard drive A single point defect is uniformly distributed over a disk or radius R. 1 if x + y R f X, Y (x, y)= π R 0 otherwise { f X ( x)= dy f X,Y (x, y ) 1 = dy π R y : x + y R + R x 1 R x = dy = π R y= R x πr

17 Break time!

18 Joint cumulative distribution function F X, Y (x, y)=p( X x, Y y ) to 1 as x +, y +, y to 0 as x -, y -, x plot by Academo

19 Probabilities from joint CDFs P (a1 < X a, b1 <Y b )=F X,Y (a, b ) F X,Y (a1, b ) F X,Y (a, b1 ) + F X,Y (a1, b1 ) b b1 a1 a

20 Probabilities from joint CDFs P (a1 < X a, b1 <Y b )=F X,Y (a, b ) F X,Y (a1, b ) F X,Y (a, b1 ) + F X,Y (a1, b1 ) b b1 a1 a

21 Probabilities from joint CDFs P (a1 < X a, b1 <Y b )=F X,Y (a, b ) F X,Y (a1, b ) F X,Y (a, b1 ) + F X,Y (a1, b1 ) b b1 a1 a

22 Probabilities from joint CDFs P (a1 < X a, b1 <Y b )=F X,Y (a, b ) F X,Y (a1, b ) F X,Y (a, b1 ) + F X,Y (a1, b1 ) b b1 a1 a

23 Probabilities from joint CDFs P (a1 < X a, b1 <Y b )=F X,Y (a, b ) F X,Y (a1, b ) F X,Y (a, b1 ) + F X,Y (a1, b1 ) b b1 a1 a

24 Probabilities from joint CDFs P (a1 < X a, b1 <Y b )=F X,Y (a, b ) F X,Y (a1, b ) F X,Y (a, b1 ) + F X,Y (a1, b1 ) b b1 a1 a

25 Probabilities from joint CDFs P (a1 < X a, b1 <Y b )=F X,Y (a, b ) F X,Y (a1, b ) F X,Y (a, b1 ) + F X,Y (a1, b1 ) b b1 a1 a

26 Probabilities from joint CDFs P (a1 < X a, b1 <Y b )=F X,Y (a, b ) F X,Y (a1, b ) F X,Y (a, b1 ) + F X,Y (a1, b1 ) b b1 a1 a

27 Review: Linearity of expectation Adding random variables or constants? Add the expectations. Multiplying by a constant? Multiply the expectation by the constant. E [ax +by +c ]=ae [ X ]+be [Y ]+c X X X + 4

28 Expectation of a function of two variables Exactly like a function of one variable, but with the joint PMF! E [ g( X, Y )]= g(x, y) p X,Y (x, y ) x y E [ g( X, Y )]= dx dy g(x, y ) f X,Y ( x, y )

29 Proof of expectation of sum E [ X +Y ]=E [ g( X, Y )] = g(x, y) p X,Y ( x, y ) x y = [ x+ y ] p X,Y ( x, y ) x y = x p X,Y (x, y)+ y p X,Y ( x, y ) x y x y = x p X,Y (x, y)+ y p X,Y ( x, y ) x y y = x p X ( x)+ y py ( y) x =E[ X ]+ E [Y ] y x

30 Another way to compute expectation FY ( y ) You can integrate y times the PMF, or you can integrate 1 minus the CDF! E [Y ]= dy P(Y > y) 0 = dy (1 F Y ( y)) 0 y

31 Non-negative RV expectation lemma: Rearranging terms E [ X ]=0 P ( X=0)+1 P( X =1)+ P( X =)+3 P( X =3)+ =0 P( X =0)+1 P( X =1)+ P( X =)+3 P ( X =3)+ +1 P( X1 =1)+ P( X =)+3 P ( X =3)+ +1 P( X =1)+ P( X =)+3 P ( X =3) =0 P( X =0)+1 P( X =1)+ P( X =)+3 P ( X =3)+ +1 P( X =1)+ P( X =)+3 P ( X =3)+ +1 P( X =1)+ P( X =)+3 P ( X =3)+ =0 P( X =0)+1 P( X 1) +1 P( X =1)+ P( X ) +1 P( X =1)+ P( X =)+3 P ( X 3)+ = P( X i) [Addendum] i=1

32 Non-negative RV expectation lemma: Graphically p_x(x) E [ X ]= P(X 4) P(X 3) P(X ) P(X 1) 0 0 P(X=0) 1 P(X=1) P(X=) 3 P(X=3) x [Addendum] 4 P(X=4)

33 Defects on a hard drive A single point defect is uniformly distributed over a disk or radius R. 1 if x + y R f X, Y (x, y)= π R 0 otherwise { D= X +Y R R a E [ D]= da P (D>a)= da 1 R 0 0 ( 3 a = a 3R [ ] R ) = R 3 a=0

34 Multinomial random variable An multinomial random variable records the number of times each outcome occurs, when an experiment with multiple outcomes (e.g. die roll) is run multiple times. X 1,, X m MN (n, p1, p,, p m) vector! P ( X 1 =c 1, X =c,, X m=c m) c c c n = p1 p p m c 1, c,, c m ( ) 1 m

35 Roll all of the dice! A 6-sided die is rolled 7 times. What is the probability we get: 1 one 1 two 0 threes fours 0 fives 3 sixes? X 1,, X 6 MN (7,,,,,, ) P ( X 1 =1, X =1, X 3 =0, X 4 =, X 5 =0, X 6 =3) = =40 6 1,1,0,,0, ( )( ) ( ) ( ) ( ) ( ) ( ) 7 ()

Probability Model for 2 RV s

Probability Model for 2 RV s Probability Model for 2 RV s The joint probability mass function of X and Y is P X,Y (x, y) = P [X = x, Y= y] Joint PMF is a rule that for any x and y, gives the probability that X = x and Y= y. 3 Example:

More information

Today s outline: pp

Today s outline: pp Chapter 3 sections We will SKIP a number of sections Random variables and discrete distributions Continuous distributions The cumulative distribution function Bivariate distributions Marginal distributions

More information

Lecture 8: Jointly distributed random variables

Lecture 8: Jointly distributed random variables Lecture : Jointly distributed random variables Random Vectors and Joint Probability Distributions Definition: Random Vector. An n-dimensional random vector, denoted as Z = (Z, Z,, Z n ), is a function

More information

Topic 5 - Joint distributions and the CLT

Topic 5 - Joint distributions and the CLT Topic 5 - Joint distributions and the CLT Joint distributions Calculation of probabilities, mean and variance Expectations of functions based on joint distributions Central Limit Theorem Sampling distributions

More information

This is a good time to refresh your memory on double-integration. We will be using this skill in the upcoming lectures.

This is a good time to refresh your memory on double-integration. We will be using this skill in the upcoming lectures. Chapter 5: JOINT PROBABILITY DISTRIBUTIONS Part 1: Sections 5-1.1 to 5-1.4 For both discrete and continuous random variables we will discuss the following... Joint Distributions (for two or more r.v. s)

More information

Joint probability distributions

Joint probability distributions Joint probability distributions Let X and Y be two discrete rv s defined on the sample space S. The joint probability mass function p(x, y) is p(x, y) = P(X = x, Y = y). Note p(x, y) and x y p(x, y) =

More information

Recursive Estimation

Recursive Estimation Recursive Estimation Raffaello D Andrea Spring 28 Problem Set : Probability Review Last updated: March 6, 28 Notes: Notation: Unless otherwise noted, x, y, and z denote random variables, p x denotes the

More information

ECE353: Probability and Random Processes. Lecture 11- Two Random Variables (II)

ECE353: Probability and Random Processes. Lecture 11- Two Random Variables (II) ECE353: Probability and Random Processes Lecture 11- Two Random Variables (II) Xiao Fu School of Electrical Engineering and Computer Science Oregon State University E-mail: xiao.fu@oregonstate.edu Joint

More information

CS 112: Computer System Modeling Fundamentals. Prof. Jenn Wortman Vaughan April 21, 2011 Lecture 8

CS 112: Computer System Modeling Fundamentals. Prof. Jenn Wortman Vaughan April 21, 2011 Lecture 8 CS 112: Computer System Modeling Fundamentals Prof. Jenn Wortman Vaughan April 21, 2011 Lecture 8 Quiz #2 Reminders & Announcements Homework 2 is due in class on Tuesday be sure to check the posted homework

More information

Multivariate probability distributions

Multivariate probability distributions Multivariate probability distributions September, 07 STAT 0 Class Slide Outline of Topics Background Discrete bivariate distribution 3 Continuous bivariate distribution STAT 0 Class Slide Multivariate

More information

Lecture 09: Continuous RV. Lisa Yan July 16, 2018

Lecture 09: Continuous RV. Lisa Yan July 16, 2018 Lecture 09: Continuous RV Lisa Yan July 16, 2018 Announcements As of Sunday July 17 2pm, PS3 has been updated (typo in problem 10) Midterm: Practice midterm up in next 24hrs PS4 out on Wednesday SCPD email

More information

Factoring. Factor: Change an addition expression into a multiplication expression.

Factoring. Factor: Change an addition expression into a multiplication expression. Factoring Factor: Change an addition expression into a multiplication expression. 1. Always look for a common factor a. immediately take it out to the front of the expression, take out all common factors

More information

This is a good time to refresh your memory on double-integration. We will be using this skill in the upcoming lectures.

This is a good time to refresh your memory on double-integration. We will be using this skill in the upcoming lectures. Chapter 5: JOINT PROBABILITY DISTRIBUTIONS Part 1: Sections 5-1.1 to 5-1.4 For both discrete and continuous random variables we will discuss the following... Joint Distributions for two or more r.v. s)

More information

Biostatistics & SAS programming. Kevin Zhang

Biostatistics & SAS programming. Kevin Zhang Biostatistics & SAS programming Kevin Zhang February 27, 2017 Random variables and distributions 1 Data analysis Simulation study Apply existing methodologies to your collected samples, with the hope to

More information

MULTI-DIMENSIONAL MONTE CARLO INTEGRATION

MULTI-DIMENSIONAL MONTE CARLO INTEGRATION CS580: Computer Graphics KAIST School of Computing Chapter 3 MULTI-DIMENSIONAL MONTE CARLO INTEGRATION 2 1 Monte Carlo Integration This describes a simple technique for the numerical evaluation of integrals

More information

Sampling and Monte-Carlo Integration

Sampling and Monte-Carlo Integration Sampling and Monte-Carlo Integration Sampling and Monte-Carlo Integration Last Time Pixels are samples Sampling theorem Convolution & multiplication Aliasing: spectrum replication Ideal filter And its

More information

Updated Sections 3.5 and 3.6

Updated Sections 3.5 and 3.6 Addendum The authors recommend the replacement of Sections 3.5 3.6 and Table 3.15 with the content of this addendum. Consequently, the recommendation is to replace the 13 models and their weights with

More information

Chapter 6 Some Applications of the Integral

Chapter 6 Some Applications of the Integral Chapter 6 Some Applications of the Integral More on Area More on Area Integrating the vertical separation gives Riemann Sums of the form More on Area Example Find the area A of the set shaded in Figure

More information

2.2 Volumes of Solids of Revolution

2.2 Volumes of Solids of Revolution 2.2 Volumes of Solids of Revolution We know how to find volumes of well-established solids such as a cylinder or rectangular box. What happens when the volume can t be found quite as easily nice or when

More information

14.30 Introduction to Statistical Methods in Economics Spring 2009

14.30 Introduction to Statistical Methods in Economics Spring 2009 MIT OpenCourseWare http://ocw.mit.edu 14.30 Introduction to Statistical Methods in Economics Spring 2009 For information about citing these materials or our Terms of Use, visit: http://ocw.mit.edu/terms.

More information

Page 129 Exercise 5: Suppose that the joint p.d.f. of two random variables X and Y is as follows: { c(x. 0 otherwise. ( 1 = c. = c

Page 129 Exercise 5: Suppose that the joint p.d.f. of two random variables X and Y is as follows: { c(x. 0 otherwise. ( 1 = c. = c Stat Solutions for Homework Set Page 9 Exercise : Suppose that the joint p.d.f. of two random variables X and Y is as follows: { cx fx, y + y for y x, < x < otherwise. Determine a the value of the constant

More information

60th ANNUAL HIGH SCHOOL HONORS MATHEMATICS CONTEST

60th ANNUAL HIGH SCHOOL HONORS MATHEMATICS CONTEST 60th ANNUAL HIGH SCHOOL HONORS MATHEMATICS CONTEST April, 017 on the campus of the University of California, San Diego PART I 5 Questions Welcome to the contest! Please do not open the exam until told

More information

Discrete Mathematics Course Review 3

Discrete Mathematics Course Review 3 21-228 Discrete Mathematics Course Review 3 This document contains a list of the important definitions and theorems that have been covered thus far in the course. It is not a complete listing of what has

More information

Elementary Algebra - Problem Drill 18: Multiplying and Dividing Polynomials

Elementary Algebra - Problem Drill 18: Multiplying and Dividing Polynomials Elementary Algebra - Problem Drill 18: Multiplying and Dividing Polynomials No. 1 of 10 1. Simplify the expression -2a(3m n + 7mn). (A) -6am + 2an + 14amn (B) 6am + 2an 14amn (C) -6am + 2an 14amn (D) -6am

More information

Numerical Integration

Numerical Integration Lecture 12: Numerical Integration (with a focus on Monte Carlo integration) Computer Graphics CMU 15-462/15-662, Fall 2015 Review: fundamental theorem of calculus Z b f(x)dx = F (b) F (a) a f(x) = d dx

More information

PEER Report Addendum.

PEER Report Addendum. PEER Report 2017-03 Addendum. The authors recommend the replacement of Section 3.5.1 and Table 3.15 with the content of this Addendum. Consequently, the recommendation is to replace the 13 models and their

More information

CS 563 Advanced Topics in Computer Graphics Monte Carlo Integration: Basic Concepts. by Emmanuel Agu

CS 563 Advanced Topics in Computer Graphics Monte Carlo Integration: Basic Concepts. by Emmanuel Agu CS 563 Advanced Topics in Computer Graphics Monte Carlo Integration: Basic Concepts by Emmanuel Agu Introduction The integral equations generally don t have analytic solutions, so we must turn to numerical

More information

(Section 6.2: Volumes of Solids of Revolution: Disk / Washer Methods)

(Section 6.2: Volumes of Solids of Revolution: Disk / Washer Methods) (Section 6.: Volumes of Solids of Revolution: Disk / Washer Methods) 6.. PART E: DISK METHOD vs. WASHER METHOD When using the Disk or Washer Method, we need to use toothpicks that are perpendicular to

More information

Exam 2 is Tue Nov 21. Bring a pencil and a calculator. Discuss similarity to exam1. HW3 is due Tue Dec 5.

Exam 2 is Tue Nov 21. Bring a pencil and a calculator. Discuss similarity to exam1. HW3 is due Tue Dec 5. Stat 100a: Introduction to Probability. Outline for the day 1. Bivariate and marginal density. 2. CLT. 3. CIs. 4. Sample size calculations. 5. Review for exam 2. Exam 2 is Tue Nov 21. Bring a pencil and

More information

Sampling random numbers from a uniform p.d.f.

Sampling random numbers from a uniform p.d.f. Some tools for statistics: I. Random Numbers II. Tools for Distributions III. Histograms Printing pdf-file of Mathematica Notebook To make a pdf - file of a mathematica notebook (needed for handing in

More information

Intro to Probability Instructor: Alexandre Bouchard

Intro to Probability Instructor: Alexandre Bouchard www.stat.ubc.ca/~bouchard/courses/stat302-sp2017-18/ Intro to Probability Instructor: Aleandre Bouchard Announcements New webwork will be release by end of day today, due one week later. Plan for today

More information

Section 7.2 Volume: The Disk Method

Section 7.2 Volume: The Disk Method Section 7. Volume: The Disk Method White Board Challenge Find the volume of the following cylinder: No Calculator 6 ft 1 ft V 3 1 108 339.9 ft 3 White Board Challenge Calculate the volume V of the solid

More information

CS839: Probabilistic Graphical Models. Lecture 10: Learning with Partially Observed Data. Theo Rekatsinas

CS839: Probabilistic Graphical Models. Lecture 10: Learning with Partially Observed Data. Theo Rekatsinas CS839: Probabilistic Graphical Models Lecture 10: Learning with Partially Observed Data Theo Rekatsinas 1 Partially Observed GMs Speech recognition 2 Partially Observed GMs Evolution 3 Partially Observed

More information

STATISTICAL LABORATORY, April 30th, 2010 BIVARIATE PROBABILITY DISTRIBUTIONS

STATISTICAL LABORATORY, April 30th, 2010 BIVARIATE PROBABILITY DISTRIBUTIONS STATISTICAL LABORATORY, April 3th, 21 BIVARIATE PROBABILITY DISTRIBUTIONS Mario Romanazzi 1 MULTINOMIAL DISTRIBUTION Ex1 Three players play 1 independent rounds of a game, and each player has probability

More information

27. Tangent Planes & Approximations

27. Tangent Planes & Approximations 27. Tangent Planes & Approximations If z = f(x, y) is a differentiable surface in R 3 and (x 0, y 0, z 0 ) is a point on this surface, then it is possible to construct a plane passing through this point,

More information

R Programming Basics - Useful Builtin Functions for Statistics

R Programming Basics - Useful Builtin Functions for Statistics R Programming Basics - Useful Builtin Functions for Statistics Vectorized Arithmetic - most arthimetic operations in R work on vectors. Here are a few commonly used summary statistics. testvect = c(1,3,5,2,9,10,7,8,6)

More information

A. Incorrect! This would be the negative of the range. B. Correct! The range is the maximum data value minus the minimum data value.

A. Incorrect! This would be the negative of the range. B. Correct! The range is the maximum data value minus the minimum data value. AP Statistics - Problem Drill 05: Measures of Variation No. 1 of 10 1. The range is calculated as. (A) The minimum data value minus the maximum data value. (B) The maximum data value minus the minimum

More information

Chapter 5: Joint Probability Distributions and Random

Chapter 5: Joint Probability Distributions and Random Chapter 5: Joint Probability Distributions and Random Samples Curtis Miller 2018-06-13 Introduction We may naturally inquire about collections of random variables that are related to each other in some

More information

Learning Objectives. Continuous Random Variables & The Normal Probability Distribution. Continuous Random Variable

Learning Objectives. Continuous Random Variables & The Normal Probability Distribution. Continuous Random Variable Learning Objectives Continuous Random Variables & The Normal Probability Distribution 1. Understand characteristics about continuous random variables and probability distributions 2. Understand the uniform

More information

Lecture 7: Monte Carlo Rendering. MC Advantages

Lecture 7: Monte Carlo Rendering. MC Advantages Lecture 7: Monte Carlo Rendering CS 6620, Spring 2009 Kavita Bala Computer Science Cornell University MC Advantages Convergence rate of O( ) Simple Sampling Point evaluation Can use black boxes General

More information

SD 372 Pattern Recognition

SD 372 Pattern Recognition SD 372 Pattern Recognition Lab 2: Model Estimation and Discriminant Functions 1 Purpose This lab examines the areas of statistical model estimation and classifier aggregation. Model estimation will be

More information

Physics 736. Experimental Methods in Nuclear-, Particle-, and Astrophysics. - Statistical Methods -

Physics 736. Experimental Methods in Nuclear-, Particle-, and Astrophysics. - Statistical Methods - Physics 736 Experimental Methods in Nuclear-, Particle-, and Astrophysics - Statistical Methods - Karsten Heeger heeger@wisc.edu Course Schedule and Reading course website http://neutrino.physics.wisc.edu/teaching/phys736/

More information

x + 2 = 0 or Our limits of integration will apparently be a = 2 and b = 4.

x + 2 = 0 or Our limits of integration will apparently be a = 2 and b = 4. QUIZ ON CHAPTER 6 - SOLUTIONS APPLICATIONS OF INTEGRALS; MATH 15 SPRING 17 KUNIYUKI 15 POINTS TOTAL, BUT 1 POINTS = 1% Note: The functions here are continuous on the intervals of interest. This guarantees

More information

Lecture 17. ENGR-1100 Introduction to Engineering Analysis CENTROID OF COMPOSITE AREAS

Lecture 17. ENGR-1100 Introduction to Engineering Analysis CENTROID OF COMPOSITE AREAS ENGR-00 Introduction to Engineering Analysis Lecture 7 CENTROID OF COMPOSITE AREAS Today s Objective : Students will: a) Understand the concept of centroid. b) Be able to determine the location of the

More information

Math 2260 Exam #1 Practice Problem Solutions

Math 2260 Exam #1 Practice Problem Solutions Math 6 Exam # Practice Problem Solutions. What is the area bounded by the curves y x and y x + 7? Answer: As we can see in the figure, the line y x + 7 lies above the parabola y x in the region we care

More information

GAMES Webinar: Rendering Tutorial 2. Monte Carlo Methods. Shuang Zhao

GAMES Webinar: Rendering Tutorial 2. Monte Carlo Methods. Shuang Zhao GAMES Webinar: Rendering Tutorial 2 Monte Carlo Methods Shuang Zhao Assistant Professor Computer Science Department University of California, Irvine GAMES Webinar Shuang Zhao 1 Outline 1. Monte Carlo integration

More information

Math 113 Calculus III Final Exam Practice Problems Spring 2003

Math 113 Calculus III Final Exam Practice Problems Spring 2003 Math 113 Calculus III Final Exam Practice Problems Spring 23 1. Let g(x, y, z) = 2x 2 + y 2 + 4z 2. (a) Describe the shapes of the level surfaces of g. (b) In three different graphs, sketch the three cross

More information

Chapter 6 Normal Probability Distributions

Chapter 6 Normal Probability Distributions Chapter 6 Normal Probability Distributions 6-1 Review and Preview 6-2 The Standard Normal Distribution 6-3 Applications of Normal Distributions 6-4 Sampling Distributions and Estimators 6-5 The Central

More information

SPSS Basics for Probability Distributions

SPSS Basics for Probability Distributions Built-in Statistical Functions in SPSS Begin by defining some variables in the Variable View of a data file, save this file as Probability_Distributions.sav and save the corresponding output file as Probability_Distributions.spo.

More information

Pairs of a random variable

Pairs of a random variable Handout 8 Pairs of a random variable "Always be a little improbable." Oscar Wilde in the previous tutorials we analyzed experiments in which an outcome is one number. we'll start to analyze experiments

More information

lecture 19: monte carlo methods

lecture 19: monte carlo methods lecture 19: monte carlo methods STAT 598z: Introduction to computing for statistics Vinayak Rao Department of Statistics, Purdue University April 3, 2019 Monte Carlo integration We want to calculate integrals/summations

More information

Tutorial: Using Tina Vision s Quantitative Pattern Recognition Tool.

Tutorial: Using Tina Vision s Quantitative Pattern Recognition Tool. Tina Memo No. 2014-004 Internal Report Tutorial: Using Tina Vision s Quantitative Pattern Recognition Tool. P.D.Tar. Last updated 07 / 06 / 2014 ISBE, Medical School, University of Manchester, Stopford

More information

Applications of Integration

Applications of Integration Week 12. Applications of Integration 12.1.Areas Between Curves Example 12.1. Determine the area of the region enclosed by y = x 2 and y = x. Solution. First you need to find the points where the two functions

More information

Integration. Volume Estimation

Integration. Volume Estimation Monte Carlo Integration Lab Objective: Many important integrals cannot be evaluated symbolically because the integrand has no antiderivative. Traditional numerical integration techniques like Newton-Cotes

More information

38. Triple Integration over Rectangular Regions

38. Triple Integration over Rectangular Regions 8. Triple Integration over Rectangular Regions A rectangular solid region S in R can be defined by three compound inequalities, a 1 x a, b 1 y b, c 1 z c, where a 1, a, b 1, b, c 1 and c are constants.

More information

Monte Carlo Integration

Monte Carlo Integration Lecture 11: Monte Carlo Integration Computer Graphics and Imaging UC Berkeley CS184/284A, Spring 2016 Reminder: Quadrature-Based Numerical Integration f(x) Z b a f(x)dx x 0 = a x 1 x 2 x 3 x 4 = b E.g.

More information

Statool User s Manual

Statool User s Manual Statool User s Manual Prepared by Tuan Cao with Jianzhong Zhang 7/19/04 Statool User s Manual Table of contents Purpose of Statool... 2 Input/Output Files for Statool...3.PDF file...3.cdf file... 3.IDF

More information

(c) 0 (d) (a) 27 (b) (e) x 2 3x2

(c) 0 (d) (a) 27 (b) (e) x 2 3x2 1. Sarah the architect is designing a modern building. The base of the building is the region in the xy-plane bounded by x =, y =, and y = 3 x. The building itself has a height bounded between z = and

More information

Monte Carlo Integration and Random Numbers

Monte Carlo Integration and Random Numbers Monte Carlo Integration and Random Numbers Higher dimensional integration u Simpson rule with M evaluations in u one dimension the error is order M -4! u d dimensions the error is order M -4/d u In general

More information

Calculus IV. Exam 2 November 13, 2003

Calculus IV. Exam 2 November 13, 2003 Name: Section: Calculus IV Math 1 Fall Professor Ben Richert Exam November 1, Please do all your work in this booklet and show all the steps. Calculators and note-cards are not allowed. Problem Possible

More information

INFOMAGR Advanced Graphics. Jacco Bikker - February April Welcome!

INFOMAGR Advanced Graphics. Jacco Bikker - February April Welcome! INFOMAGR Advanced Graphics Jacco Bikker - February April 2016 Welcome! I x, x = g(x, x ) ε x, x + S ρ x, x, x I x, x dx Today s Agenda: Introduction Stratification Next Event Estimation Importance Sampling

More information

Package simed. November 27, 2017

Package simed. November 27, 2017 Version 1.0.3 Title Simulation Education Author Barry Lawson, Larry Leemis Package simed November 27, 2017 Maintainer Barry Lawson Imports graphics, grdevices, methods, stats, utils

More information

Curves, Tangent Planes, and Differentials ( ) Feb. 26, 2012 (Sun) Lecture 9. Partial Derivatives: Signs on Level Curves, Tangent

Curves, Tangent Planes, and Differentials ( ) Feb. 26, 2012 (Sun) Lecture 9. Partial Derivatives: Signs on Level Curves, Tangent Lecture 9. Partial Derivatives: Signs on Level Curves, Tangent Planes, and Differentials ( 11.3-11.4) Feb. 26, 2012 (Sun) Signs of Partial Derivatives on Level Curves Level curves are shown for a function

More information

1) Give decision trees to represent the following Boolean functions:

1) Give decision trees to represent the following Boolean functions: 1) Give decision trees to represent the following Boolean functions: 1) A B 2) A [B C] 3) A XOR B 4) [A B] [C Dl Answer: 1) A B 2) A [B C] 1 3) A XOR B = (A B) ( A B) 4) [A B] [C D] 2 2) Consider the following

More information

= f (a, b) + (hf x + kf y ) (a,b) +

= f (a, b) + (hf x + kf y ) (a,b) + Chapter 14 Multiple Integrals 1 Double Integrals, Iterated Integrals, Cross-sections 2 Double Integrals over more general regions, Definition, Evaluation of Double Integrals, Properties of Double Integrals

More information

PHYSICS 115/242 Homework 5, Solutions X = and the mean and variance of X are N times the mean and variance of 12/N y, so

PHYSICS 115/242 Homework 5, Solutions X = and the mean and variance of X are N times the mean and variance of 12/N y, so PHYSICS 5/242 Homework 5, Solutions. Central limit theorem. (a) Let y i = x i /2. The distribution of y i is equal to for /2 y /2 and zero otherwise. Hence We consider µ y y i = /2 /2 σ 2 y y 2 i y i 2

More information

Warped Mixture Models

Warped Mixture Models Warped Mixture Models Tomoharu Iwata, David Duvenaud, Zoubin Ghahramani Cambridge University Computational and Biological Learning Lab March 11, 2013 OUTLINE Motivation Gaussian Process Latent Variable

More information

Math 113 Exam 1 Practice

Math 113 Exam 1 Practice Math Exam Practice January 6, 00 Exam will cover sections 6.-6.5 and 7.-7.5 This sheet has three sections. The first section will remind you about techniques and formulas that you should know. The second

More information

More About Factoring Trinomials

More About Factoring Trinomials Section 6.3 More About Factoring Trinomials 239 83. x 2 17x 70 x 7 x 10 Width of rectangle: Length of rectangle: x 7 x 10 Width of shaded region: 7 Length of shaded region: x 10 x 10 Area of shaded region:

More information

Monte-Carlo Ray Tracing. Antialiasing & integration. Global illumination. Why integration? Domains of integration. What else can we integrate?

Monte-Carlo Ray Tracing. Antialiasing & integration. Global illumination. Why integration? Domains of integration. What else can we integrate? Monte-Carlo Ray Tracing Antialiasing & integration So far, Antialiasing as signal processing Now, Antialiasing as integration Complementary yet not always the same in particular for jittered sampling Image

More information

Chapter 6: Simulation Using Spread-Sheets (Excel)

Chapter 6: Simulation Using Spread-Sheets (Excel) Chapter 6: Simulation Using Spread-Sheets (Excel) Refer to Reading Assignments 1 Simulation Using Spread-Sheets (Excel) OBJECTIVES To be able to Generate random numbers within a spreadsheet environment.

More information

Statistical Methods for NLP LT 2202

Statistical Methods for NLP LT 2202 LT 2202 Lecture 5 Statistical inference January 31, 2012 Summary of lecture 4 Probabilities and statistics in Python Scipy Matplotlib Descriptive statistics Random sample Sample mean Sample variance and

More information

An Introduction to PDF Estimation and Clustering

An Introduction to PDF Estimation and Clustering Sigmedia, Electronic Engineering Dept., Trinity College, Dublin. 1 An Introduction to PDF Estimation and Clustering David Corrigan corrigad@tcd.ie Electrical and Electronic Engineering Dept., University

More information

Contents. MATH 32B-2 (18W) (L) G. Liu / (TA) A. Zhou Calculus of Several Variables. 1 Homework 1 - Solutions 3. 2 Homework 2 - Solutions 13

Contents. MATH 32B-2 (18W) (L) G. Liu / (TA) A. Zhou Calculus of Several Variables. 1 Homework 1 - Solutions 3. 2 Homework 2 - Solutions 13 MATH 32B-2 (8) (L) G. Liu / (TA) A. Zhou Calculus of Several Variables Contents Homework - Solutions 3 2 Homework 2 - Solutions 3 3 Homework 3 - Solutions 9 MATH 32B-2 (8) (L) G. Liu / (TA) A. Zhou Calculus

More information

IQR = number. summary: largest. = 2. Upper half: Q3 =

IQR = number. summary: largest. = 2. Upper half: Q3 = Step by step box plot Height in centimeters of players on the 003 Women s Worldd Cup soccer team. 157 1611 163 163 164 165 165 165 168 168 168 170 170 170 171 173 173 175 180 180 Determine the 5 number

More information

Note Set 4: Finite Mixture Models and the EM Algorithm

Note Set 4: Finite Mixture Models and the EM Algorithm Note Set 4: Finite Mixture Models and the EM Algorithm Padhraic Smyth, Department of Computer Science University of California, Irvine Finite Mixture Models A finite mixture model with K components, for

More information

Probability and Statistics for Final Year Engineering Students

Probability and Statistics for Final Year Engineering Students Probability and Statistics for Final Year Engineering Students By Yoni Nazarathy, Last Updated: April 11, 2011. Lecture 1: Introduction and Basic Terms Welcome to the course, time table, assessment, etc..

More information

Robotics. Lecture 5: Monte Carlo Localisation. See course website for up to date information.

Robotics. Lecture 5: Monte Carlo Localisation. See course website  for up to date information. Robotics Lecture 5: Monte Carlo Localisation See course website http://www.doc.ic.ac.uk/~ajd/robotics/ for up to date information. Andrew Davison Department of Computing Imperial College London Review:

More information

Non-Bayesian Classifiers Part I: k-nearest Neighbor Classifier and Distance Functions

Non-Bayesian Classifiers Part I: k-nearest Neighbor Classifier and Distance Functions Non-Bayesian Classifiers Part I: k-nearest Neighbor Classifier and Distance Functions Selim Aksoy Department of Computer Engineering Bilkent University saksoy@cs.bilkent.edu.tr CS 551, Fall 2017 CS 551,

More information

Probability Models.S4 Simulating Random Variables

Probability Models.S4 Simulating Random Variables Operations Research Models and Methods Paul A. Jensen and Jonathan F. Bard Probability Models.S4 Simulating Random Variables In the fashion of the last several sections, we will often create probability

More information

Computer vision: models, learning and inference. Chapter 10 Graphical Models

Computer vision: models, learning and inference. Chapter 10 Graphical Models Computer vision: models, learning and inference Chapter 10 Graphical Models Independence Two variables x 1 and x 2 are independent if their joint probability distribution factorizes as Pr(x 1, x 2 )=Pr(x

More information

Homework 8. Due: Tuesday, March 31st, 2009

Homework 8. Due: Tuesday, March 31st, 2009 MATH 55 Applied Honors Calculus III Winter 9 Homework 8 Due: Tuesday, March 3st, 9 Section 6.5, pg. 54: 7, 3. Section 6.6, pg. 58:, 3. Section 6.7, pg. 66: 3, 5, 47. Section 6.8, pg. 73: 33, 38. Section

More information

ENSC 805. Spring Assignment 1 Solution.

ENSC 805. Spring Assignment 1 Solution. ENSC 805 Spring 2016 Assignment 1 Solution Question 1. Go to the link below to install Matlab on your personal computer. https://www.sfu.ca/itservices/technical/software/matlab/nameduserlicense.html Question

More information

MATH : EXAM 3 INFO/LOGISTICS/ADVICE

MATH : EXAM 3 INFO/LOGISTICS/ADVICE MATH 3342-004: EXAM 3 INFO/LOGISTICS/ADVICE INFO: WHEN: Friday (04/22) at 10:00am DURATION: 50 mins PROBLEM COUNT: Appropriate for a 50-min exam BONUS COUNT: At least one TOPICS CANDIDATE FOR THE EXAM:

More information

Problems from Hughes and Hase

Problems from Hughes and Hase Problems from Hughes and Hase In [1]: import scipy as sp from scipy import stats import matplotlib as mpl # As of July 017 Bucknell computers use v..x import matplotlib.pyplot as plt # Following is an

More information

ECE521: Week 11, Lecture March 2017: HMM learning/inference. With thanks to Russ Salakhutdinov

ECE521: Week 11, Lecture March 2017: HMM learning/inference. With thanks to Russ Salakhutdinov ECE521: Week 11, Lecture 20 27 March 2017: HMM learning/inference With thanks to Russ Salakhutdinov Examples of other perspectives Murphy 17.4 End of Russell & Norvig 15.2 (Artificial Intelligence: A Modern

More information

Computer Graphics Prof. Sukhendu Das Dept. of Computer Science and Engineering Indian Institute of Technology, Madras Lecture - 14

Computer Graphics Prof. Sukhendu Das Dept. of Computer Science and Engineering Indian Institute of Technology, Madras Lecture - 14 Computer Graphics Prof. Sukhendu Das Dept. of Computer Science and Engineering Indian Institute of Technology, Madras Lecture - 14 Scan Converting Lines, Circles and Ellipses Hello everybody, welcome again

More information

Centroid Principles. Object s center of gravity or center of mass. Graphically labeled as

Centroid Principles. Object s center of gravity or center of mass. Graphically labeled as Centroids Centroid Principles Object s center of gravity or center of mass. Graphically labeled as Centroid Principles Point of applied force caused by acceleration due to gravity. Object is in state of

More information

Homework #4 Programming Assignment Due: 11:59 pm, November 4, 2018

Homework #4 Programming Assignment Due: 11:59 pm, November 4, 2018 CSCI 567, Fall 18 Haipeng Luo Homework #4 Programming Assignment Due: 11:59 pm, ovember 4, 2018 General instructions Your repository will have now a directory P4/. Please do not change the name of this

More information

Worksheet 3.2: Double Integrals in Polar Coordinates

Worksheet 3.2: Double Integrals in Polar Coordinates Boise State Math 75 (Ultman) Worksheet 3.: ouble Integrals in Polar Coordinates From the Toolbox (what you need from previous classes): Trig/Calc II: Convert equations in x and y into r and θ, using the

More information

MATH 104 First Midterm Exam - Fall (d) A solid has as its base the region in the xy-plane the region between the curve y = 1 x2

MATH 104 First Midterm Exam - Fall (d) A solid has as its base the region in the xy-plane the region between the curve y = 1 x2 MATH 14 First Midterm Exam - Fall 214 1. Find the area between the graphs of y = x 2 + x + 5 and y = 2x 2 x. 1. Find the area between the graphs of y = x 2 + 4x + 6 and y = 2x 2 x. 1. Find the area between

More information

Warm-Up If last month was July, then what month will it be 22 months from now?

Warm-Up If last month was July, then what month will it be 22 months from now? Warm-Up. If last month was July, then what month will it be months from now?. The maximum slope for handicap ramps was changed from to. What is the positive difference of these slopes? Express your answer

More information

Double Integration: Non-Rectangular Domains

Double Integration: Non-Rectangular Domains Double Integration: Non-Rectangular Domains Thomas Banchoff and Associates June 18, 2003 1 Introduction In calculus of one variable, all domains are intervals which are subsets of the line. In calculus

More information

Machine Learning. B. Unsupervised Learning B.1 Cluster Analysis. Lars Schmidt-Thieme, Nicolas Schilling

Machine Learning. B. Unsupervised Learning B.1 Cluster Analysis. Lars Schmidt-Thieme, Nicolas Schilling Machine Learning B. Unsupervised Learning B.1 Cluster Analysis Lars Schmidt-Thieme, Nicolas Schilling Information Systems and Machine Learning Lab (ISMLL) Institute for Computer Science University of Hildesheim,

More information

Laboratorio di Problemi Inversi Esercitazione 4: metodi Bayesiani e importance sampling

Laboratorio di Problemi Inversi Esercitazione 4: metodi Bayesiani e importance sampling Laboratorio di Problemi Inversi Esercitazione 4: metodi Bayesiani e importance sampling Luca Calatroni Dipartimento di Matematica, Universitá degli studi di Genova May 19, 2016. Luca Calatroni (DIMA, Unige)

More information

Monte Carlo Integration

Monte Carlo Integration Lecture 15: Monte Carlo Integration Computer Graphics and Imaging UC Berkeley Reminder: Quadrature-Based Numerical Integration f(x) Z b a f(x)dx x 0 = a x 1 x 2 x 3 x 4 = b E.g. trapezoidal rule - estimate

More information

P1 REVISION EXERCISE: 1

P1 REVISION EXERCISE: 1 P1 REVISION EXERCISE: 1 1. Solve the simultaneous equations: x + y = x +y = 11. For what values of p does the equation px +4x +(p 3) = 0 have equal roots? 3. Solve the equation 3 x 1 =7. Give your answer

More information

Some Matlab functions for random signals

Some Matlab functions for random signals Some Matlab functions for random signals This document shows some examples where some Matlab functions for random signals are used. A list of useful functions: Normrnd create Gaussian random signal Unidrnd

More information

Clustering. Mihaela van der Schaar. January 27, Department of Engineering Science University of Oxford

Clustering. Mihaela van der Schaar. January 27, Department of Engineering Science University of Oxford Department of Engineering Science University of Oxford January 27, 2017 Many datasets consist of multiple heterogeneous subsets. Cluster analysis: Given an unlabelled data, want algorithms that automatically

More information

Apprenticeship Learning for Reinforcement Learning. with application to RC helicopter flight Ritwik Anand, Nick Haliday, Audrey Huang

Apprenticeship Learning for Reinforcement Learning. with application to RC helicopter flight Ritwik Anand, Nick Haliday, Audrey Huang Apprenticeship Learning for Reinforcement Learning with application to RC helicopter flight Ritwik Anand, Nick Haliday, Audrey Huang Table of Contents Introduction Theory Autonomous helicopter control

More information