The Law of Total Probability, Bayes Rule, and Random Variables (Oh My!)

Size: px
Start display at page:

Download "The Law of Total Probability, Bayes Rule, and Random Variables (Oh My!)"

Transcription

1 The Law f Ttal Prbability, Bayes Rule, and Randm Variables (Oh My!)

2 Administrivia Hmewrk 2 is psted and is due tw Friday s frm nw If yu didn t start early last time, please d s this time. Gd Milestnes: Finish Prblems 1-3 this week. Mre math, sme prgramming. Finish Prblems 4-5 next week. Less math, mre prgramming.

3 Administrivia Reminder f the curse Cllabratin Plicy: Inspiratin is Free: yu may discuss hmewrk assignments with anyne. Yu are especially encuraged t discuss slutins with yur instructr and yur classmates. Plagiarism is Frbidden: the assignments and cde that yu turn in shuld be written entirely n yur wn. D NOT Search fr a Slutin On-Line: Yu may nt actively search fr a slutin t the prblem frm the internet. This includes psting t surces like StackExchange, Reddit, Chegg, etc Vilatin f ANY f the abve will result in an F in the curse / trip t Hnr Cuncil

4 Previusly n CSCI 3022 Cnditinal Prbability: The prbability that A ccurs given that C ccurred P (A C) P (A C) P (C) Multiplicatin Rule: P (A C) P (A C) P (C) Independence: Events A and B are independent if P (A B) P (A) P (B A) P (B) 3. P (A B) P (A)P (B)

5 Law f Ttal Prbability Example: Suppse I have tw bags f marbles. The first bag cntains 6 white marbles and 4 black marbles. The secnd bag cntains 3 white marbles and 7 black marbles. Nw suppse I put the tw bags in a bx. If I clse my eyes, grab a bag frm the bx, and then grab a marble frm the bag, what is the prbability that it is black? H BLACK t + ± E + E- ' t

6 Law f Ttal Prbability Example: Same scenari as befre, but nw suppse that the first bag is much larger than the secnd bag, s that when I reach int the bx I m twice as likely t grab the first bag as the secnd. What is the prbability f grabbing a black marble? P ( B.) % P(Bz) 1/3 25. t + I. E 8%+30. T. ±

7 Law f Ttal Prbability Def: Suppse C 1,C 2,...,C m are disjint events such that C 1 C 2 C m. The prbability f an arbitrary event A can be expressed as: P (A) P (A C 1 )P (C 1 )+P(A C 2 )P (C 2 )+ + P (A C m )P (C m ) E I n YFE #

8 Let s Flip Things Arund PCB, )PlB) Example: Suppse I have tw bags f marbles. The first bag cntains 6 white marbles and 4 black marbles. The secnd bag cntains 3 white marbles and 7 black marbles. Nw suppse I put the tw bags in a bx. If I clse my eyes, grab a bag frm the bx, reach int the bag and pull ut a white marble. What is the prbability that I picked Bag 1? cmplete PCB, )P( Bil - tz PCB, ( WHITE ) PCB.tk ) PC WHITE ) PIWHHEIB,) PIWHITEIBD 340 PCB, NWHITE ) PC WHITE IBDPCB, )

9 Let s Flip Things Arund Example: Suppse I have tw bags f marbles. The first bag cntains 6 white marbles and 4 black marbles. The secnd bag cntains 3 white marbles and 7 black marbles. Nw suppse I put the tw bags in a bx. If I clse my eyes, grab a bag frm the bx, reach int the bag and pull ut a white marble. What is the prbability that I picked Bag 1? Hw culd we cmpute this? PCB, 1 WHITE ) - PCWHITEIBDPIBDPCWHITE ) PC WHITE 1 B. ) DPIB, % Yz white IBDPCB, ) + PIWHHI 1132 )MB2 ) g.tt?. Esque % - PD }

10 Let s Flip Things Arund Example: Suppse I have tw bags f marbles. The first bag cntains 6 white marbles and 4 black marbles. The secnd bag cntains 3 white marbles and 7 black marbles. Nw suppse I put the tw bags in a bx. If I clse my eyes, grab a bag frm the bx, reach int the bag and pull ut a white marble. What is the prbability that I picked Bag 1? Hw culd we cmpute this? Let s write dwn literally everything we knw

11 Let s Flip Things Arund Example: Suppse I have tw bags f marbles. The first bag cntains 6 white marbles and 4 black marbles. The secnd bag cntains 3 white marbles and 7 black marbles. Nw suppse I put the tw bags in a bx. If I clse my eyes, grab a bag frm the bx, reach int the bag and pull ut a white marble. What is the prbability that I picked Bag 1? Hw culd we cmpute this? Let s write dwn literally everything we knw

12 Let s Flip Things Arund Example: Suppse I have tw bags f marbles. The first bag cntains 6 white marbles and 4 black marbles. The secnd bag cntains 3 white marbles and 7 black marbles. Nw suppse I put the tw bags in a bx. If I clse my eyes, grab a bag frm the bx, reach int the bag and pull ut a white marble. What is the prbability that I picked Bag 1? Hw culd we cmpute this? Let s write dwn literally everything we knw

13 Bayes Rule The ntin f using evidence (the marble is White) t update ur belief abut an event (that we selected Bx 1 frm the bx) is the crnerstne f a statistical framewrk called Bayesian Reasning. The frmulas we derived in the previus example are called Bayes Rule r Bayes Therem P (A C) t f P (C A)P (A) P (C) y PROB LIKELIHOOD a- PRIOR P (C A)P (A) P (C A)P (A)+P (C A c )P (A c ) OF EVIDENCE

14

15 Bayes Rule The ntin f using evidence (the marble is White) t update ur belief abut an event (that we selected Bx 1 frm the bx) is the crnerstne f a statistical framewrk called Bayesian Reasning. The frmulas we derived in the previus example are called Bayes Rule r Bayes Therem P (A C) P (C A)P (A) P (C) P (C A)P (A) P (C A)P (A)+P (C A c )P (A c )

