Self assessment due: Monday 4/29/2019 at 11:59pm (submit via Gradescope)

Similar documents
Written HW 9 Sol. CS 188 Fall Introduction to Artificial Intelligence

Hidden Markov Models

Two Popular Bayesian Estimators: Particle and Kalman Filters. McGill COMP 765 Sept 14 th, 2017

Lecture 2-1 Kinematics in One Dimension Displacement, Velocity and Acceleration Everything in the world is moving. Nothing stays still.

Overview. COMP14112: Artificial Intelligence Fundamentals. Lecture 0 Very Brief Overview. Structure of this course

Estimation of Poses with Particle Filters

Some Basic Information about M-S-D Systems

Phys1112: DC and RC circuits

Sequential Importance Resampling (SIR) Particle Filter

Viterbi Algorithm: Background

SOLUTIONS TO ECE 3084

Let us start with a two dimensional case. We consider a vector ( x,

Two Coupled Oscillators / Normal Modes

Block Diagram of a DCS in 411

UNIVERSITY OF CALIFORNIA College of Engineering Department of Electrical Engineering and Computer Sciences EECS 121 FINAL EXAM

Announcements. Recap: Filtering. Recap: Reasoning Over Time. Example: State Representations for Robot Localization. Particle Filtering

23.2. Representing Periodic Functions by Fourier Series. Introduction. Prerequisites. Learning Outcomes

Macroeconomic Theory Ph.D. Qualifying Examination Fall 2005 ANSWER EACH PART IN A SEPARATE BLUE BOOK. PART ONE: ANSWER IN BOOK 1 WEIGHT 1/3

Math 2142 Exam 1 Review Problems. x 2 + f (0) 3! for the 3rd Taylor polynomial at x = 0. To calculate the various quantities:

5.1 - Logarithms and Their Properties

dy dx = xey (a) y(0) = 2 (b) y(1) = 2.5 SOLUTION: See next page

Solutions from Chapter 9.1 and 9.2

2.7. Some common engineering functions. Introduction. Prerequisites. Learning Outcomes

CHEAPEST PMT ONLINE TEST SERIES AIIMS/NEET TOPPER PREPARE QUESTIONS

Problem Set 5. Graduate Macro II, Spring 2017 The University of Notre Dame Professor Sims

A First Course on Kinetics and Reaction Engineering. Class 19 on Unit 18

1. Kinematics I: Position and Velocity

CS 4495 Computer Vision Tracking 1- Kalman,Gaussian

EE100 Lab 3 Experiment Guide: RC Circuits

Lecture 3: Exponential Smoothing

Spring Ammar Abu-Hudrouss Islamic University Gaza

Smoothing. Backward smoother: At any give T, replace the observation yt by a combination of observations at & before T

!!"#"$%&#'()!"#&'(*%)+,&',-)./0)1-*23)

Biol. 356 Lab 8. Mortality, Recruitment, and Migration Rates

8. Basic RL and RC Circuits

Using the Kalman filter Extended Kalman filter

d = ½(v o + v f) t distance = ½ (initial velocity + final velocity) time

Notes for Lecture 17-18

GMM - Generalized Method of Moments

Online Convex Optimization Example And Follow-The-Leader

RL Lecture 7: Eligibility Traces. R. S. Sutton and A. G. Barto: Reinforcement Learning: An Introduction 1

Announcements: Warm-up Exercise:

4.1 - Logarithms and Their Properties

Ensamble methods: Bagging and Boosting

Temporal probability models

20. Applications of the Genetic-Drift Model

Chapter 15: Phenomena. Chapter 15 Chemical Kinetics. Reaction Rates. Reaction Rates R P. Reaction Rates. Rate Laws

Matlab and Python programming: how to get started

Ensamble methods: Boosting

We just finished the Erdős-Stone Theorem, and ex(n, F ) (1 1/(χ(F ) 1)) ( n

Midterm Exam Review Questions Free Response Non Calculator

State-Space Models. Initialization, Estimation and Smoothing of the Kalman Filter

Module 2 F c i k c s la l w a s o s f dif di fusi s o i n

Learning Objectives: Practice designing and simulating digital circuits including flip flops Experience state machine design procedure

Math 2214 Solution Test 1A Spring 2016

Math 334 Test 1 KEY Spring 2010 Section: 001. Instructor: Scott Glasgow Dates: May 10 and 11.

A Bayesian Approach to Spectral Analysis

23.5. Half-Range Series. Introduction. Prerequisites. Learning Outcomes

Temporal probability models. Chapter 15, Sections 1 5 1

Problem Set 11(Practice Problems) Spring 2014

Probabilistic Robotics SLAM

Cosumnes River College Principles of Macroeconomics Problem Set 1 Due January 30, 2017

Math 105 Second Midterm March 16, 2017

Ground Rules. PC1221 Fundamentals of Physics I. Kinematics. Position. Lectures 3 and 4 Motion in One Dimension. A/Prof Tay Seng Chuan

The equation to any straight line can be expressed in the form:

Lab #2: Kinematics in 1-Dimension

Probabilistic Robotics The Sparse Extended Information Filter

MATH 128A, SUMMER 2009, FINAL EXAM SOLUTION

Instructor: Barry McQuarrie Page 1 of 5

15. Bicycle Wheel. Graph of height y (cm) above the axle against time t (s) over a 6-second interval. 15 bike wheel

HOMEWORK # 2: MATH 211, SPRING Note: This is the last solution set where I will describe the MATLAB I used to make my pictures.

Probabilistic Robotics SLAM

Homework sheet Exercises done during the lecture of March 12, 2014

Finish reading Chapter 2 of Spivak, rereading earlier sections as necessary. handout and fill in some missing details!

T L. t=1. Proof of Lemma 1. Using the marginal cost accounting in Equation(4) and standard arguments. t )+Π RB. t )+K 1(Q RB

SPH3U: Projectiles. Recorder: Manager: Speaker:

Final Spring 2007

Graphical Event Models and Causal Event Models. Chris Meek Microsoft Research

Stochastic models and their distributions

Hamilton- J acobi Equation: Weak S olution We continue the study of the Hamilton-Jacobi equation:

IB Physics Kinematics Worksheet

Chapter 12: Velocity, acceleration, and forces

Math 116 Practice for Exam 2

Reading from Young & Freedman: For this topic, read sections 25.4 & 25.5, the introduction to chapter 26 and sections 26.1 to 26.2 & 26.4.

KEY. Math 334 Midterm I Fall 2008 sections 001 and 003 Instructor: Scott Glasgow

KEY. Math 334 Midterm III Fall 2008 sections 001 and 003 Instructor: Scott Glasgow

Comparing Means: t-tests for One Sample & Two Related Samples

The average rate of change between two points on a function is d t

NEWTON S SECOND LAW OF MOTION

dt = C exp (3 ln t 4 ). t 4 W = C exp ( ln(4 t) 3) = C(4 t) 3.

KINEMATICS IN ONE DIMENSION

Solution: b All the terms must have the dimension of acceleration. We see that, indeed, each term has the units of acceleration

Math 115 Final Exam December 14, 2017

A Specification Test for Linear Dynamic Stochastic General Equilibrium Models

V L. DT s D T s t. Figure 1: Buck-boost converter: inductor current i(t) in the continuous conduction mode.

Section 3.8, Mechanical and Electrical Vibrations

Math 111 Midterm I, Lecture A, version 1 -- Solutions January 30 th, 2007

6.003 Homework #8 Solutions

Introduction to Mobile Robotics

Transcription:

CS 188 Spring 2019 Inroducion o Arificial Inelligence Wrien HW 10 Due: Monday 4/22/2019 a 11:59pm (submi via Gradescope). Leave self assessmen boxes blank for his due dae. Self assessmen due: Monday 4/29/2019 a 11:59pm (submi via Gradescope) For he self assessmen, fill in he self assessmen boxes in your original submission (you can download a PDF copy of your submission from Gradescope be sure o delee any exra ile pages ha Gradescope aaches). For each subpar where your original answer was correc, wrie correc. Oherwise, wrie and explain he correc answer. Do no leave any boxes empy. If you did no submi he homework (or skipped some quesions) bu wish o receive credi for he selfassessmen, we ask ha you firs complee he homework wihou looking a he soluions, and hen perform he self assessmen aferwards. Policy: Can be solved in groups (acknowledge collaboraors) bu mus be wrien up individually Submission: Your submission should be a PDF ha maches his emplae. Each page of he PDF should align wih he corresponding page of he emplae (page 1 has name/collaboraors, quesion 1 begins on page 2, ec.). Do no reorder, spli, combine, or add exra pages. The inenion is ha you prin ou he emplae, wrie on he page in pen/pencil, and hen scan or ake picures of he pages o make your submission. You may also fill ou his emplae digially (e.g. using a able.) Firs name Las name SID Collaboraors 1

Q1. Paricle Filering: Where are he Two Cars? As before, we are rying o esimae he locaion of cars in a ciy, bu now, we model wo cars joinly, i.e. car i for i {1, 2}. The modified HMM model is as follows: he locaion of car i S (i) he noisy locaion of he car i from he signal srengh a a nearby cell phone ower G (i) he noisy locaion of car i from GPS X (1) 1 X (1) X (1) +1 S (1) S (2) 1 G (1) S (1) S (1) 1 G (1) +1 G (1) +1 1 G (2) S (2) S (2) 1 G (2) +1 G (2) +1 X (2) 1 X (2) X (2) +1 d D(d) E L (d) E N (d) E G (d) -4 0.05 0 0.02 0-3 0.10 0 0.04 0.03-2 0.25 0.05 0.09 0.07-1 0.10 0.10 0.20 0.15 0 0 0.70 0.30 0.50 1 0.10 0.10 0.20 0.15 2 0.25 0.05 0.09 0.07 3 0.10 0 0.04 0.03 4 0.05 0 0.02 0 The signal srengh from one car ges noisier if he oher car is a he same locaion. Thus, he observaion S (i) depends on he curren sae of he oher car X (j), j i. The ransiion is modeled using a drif model D, he GPS observaion G (i) using he error model E G, and he observaion S (i) using one of he error models E L or E N, depending on he car s speed and he relaive locaion of boh cars. These drif and error models are in he able above. The ransiion and observaion models are: P (S (i) P ( 1, X(i) P (G (i) 1 ) = D(X(i), X (j) ) = 1 ) { E N ( S (i) ), if 1 2 or X(i) = X (j) E L ( ) = E G ( G (i) ). S (i) ), oherwise Throughou his problem you may give answers eiher as unevaluaed numeric expressions (e.g. 0.1 0.5) or as numeric values (e.g. 0.05). The quesions are decoupled. (a) Assume ha a = 3, we have he single paricle 3 = 1, X (2) 3 = 2). (i) Wha is he probabiliy ha his paricle becomes 4 = 3, X (2) 4 = 3) afer passing i hrough he dynamics model? also Answer: (ii) Assume ha here are no sensor readings a = 4. Wha is he join probabiliy ha he original single paricle (from = 3) becomes 4 = 3, X (2) 4 = 3) and hen becomes 5 = 4, X (2) 5 = 4)? Answer: Self assessmen If correc, wrie correc in he box. Oherwise, wrie and explain he correc answer. 2