16 Bayes Rule Bayes Rule has applicatins all ver science. Shuld we test men fr prstate cancer? Bayes Rule allws us t write dwn the prbability that smene wh tests psitive fr prstate cancer actually has prstate cancer. False psitives may cause huge amunts f stress, heartache, and pain. On the ther hand, if yu dn t test fr cancer, yu may nt discver it until it s t late Things are slightly mre cmplicated than this: Other factrs are age, PSA cutffs, etc.

17 Bayes Rule Classic Example: Suppse that 1% f men ver the age f 40 have prstate cancer. Als suppse that a test fr prstate cancer exists with the fllwing prperties: 90% f peple have cancer will test psitive and 8% f peple wh d nt have cancer will als test psitive. What is the prbability that a persn wh tests psitive fr cancer actually has cancer? C Have cancer + ps test - neg test PCC It ) PCt1c)PK). e Pct ) Pct 1C ) Pcc ). 'ftp.tp.ge?py@ 0.07

18 Bayes Rule Classic Example: Suppse that 1% f men ver the age f 40 have prstate cancer. Als suppse that a test fr prstate cancer exists with the fllwing prperties: 90% f peple have cancer will test psitive and 8% f peple wh d nt have cancer will als test psitive. What is the prbability that a persn wh tests psitive fr cancer actually has cancer?

19 Bayes Rule Classic Example: Suppse that 1% f men ver the age f 40 have prstate cancer. Als suppse that a test fr prstate cancer exists with the fllwing prperties: 90% f peple have cancer will test psitive and 8% f peple wh d nt have cancer will als test psitive. What is the prbability that a persn wh tests psitive fr cancer actually has cancer? Pct ) PAI c) Pcc ) + Pct Icc ) PKD E t + Is! 8.8%

20 Randm Variables Suppse that I rll tw dice What is the mst cmbinatin? What is the mst likely sum?

21 Randm Variables Suppse that I rll tw dice What is the mst cmbinatin? What is the mst likely sum?

22 Randm Variables What is the sample space? w, 1st pll we 2nd pll a E

23 Randm Variables What is the sample space? The Key: the dice are randm, s the sum is randm. Let s sidestep the sample space entirely and just g straight t the thing we care abut: the sum. We call the sum f the dice a randm variable.

24 Randm Variables What is the sample space? The Key: the dice are randm, s the sum is randm. Let s sidestep the sample space entirely and just g straight t the thing we care abut: the sum. We call the sum f the dice a randm variable. Def: a discrete randm variable is a functin that maps the elements f the sample space T a finite number f values a 1,a 2,...,a n r an infinite number f values a 1,a 2,... Examples: Sum f the dice, difference f the dice, maximum f the dice Number f cin flips until we get a heads

25 Prbability Mass Functin. Def: a prbability mass functin is the map between the randm variable s values and the prbabilities f thse values f(a) P (X a) 9 RU. Called a prbability mass functin (PMF) because each f the randm variable values has sme prbability mass (r weight) assciated with it Because the PMF is a prbability functin, the sum f all the masses must be what? El, Fla ;) /

26 PCHKP Prbability Mass Functin Questin: what is the prbability mass functin fr the number f cin flips until a biased cin cmes up heads? R { H, TH, TTH, TTTH,. -. } I f p ctpp I. ppp ' c ppp - - -

27 Cumulative Distributin Functin Def: a cumulative distributin functin (CDF) is a functin whse value at a pint a is the cumulative sum f prbability masses up until a. F (a) P (X a) F (6) - prb OF Rlling A sum Questin: What is the relatinship between the PMF and the CDF? I 6 Fca ) Z, Fca ) X a

28 Cumulative Distributin Functin Questin: what is the prbability that I rll tw dice and they add up t at least 9? PCX - { 9,10,k,z})P( > 9) 1- P( < 9) 1- P(X±8 ) 1- FC8) I

29 OK! Let s G t Wrk! Get in grups, get ut laptp, and pen the Lecture 6 In-Class Ntebk Let s: Get sme mre practice with the Law f Ttal Prbability and Bayes Rule Lk at a famus Bayesian example called the Mnte Hall Prblem

Introduction to Regression

Introduction to Regression Intrductin t Regressin Administrivia Hmewrk 6 psted later tnight. Due Friday after Break. 2 Statistical Mdeling Thus far we ve talked abut Descriptive Statistics: This is the way my sample is Inferential

More information

Maximum A Posteriori (MAP) CS 109 Lecture 22 May 16th, 2016

Maximum A Posteriori (MAP) CS 109 Lecture 22 May 16th, 2016 Maximum A Psteriri (MAP) CS 109 Lecture 22 May 16th, 2016 Previusly in CS109 Game f Estimatrs Maximum Likelihd Nn spiler: this didn t happen Side Plt argmax argmax f lg Mther f ptimizatins? Reviving an

More information

Introduction to Spacetime Geometry

Introduction to Spacetime Geometry Intrductin t Spacetime Gemetry Let s start with a review f a basic feature f Euclidean gemetry, the Pythagrean therem. In a twdimensinal crdinate system we can relate the length f a line segment t the

More information

Differentiation Applications 1: Related Rates

Differentiation Applications 1: Related Rates Differentiatin Applicatins 1: Related Rates 151 Differentiatin Applicatins 1: Related Rates Mdel 1: Sliding Ladder 10 ladder y 10 ladder 10 ladder A 10 ft ladder is leaning against a wall when the bttm

More information

4th Indian Institute of Astrophysics - PennState Astrostatistics School July, 2013 Vainu Bappu Observatory, Kavalur. Correlation and Regression

4th Indian Institute of Astrophysics - PennState Astrostatistics School July, 2013 Vainu Bappu Observatory, Kavalur. Correlation and Regression 4th Indian Institute f Astrphysics - PennState Astrstatistics Schl July, 2013 Vainu Bappu Observatry, Kavalur Crrelatin and Regressin Rahul Ry Indian Statistical Institute, Delhi. Crrelatin Cnsider a tw

More information

CHAPTER 24: INFERENCE IN REGRESSION. Chapter 24: Make inferences about the population from which the sample data came.

CHAPTER 24: INFERENCE IN REGRESSION. Chapter 24: Make inferences about the population from which the sample data came. MATH 1342 Ch. 24 April 25 and 27, 2013 Page 1 f 5 CHAPTER 24: INFERENCE IN REGRESSION Chapters 4 and 5: Relatinships between tw quantitative variables. Be able t Make a graph (scatterplt) Summarize the

More information

Math 105: Review for Exam I - Solutions

Math 105: Review for Exam I - Solutions 1. Let f(x) = 3 + x + 5. Math 105: Review fr Exam I - Slutins (a) What is the natural dmain f f? [ 5, ), which means all reals greater than r equal t 5 (b) What is the range f f? [3, ), which means all

More information

Chapter Summary. Mathematical Induction Strong Induction Recursive Definitions Structural Induction Recursive Algorithms

Chapter Summary. Mathematical Induction Strong Induction Recursive Definitions Structural Induction Recursive Algorithms Chapter 5 1 Chapter Summary Mathematical Inductin Strng Inductin Recursive Definitins Structural Inductin Recursive Algrithms Sectin 5.1 3 Sectin Summary Mathematical Inductin Examples f Prf by Mathematical

More information

Section 5.8 Notes Page Exponential Growth and Decay Models; Newton s Law

Section 5.8 Notes Page Exponential Growth and Decay Models; Newton s Law Sectin 5.8 Ntes Page 1 5.8 Expnential Grwth and Decay Mdels; Newtn s Law There are many applicatins t expnential functins that we will fcus n in this sectin. First let s lk at the expnential mdel. Expnential

More information

Thermodynamics Partial Outline of Topics

Thermodynamics Partial Outline of Topics Thermdynamics Partial Outline f Tpics I. The secnd law f thermdynamics addresses the issue f spntaneity and invlves a functin called entrpy (S): If a prcess is spntaneus, then Suniverse > 0 (2 nd Law!)

More information

Public Key Cryptography. Tim van der Horst & Kent Seamons

Public Key Cryptography. Tim van der Horst & Kent Seamons Public Key Cryptgraphy Tim van der Hrst & Kent Seamns Last Updated: Oct 5, 2017 Asymmetric Encryptin Why Public Key Crypt is Cl Has a linear slutin t the key distributin prblem Symmetric crypt has an expnential

More information

, which yields. where z1. and z2

, which yields. where z1. and z2 The Gaussian r Nrmal PDF, Page 1 The Gaussian r Nrmal Prbability Density Functin Authr: Jhn M Cimbala, Penn State University Latest revisin: 11 September 13 The Gaussian r Nrmal Prbability Density Functin

More information

Department of Economics, University of California, Davis Ecn 200C Micro Theory Professor Giacomo Bonanno. Insurance Markets

Department of Economics, University of California, Davis Ecn 200C Micro Theory Professor Giacomo Bonanno. Insurance Markets Department f Ecnmics, University f alifrnia, Davis Ecn 200 Micr Thery Prfessr Giacm Bnann Insurance Markets nsider an individual wh has an initial wealth f. ith sme prbability p he faces a lss f x (0

More information

Associated Students Flacks Internship

Associated Students Flacks Internship Assciated Students Flacks Internship 2016-2017 Applicatin Persnal Infrmatin: Name: Address: Phne #: Years at UCSB: Cumulative GPA: E-mail: Majr(s)/Minr(s): Units Cmpleted: Tw persnal references (Different

More information

Getting Involved O. Responsibilities of a Member. People Are Depending On You. Participation Is Important. Think It Through

Getting Involved O. Responsibilities of a Member. People Are Depending On You. Participation Is Important. Think It Through f Getting Invlved O Literature Circles can be fun. It is exciting t be part f a grup that shares smething. S get invlved, read, think, and talk abut bks! Respnsibilities f a Member Remember a Literature

More information

Fall 2013 Physics 172 Recitation 3 Momentum and Springs

Fall 2013 Physics 172 Recitation 3 Momentum and Springs Fall 03 Physics 7 Recitatin 3 Mmentum and Springs Purpse: The purpse f this recitatin is t give yu experience wrking with mmentum and the mmentum update frmula. Readings: Chapter.3-.5 Learning Objectives:.3.

More information

CAUSAL INFERENCE. Technical Track Session I. Phillippe Leite. The World Bank

CAUSAL INFERENCE. Technical Track Session I. Phillippe Leite. The World Bank CAUSAL INFERENCE Technical Track Sessin I Phillippe Leite The Wrld Bank These slides were develped by Christel Vermeersch and mdified by Phillippe Leite fr the purpse f this wrkshp Plicy questins are causal

More information

LHS Mathematics Department Honors Pre-Calculus Final Exam 2002 Answers

LHS Mathematics Department Honors Pre-Calculus Final Exam 2002 Answers LHS Mathematics Department Hnrs Pre-alculus Final Eam nswers Part Shrt Prblems The table at the right gives the ppulatin f Massachusetts ver the past several decades Using an epnential mdel, predict the

More information

Lab #3: Pendulum Period and Proportionalities

Lab #3: Pendulum Period and Proportionalities Physics 144 Chwdary Hw Things Wrk Spring 2006 Name: Partners Name(s): Intrductin Lab #3: Pendulum Perid and Prprtinalities Smetimes, it is useful t knw the dependence f ne quantity n anther, like hw the

More information

IB Sports, Exercise and Health Science Summer Assignment. Mrs. Christina Doyle Seneca Valley High School

IB Sports, Exercise and Health Science Summer Assignment. Mrs. Christina Doyle Seneca Valley High School IB Sprts, Exercise and Health Science Summer Assignment Mrs. Christina Dyle Seneca Valley High Schl Welcme t IB Sprts, Exercise and Health Science! This curse incrprates the traditinal disciplines f anatmy

More information

Distributions, spatial statistics and a Bayesian perspective

Distributions, spatial statistics and a Bayesian perspective Distributins, spatial statistics and a Bayesian perspective Dug Nychka Natinal Center fr Atmspheric Research Distributins and densities Cnditinal distributins and Bayes Thm Bivariate nrmal Spatial statistics

More information

Chapter 8: The Binomial and Geometric Distributions

Chapter 8: The Binomial and Geometric Distributions Sectin 8.1: The Binmial Distributins Chapter 8: The Binmial and Gemetric Distributins A randm variable X is called a BINOMIAL RANDOM VARIABLE if it meets ALL the fllwing cnditins: 1) 2) 3) 4) The MOST