For he remaining of his problem, we will be using 2 paricles a each ime sep. (b) A = 6, we have paricles [ 6 = 3, X (2) 6 = 0), 6 = 3, X (2) 6 = 5)]. Suppose ha afer weighing, resampling, and ransiioning from = 6 o = 7, he paricles become [ 7 = 2), 7 = 1)]. (i) A = 7, you ge he observaions S (1) 7 = 2, G (1) 7 = 2, S (2) 7 = 2, G (2) 7 = 2. Wha is he weigh of each paricle? Paricle Weigh 7 = 2) 7 = 1) (ii) Suppose boh cars cell phones died so you only ge he observaions G (1) 7 = 2, G (2) 7 = 2. Wha is he weigh of each paricle? Paricle Weigh 7 = 2) 7 = 1) Self assessmen If correc, wrie correc in he box. Oherwise, wrie and explain he correc answer. (c) To decouple his quesion, assume ha you go he following weighs for he wo paricles. Paricle Weigh 7 = 2) 0.09 7 = 1) 0.01 Wha is he belief for he locaion of car 1 and car 2 a = 7? Locaion P 7 ) P (X(2) 7 ) 7 = 1 7 = 2 7 = 4 Self assessmen If correc, wrie correc in he box. Oherwise, wrie and explain he correc answer. 3