More information

Individual Events 5 I3 a 6 I4 a 8 I5 A Group Events

Individual Events 5 I3 a 6 I4 a 8 I5 A Group Events Answers: (993-94 HKMO Final Events) Created by: Mr. Francis Hung Last updated: 8 August 08 SI a I a 6 I A Individual Events I3 a 6 I4 a 8 I A 6 b 4 b B 60 b *9 see the remarks b 0 B 36 c c 0 C c 6 c 3

More information

Lab 1 The Scientific Method

Lab 1 The Scientific Method INTRODUCTION The fllwing labratry exercise is designed t give yu, the student, an pprtunity t explre unknwn systems, r universes, and hypthesize pssible rules which may gvern the behavir within them. Scientific

More information

Physics 2010 Motion with Constant Acceleration Experiment 1

Physics 2010 Motion with Constant Acceleration Experiment 1 . Physics 00 Mtin with Cnstant Acceleratin Experiment In this lab, we will study the mtin f a glider as it accelerates dwnhill n a tilted air track. The glider is supprted ver the air track by a cushin

More information

Internal vs. external validity. External validity. This section is based on Stock and Watson s Chapter 9.

Internal vs. external validity. External validity. This section is based on Stock and Watson s Chapter 9. Sectin 7 Mdel Assessment This sectin is based n Stck and Watsn s Chapter 9. Internal vs. external validity Internal validity refers t whether the analysis is valid fr the ppulatin and sample being studied.

More information

Phys. 344 Ch 7 Lecture 8 Fri., April. 10 th,

Phys. 344 Ch 7 Lecture 8 Fri., April. 10 th, Phys. 344 Ch 7 Lecture 8 Fri., April. 0 th, 009 Fri. 4/0 8. Ising Mdel f Ferrmagnets HW30 66, 74 Mn. 4/3 Review Sat. 4/8 3pm Exam 3 HW Mnday: Review fr est 3. See n-line practice test lecture-prep is t

More information

How do scientists measure trees? What is DBH?

How do scientists measure trees? What is DBH? Hw d scientists measure trees? What is DBH? Purpse Students develp an understanding f tree size and hw scientists measure trees. Students bserve and measure tree ckies and explre the relatinship between

More information

Medium Scale Integrated (MSI) devices [Sections 2.9 and 2.10]

Medium Scale Integrated (MSI) devices [Sections 2.9 and 2.10] EECS 270, Winter 2017, Lecture 3 Page 1 f 6 Medium Scale Integrated (MSI) devices [Sectins 2.9 and 2.10] As we ve seen, it s smetimes nt reasnable t d all the design wrk at the gate-level smetimes we just

More information

READING STATECHART DIAGRAMS

READING STATECHART DIAGRAMS READING STATECHART DIAGRAMS Figure 4.48 A Statechart diagram with events The diagram in Figure 4.48 shws all states that the bject plane can be in during the curse f its life. Furthermre, it shws the pssible

More information

Department: MATHEMATICS

Department: MATHEMATICS Cde: MATH 022 Title: ALGEBRA SKILLS Institute: STEM Department: MATHEMATICS Curse Descriptin: This curse prvides students wh have cmpleted MATH 021 with the necessary skills and cncepts t cntinue the study

More information

Purpose: Use this reference guide to effectively communicate the new process customers will use for creating a TWC ID. Mobile Manager Call History

Purpose: Use this reference guide to effectively communicate the new process customers will use for creating a TWC ID. Mobile Manager Call History Purpse: Use this reference guide t effectively cmmunicate the new prcess custmers will use fr creating a TWC ID. Overview Beginning n January 28, 2014 (Refer t yur Knwledge Management System fr specific

More information

If (IV) is (increased, decreased, changed), then (DV) will (increase, decrease, change) because (reason based on prior research).

If (IV) is (increased, decreased, changed), then (DV) will (increase, decrease, change) because (reason based on prior research). Science Fair Prject Set Up Instructins 1) Hypthesis Statement 2) Materials List 3) Prcedures 4) Safety Instructins 5) Data Table 1) Hw t write a HYPOTHESIS STATEMENT Use the fllwing frmat: If (IV) is (increased,

More information

CS 477/677 Analysis of Algorithms Fall 2007 Dr. George Bebis Course Project Due Date: 11/29/2007

CS 477/677 Analysis of Algorithms Fall 2007 Dr. George Bebis Course Project Due Date: 11/29/2007 CS 477/677 Analysis f Algrithms Fall 2007 Dr. Gerge Bebis Curse Prject Due Date: 11/29/2007 Part1: Cmparisn f Srting Algrithms (70% f the prject grade) The bjective f the first part f the assignment is

More information

Physics 212. Lecture 12. Today's Concept: Magnetic Force on moving charges. Physics 212 Lecture 12, Slide 1

Physics 212. Lecture 12. Today's Concept: Magnetic Force on moving charges. Physics 212 Lecture 12, Slide 1 Physics 1 Lecture 1 Tday's Cncept: Magnetic Frce n mving charges F qv Physics 1 Lecture 1, Slide 1 Music Wh is the Artist? A) The Meters ) The Neville rthers C) Trmbne Shrty D) Michael Franti E) Radiatrs

More information

making triangle (ie same reference angle) ). This is a standard form that will allow us all to have the X= y=

making triangle (ie same reference angle) ). This is a standard form that will allow us all to have the X= y= Intrductin t Vectrs I 21 Intrductin t Vectrs I 22 I. Determine the hrizntal and vertical cmpnents f the resultant vectr by cunting n the grid. X= y= J. Draw a mangle with hrizntal and vertical cmpnents

More information

Five Whys How To Do It Better

Five Whys How To Do It Better Five Whys Definitin. As explained in the previus article, we define rt cause as simply the uncvering f hw the current prblem came int being. Fr a simple causal chain, it is the entire chain. Fr a cmplex

More information

Computational modeling techniques

Computational modeling techniques Cmputatinal mdeling techniques Lecture 2: Mdeling change. In Petre Department f IT, Åb Akademi http://users.ab.fi/ipetre/cmpmd/ Cntent f the lecture Basic paradigm f mdeling change Examples Linear dynamical

More information

AP Literature and Composition. Summer Reading Packet. Instructions and Guidelines

AP Literature and Composition. Summer Reading Packet. Instructions and Guidelines AP Literature and Cmpsitin Summer Reading Packet Instructins and Guidelines Accrding t the Cllege Bard Advanced Placement prgram: "The AP English curse in Literature and Cmpsitin shuld engage students

More information

COMP 551 Applied Machine Learning Lecture 11: Support Vector Machines

COMP 551 Applied Machine Learning Lecture 11: Support Vector Machines COMP 551 Applied Machine Learning Lecture 11: Supprt Vectr Machines Instructr: (jpineau@cs.mcgill.ca) Class web page: www.cs.mcgill.ca/~jpineau/cmp551 Unless therwise nted, all material psted fr this curse

More information

Lecture 13: Markov Chain Monte Carlo. Gibbs sampling

Lecture 13: Markov Chain Monte Carlo. Gibbs sampling Lecture 13: Markv hain Mnte arl Gibbs sampling Gibbs sampling Markv chains 1 Recall: Apprximate inference using samples Main idea: we generate samples frm ur Bayes net, then cmpute prbabilities using (weighted)

More information

Biochemistry Summer Packet

Biochemistry Summer Packet Bichemistry Summer Packet Science Basics Metric Cnversins All measurements in chemistry are made using the metric system. In using the metric system yu must be able t cnvert between ne value and anther.

More information

Activity Guide Loops and Random Numbers

Activity Guide Loops and Random Numbers Unit 3 Lessn 7 Name(s) Perid Date Activity Guide Lps and Randm Numbers CS Cntent Lps are a relatively straightfrward idea in prgramming - yu want a certain chunk f cde t run repeatedly - but it takes a

More information

We can see from the graph above that the intersection is, i.e., [ ).

We can see from the graph above that the intersection is, i.e., [ ). MTH 111 Cllege Algebra Lecture Ntes July 2, 2014 Functin Arithmetic: With nt t much difficulty, we ntice that inputs f functins are numbers, and utputs f functins are numbers. S whatever we can d with

More information

COMP 551 Applied Machine Learning Lecture 5: Generative models for linear classification

COMP 551 Applied Machine Learning Lecture 5: Generative models for linear classification COMP 551 Applied Machine Learning Lecture 5: Generative mdels fr linear classificatin Instructr: Herke van Hf (herke.vanhf@mail.mcgill.ca) Slides mstly by: Jelle Pineau Class web page: www.cs.mcgill.ca/~hvanh2/cmp551

More information

ENSC Discrete Time Systems. Project Outline. Semester

ENSC Discrete Time Systems. Project Outline. Semester ENSC 49 - iscrete Time Systems Prject Outline Semester 006-1. Objectives The gal f the prject is t design a channel fading simulatr. Upn successful cmpletin f the prject, yu will reinfrce yur understanding

More information

CHM112 Lab Graphing with Excel Grading Rubric

CHM112 Lab Graphing with Excel Grading Rubric Name CHM112 Lab Graphing with Excel Grading Rubric Criteria Pints pssible Pints earned Graphs crrectly pltted and adhere t all guidelines (including descriptive title, prperly frmatted axes, trendline

More information

Trigonometric Ratios Unit 5 Tentative TEST date

Trigonometric Ratios Unit 5 Tentative TEST date 1 U n i t 5 11U Date: Name: Trignmetric Ratis Unit 5 Tentative TEST date Big idea/learning Gals In this unit yu will extend yur knwledge f SOH CAH TOA t wrk with btuse and reflex angles. This extensin

More information

Experiment #3. Graphing with Excel

Experiment #3. Graphing with Excel Experiment #3. Graphing with Excel Study the "Graphing with Excel" instructins that have been prvided. Additinal help with learning t use Excel can be fund n several web sites, including http://www.ncsu.edu/labwrite/res/gt/gt-

More information

It is compulsory to submit the assignment before filling in the exam form.

It is compulsory to submit the assignment before filling in the exam form. OMT-101 ASSIGNMENT BOOKLET Bachelr's Preparatry Prgramme PREPARATORY COURSE IN GENERAL MATHEMATICS (This assignment is valid nly upt: 1 st December, 01 And Valid fr bth Jan 01 cycle and July 01 cycle)

More information

6.3: Volumes by Cylindrical Shells

6.3: Volumes by Cylindrical Shells 6.3: Vlumes by Cylindrical Shells Nt all vlume prblems can be addressed using cylinders. Fr example: Find the vlume f the slid btained by rtating abut the y-axis the regin bunded by y = 2x x B and y =

More information

Monroe Township School District Monroe Township, New Jersey

Monroe Township School District Monroe Township, New Jersey Mnre Twnship Schl District Mnre Twnship, New Jersey Preparing fr 6 th Grade Middle Schl *PREPARATION PACKET* Summer 2014 ***SOLVE THESE PROBLEMS WITHOUT THE USE OF A CALCULATOR AND SHOW ALL WORK*** Yu

More information

/ / Chemistry. Chapter 1 Chemical Foundations

/ / Chemistry. Chapter 1 Chemical Foundations Name Chapter 1 Chemical Fundatins Advanced Chemistry / / Metric Cnversins All measurements in chemistry are made using the metric system. In using the metric system yu must be able t cnvert between ne

More information

Homology groups of disks with holes

Homology groups of disks with holes Hmlgy grups f disks with hles THEOREM. Let p 1,, p k } be a sequence f distinct pints in the interir unit disk D n where n 2, and suppse that fr all j the sets E j Int D n are clsed, pairwise disjint subdisks.