Q2. Naive Bayes Your friend claims ha he can wrie an effecive Naive Bayes spam deecor wih only hree feaures: he hour of he day ha he email was received (H {1, 2,, 24}), wheher i conains he word viagra (W {yes, no}), and wheher he email address of he sender is Known in his address book, Seen before in his inbox, or Unseen before (E {K, S, U}). (a) Flesh ou he following informaion abou his Bayes ne: Graph srucure: Parameers: Size of he se of parameers: Self assessmen If correc, wrie correc in he box. Oherwise, wrie and explain he correc answer. Suppose now ha you labeled hree of he emails in your mailbox o es his idea: spam or ham? H W E spam 3 yes S ham 14 no K ham 15 no K (b) Use he hree insances o esimae he maximum likelihood parameers. Self assessmen If correc, wrie correc in he box. Oherwise, wrie and explain he correc answer. (c) Using he maximum likelihood parameers, find he prediced class of a new daapoin wih H = 3, W = no, E = U. Self assessmen If correc, wrie correc in he box. Oherwise, wrie and explain he correc answer. 4

(d) Now use he hree o esimae he parameers using Laplace smoohing and k = 2. Do no forge o smooh boh he class prior parameers and he feaure values parameers. Self assessmen If correc, wrie correc in he box. Oherwise, wrie and explain he correc answer. (e) Using he parameers obained wih Laplace smoohing, find he prediced class of a new daapoin wih H = 3, W = no, E = U. Self assessmen If correc, wrie correc in he box. Oherwise, wrie and explain he correc answer. (f) You observe ha you end o receive spam emails in baches. In paricular, if you receive one spam message, he nex message is more likely o be a spam message as well. Specify a new graphical ha mos naurally capures his phenomenon. Graph srucure: Parameers: Size of he se of parameers: Self assessmen If correc, wrie correc in he box. Oherwise, wrie and explain he correc answer. 5