More information

This section is primarily focused on tools to aid us in finding roots/zeros/ -intercepts of polynomials. Essentially, our focus turns to solving.

This section is primarily focused on tools to aid us in finding roots/zeros/ -intercepts of polynomials. Essentially, our focus turns to solving. Sectin 3.2: Many f yu WILL need t watch the crrespnding vides fr this sectin n MyOpenMath! This sectin is primarily fcused n tls t aid us in finding rts/zers/ -intercepts f plynmials. Essentially, ur fcus

More information

Dataflow Analysis and Abstract Interpretation

Dataflow Analysis and Abstract Interpretation Dataflw Analysis and Abstract Interpretatin Cmputer Science and Artificial Intelligence Labratry MIT Nvember 9, 2015 Recap Last time we develped frm first principles an algrithm t derive invariants. Key

More information

Lesson Plan. Recode: They will do a graphic organizer to sequence the steps of scientific method.

Lesson Plan. Recode: They will do a graphic organizer to sequence the steps of scientific method. Lessn Plan Reach: Ask the students if they ever ppped a bag f micrwave ppcrn and nticed hw many kernels were unppped at the bttm f the bag which made yu wnder if ther brands pp better than the ne yu are

More information

Relationships Between Frequency, Capacitance, Inductance and Reactance.

Relationships Between Frequency, Capacitance, Inductance and Reactance. P Physics Relatinships between f,, and. Relatinships Between Frequency, apacitance, nductance and Reactance. Purpse: T experimentally verify the relatinships between f, and. The data cllected will lead

More information

Our Lady Star of the Sea Religious Education CIRCLE OF GRACE LESSON PLAN - Grade 1

Our Lady Star of the Sea Religious Education CIRCLE OF GRACE LESSON PLAN - Grade 1 Our Lady Star f the Sea Religius Educatin CIRCLE OF GRACE LESSON PLAN - Grade 1 Opening Prayer: (ech prayer) Hly Spirit (ech) Shw us the way (ech) Be with us in all we think.. d and say (ech) Amen GETTING

More information

AP Physics. Summer Assignment 2012 Date. Name. F m = = + What is due the first day of school? a. T. b. = ( )( ) =

AP Physics. Summer Assignment 2012 Date. Name. F m = = + What is due the first day of school? a. T. b. = ( )( ) = P Physics Name Summer ssignment 0 Date I. The P curriculum is extensive!! This means we have t wrk at a fast pace. This summer hmewrk will allw us t start n new Physics subject matter immediately when

More information

CHEM 103 Calorimetry and Hess s Law

CHEM 103 Calorimetry and Hess s Law CHEM 103 Calrimetry and Hess s Law Lecture Ntes March 23, 2006 Prf. Sevian Annuncements Exam #2 is next Thursday, March 30 Study guide, practice exam, and practice exam answer key are already psted n the

More information

BASD HIGH SCHOOL FORMAL LAB REPORT

BASD HIGH SCHOOL FORMAL LAB REPORT BASD HIGH SCHOOL FORMAL LAB REPORT *WARNING: After an explanatin f what t include in each sectin, there is an example f hw the sectin might lk using a sample experiment Keep in mind, the sample lab used

More information

Introduction to Models and Properties

Introduction to Models and Properties Intrductin t Mdels and Prperties Cmputer Science and Artificial Intelligence Labratry MIT Armand Slar-Lezama Nv 23, 2015 Nvember 23, 2015 1 Recap Prperties Prperties f variables Prperties at prgram pints

More information

AIP Logic Chapter 4 Notes

AIP Logic Chapter 4 Notes AIP Lgic Chapter 4 Ntes Sectin 4.1 Sectin 4.2 Sectin 4.3 Sectin 4.4 Sectin 4.5 Sectin 4.6 Sectin 4.7 4.1 The Cmpnents f Categrical Prpsitins There are fur types f categrical prpsitins. Prpsitin Letter

More information

Group Color: Subgroup Number: How Science Works. Grade 5. Module 2. Class Question: Scientist (Your Name): Teacher s Name: SciTrek Volunteer s Name:

Group Color: Subgroup Number: How Science Works. Grade 5. Module 2. Class Question: Scientist (Your Name): Teacher s Name: SciTrek Volunteer s Name: Grup Clr: Subgrup Number: Hw Science Wrks Grade 5 Mdule 2 Class Questin: Scientist (Yur Name): Teacher s Name: SciTrek Vlunteer s Name: VOCABULARY Science: The study f the material wrld using human reasn.

More information

Credits: 4 Lecture Hours: 4 Lab/Studio Hours: 0

Credits: 4 Lecture Hours: 4 Lab/Studio Hours: 0 Cde: MATH 025 Title: ELEMENTARY ALGEBRA Divisin: MATHEMATICS Department: MATHEMATICS Curse Descriptin: This curse is a review f elementary algebra and requires previus experience in algebra. The curse

More information

Part One: Heat Changes and Thermochemistry. This aspect of Thermodynamics was dealt with in Chapter 6. (Review)

Part One: Heat Changes and Thermochemistry. This aspect of Thermodynamics was dealt with in Chapter 6. (Review) CHAPTER 18: THERMODYNAMICS AND EQUILIBRIUM Part One: Heat Changes and Thermchemistry This aspect f Thermdynamics was dealt with in Chapter 6. (Review) A. Statement f First Law. (Sectin 18.1) 1. U ttal

More information

[COLLEGE ALGEBRA EXAM I REVIEW TOPICS] ( u s e t h i s t o m a k e s u r e y o u a r e r e a d y )

[COLLEGE ALGEBRA EXAM I REVIEW TOPICS] ( u s e t h i s t o m a k e s u r e y o u a r e r e a d y ) (Abut the final) [COLLEGE ALGEBRA EXAM I REVIEW TOPICS] ( u s e t h i s t m a k e s u r e y u a r e r e a d y ) The department writes the final exam s I dn't really knw what's n it and I can't very well

More information

Thermodynamics and Equilibrium

Thermodynamics and Equilibrium Thermdynamics and Equilibrium Thermdynamics Thermdynamics is the study f the relatinship between heat and ther frms f energy in a chemical r physical prcess. We intrduced the thermdynamic prperty f enthalpy,

More information

Bootstrap Method > # Purpose: understand how bootstrap method works > obs=c(11.96, 5.03, 67.40, 16.07, 31.50, 7.73, 11.10, 22.38) > n=length(obs) >

Bootstrap Method > # Purpose: understand how bootstrap method works > obs=c(11.96, 5.03, 67.40, 16.07, 31.50, 7.73, 11.10, 22.38) > n=length(obs) > Btstrap Methd > # Purpse: understand hw btstrap methd wrks > bs=c(11.96, 5.03, 67.40, 16.07, 31.50, 7.73, 11.10, 22.38) > n=length(bs) > mean(bs) [1] 21.64625 > # estimate f lambda > lambda = 1/mean(bs);

More information

I. Analytical Potential and Field of a Uniform Rod. V E d. The definition of electric potential difference is

I. Analytical Potential and Field of a Uniform Rod. V E d. The definition of electric potential difference is Length L>>a,b,c Phys 232 Lab 4 Ch 17 Electric Ptential Difference Materials: whitebards & pens, cmputers with VPythn, pwer supply & cables, multimeter, crkbard, thumbtacks, individual prbes and jined prbes,

More information

End of Course Algebra I ~ Practice Test #2

End of Course Algebra I ~ Practice Test #2 End f Curse Algebra I ~ Practice Test #2 Name: Perid: Date: 1: Order the fllwing frm greatest t least., 3, 8.9, 8,, 9.3 A. 8, 8.9,, 9.3, 3 B., 3, 8, 8.9,, 9.3 C. 9.3, 3,,, 8.9, 8 D. 3, 9.3,,, 8.9, 8 2:

More information

Hypothesis Tests for One Population Mean

Hypothesis Tests for One Population Mean Hypthesis Tests fr One Ppulatin Mean Chapter 9 Ala Abdelbaki Objective Objective: T estimate the value f ne ppulatin mean Inferential statistics using statistics in rder t estimate parameters We will be

More information

IAML: Support Vector Machines

IAML: Support Vector Machines 1 / 22 IAML: Supprt Vectr Machines Charles Suttn and Victr Lavrenk Schl f Infrmatics Semester 1 2 / 22 Outline Separating hyperplane with maimum margin Nn-separable training data Epanding the input int

More information

Math Foundations 20 Work Plan

Math Foundations 20 Work Plan Math Fundatins 20 Wrk Plan Units / Tpics 20.8 Demnstrate understanding f systems f linear inequalities in tw variables. Time Frame December 1-3 weeks 6-10 Majr Learning Indicatrs Identify situatins relevant

More information

CS 109 Lecture 23 May 18th, 2016

CS 109 Lecture 23 May 18th, 2016 CS 109 Lecture 23 May 18th, 2016 New Datasets Heart Ancestry Netflix Our Path Parameter Estimatin Machine Learning: Frmally Many different frms f Machine Learning We fcus n the prblem f predictin Want

More information

AP Statistics Notes Unit Two: The Normal Distributions

AP Statistics Notes Unit Two: The Normal Distributions AP Statistics Ntes Unit Tw: The Nrmal Distributins Syllabus Objectives: 1.5 The student will summarize distributins f data measuring the psitin using quartiles, percentiles, and standardized scres (z-scres).

More information

Instructional Plan. Representational/Drawing Level

Instructional Plan. Representational/Drawing Level Instructinal Plan Representatinal/Drawing Level Name f Math Skill/Cncept: Divisin Prcess and Divisin with Remainders Prerequisite Skills Needed: 1.) Mastery f dividing cncrete bjects int equal grups. 2.)

More information

3. Classify the following Numbers (Counting (natural), Whole, Integers, Rational, Irrational)

3. Classify the following Numbers (Counting (natural), Whole, Integers, Rational, Irrational) After yu cmplete each cncept give yurself a rating 1. 15 5 2 (5 3) 2. 2 4-8 (2 5) 3. Classify the fllwing Numbers (Cunting (natural), Whle, Integers, Ratinal, Irratinal) a. 7 b. 2 3 c. 2 4. Are negative

More information

Physics 2B Chapter 23 Notes - Faraday s Law & Inductors Spring 2018

Physics 2B Chapter 23 Notes - Faraday s Law & Inductors Spring 2018 Michael Faraday lived in the Lndn area frm 1791 t 1867. He was 29 years ld when Hand Oersted, in 1820, accidentally discvered that electric current creates magnetic field. Thrugh empirical bservatin and

More information

PHYS 314 HOMEWORK #3

PHYS 314 HOMEWORK #3 PHYS 34 HOMEWORK #3 Due : 8 Feb. 07. A unifrm chain f mass M, lenth L and density λ (measured in k/m) hans s that its bttm link is just tuchin a scale. The chain is drpped frm rest nt the scale. What des

More information

B. Definition of an exponential

B. Definition of an exponential Expnents and Lgarithms Chapter IV - Expnents and Lgarithms A. Intrductin Starting with additin and defining the ntatins fr subtractin, multiplicatin and divisin, we discvered negative numbers and fractins.

More information

CHAPTER 2 Algebraic Expressions and Fundamental Operations

CHAPTER 2 Algebraic Expressions and Fundamental Operations CHAPTER Algebraic Expressins and Fundamental Operatins OBJECTIVES: 1. Algebraic Expressins. Terms. Degree. Gruping 5. Additin 6. Subtractin 7. Multiplicatin 8. Divisin Algebraic Expressin An algebraic

More information

Admin. MDP Search Trees. Optimal Quantities. Reinforcement Learning

Admin. MDP Search Trees. Optimal Quantities. Reinforcement Learning Admin Reinfrcement Learning Cntent adapted frm Berkeley CS188 MDP Search Trees Each MDP state prjects an expectimax-like search tree Optimal Quantities The value (utility) f a state s: V*(s) = expected

More information

Who is the Holy Spirit?

Who is the Holy Spirit? ill at w w this h t h in SS est abut erence u O q L G ka iff hink : As m t t es a d K S k A the n ma. wn help rmati ur Jesus. y f t u inf e life ab h iple in t alk a disc f T : RE ce as ece t i A p SH

More information

Please Stop Laughing at Me and Pay it Forward Final Writing Assignment

Please Stop Laughing at Me and Pay it Forward Final Writing Assignment Kirk Please Stp Laughing at Me and Pay it Frward Final Writing Assignment Our fcus fr the past few mnths has been n bullying and hw we treat ther peple. We ve played sme games, read sme articles, read

More information

Algebra2/Trig: Trig Unit 2 Packet

Algebra2/Trig: Trig Unit 2 Packet Algebra2/Trig: Trig Unit 2 Packet In this unit, students will be able t: Learn and apply c-functin relatinships between trig functins Learn and apply the sum and difference identities Learn and apply the

More information

Chapter 8 Predicting Molecular Geometries

Chapter 8 Predicting Molecular Geometries Chapter 8 Predicting Mlecular Gemetries 8-1 Mlecular shape The Lewis diagram we learned t make in the last chapter are a way t find bnds between atms and lne pais f electrns n atms, but are nt intended

More information

New SAT Math Diagnostic Test

New SAT Math Diagnostic Test New SAT Math Diagnstic Test Answer Key Slve and Graph Linear Equatins 1. Slve fr z: 4 + z (+ z) z (5 ) = 6 7 1. z = 61. Given the table f values: x -9 0 9 y 11 8 7?. y = 5 If the values in the table represent

More information

Flipping Physics Lecture Notes: Simple Harmonic Motion Introduction via a Horizontal Mass-Spring System

Flipping Physics Lecture Notes: Simple Harmonic Motion Introduction via a Horizontal Mass-Spring System Flipping Physics Lecture Ntes: Simple Harmnic Mtin Intrductin via a Hrizntal Mass-Spring System A Hrizntal Mass-Spring System is where a mass is attached t a spring, riented hrizntally, and then placed

More information

Sections 15.1 to 15.12, 16.1 and 16.2 of the textbook (Robbins-Miller) cover the materials required for this topic.

Sections 15.1 to 15.12, 16.1 and 16.2 of the textbook (Robbins-Miller) cover the materials required for this topic. Tpic : AC Fundamentals, Sinusidal Wavefrm, and Phasrs Sectins 5. t 5., 6. and 6. f the textbk (Rbbins-Miller) cver the materials required fr this tpic.. Wavefrms in electrical systems are current r vltage

More information

MATHEMATICS SYLLABUS SECONDARY 5th YEAR

MATHEMATICS SYLLABUS SECONDARY 5th YEAR Eurpean Schls Office f the Secretary-General Pedaggical Develpment Unit Ref. : 011-01-D-8-en- Orig. : EN MATHEMATICS SYLLABUS SECONDARY 5th YEAR 6 perid/week curse APPROVED BY THE JOINT TEACHING COMMITTEE

More information

Being able to connect displacement, speed, and acceleration is fundamental to working

Being able to connect displacement, speed, and acceleration is fundamental to working Chapter The Big Three: Acceleratin, Distance, and Time In This Chapter Thinking abut displacement Checking ut speed Remembering acceleratin Being able t cnnect displacement, speed, and acceleratin is undamental

More information

Chapter 3: Cluster Analysis

Chapter 3: Cluster Analysis Chapter 3: Cluster Analysis } 3.1 Basic Cncepts f Clustering 3.1.1 Cluster Analysis 3.1. Clustering Categries } 3. Partitining Methds 3..1 The principle 3.. K-Means Methd 3..3 K-Medids Methd 3..4 CLARA

More information

Physics 101 Math Review. Solutions

Physics 101 Math Review. Solutions Physics 0 Math eview Slutins . The fllwing are rdinary physics prblems. Place the answer in scientific ntatin when apprpriate and simplify the units (Scientific ntatin is used when it takes less time t

More information

SPECIMEN. Candidate Surname. Candidate Number

SPECIMEN. Candidate Surname. Candidate Number Candidate Frename General Certificate f Secndary Educatin Mdern Freign Languages Prtuguese - Writing Specimen Paper Candidates answer n the questin paper. Additinal materials: nne Centre Number Candidate

More information

City of Angels School Independent Study Los Angeles Unified School District

City of Angels School Independent Study Los Angeles Unified School District City f Angels Schl Independent Study Ls Angeles Unified Schl District INSTRUCTIONAL GUIDE Algebra 1B Curse ID #310302 (CCSS Versin- 06/15) This curse is the secnd semester f Algebra 1, fulfills ne half

More information

x 1 Outline IAML: Logistic Regression Decision Boundaries Example Data

x 1 Outline IAML: Logistic Regression Decision Boundaries Example Data Outline IAML: Lgistic Regressin Charles Suttn and Victr Lavrenk Schl f Infrmatics Semester Lgistic functin Lgistic regressin Learning lgistic regressin Optimizatin The pwer f nn-linear basis functins Least-squares

More information

CHAPTER 3 INEQUALITIES. Copyright -The Institute of Chartered Accountants of India

CHAPTER 3 INEQUALITIES. Copyright -The Institute of Chartered Accountants of India CHAPTER 3 INEQUALITIES Cpyright -The Institute f Chartered Accuntants f India INEQUALITIES LEARNING OBJECTIVES One f the widely used decisin making prblems, nwadays, is t decide n the ptimal mix f scarce

More information

Math 9 Year End Review Package. (b) = (a) Side length = 15.5 cm ( area ) (b) Perimeter = 4xside = 62 m

Math 9 Year End Review Package. (b) = (a) Side length = 15.5 cm ( area ) (b) Perimeter = 4xside = 62 m Math Year End Review Package Chapter Square Rts and Surface Area KEY. Methd #: cunt the number f squares alng the side ( units) Methd #: take the square rt f the area. (a) 4 = 0.7. = 0.. _Perfect square

More information