1. Homepage
  2. Programming
  3. COMP9417 - Machine Learning Homework 0: Revision - Calculus, Probability, Linear Algebra

COMP9417 - Machine Learning Homework 0: Revision - Calculus, Probability, Linear Algebra

Engage in a Conversation
AustraliaUNSWCOMP9417Machine LearningCalculus Probability Linear Algebra

COMP9417 - Machine Learning

Homework 0: Revision CourseNana.COM

Introduction

The goal of this homework is to review some important mathematical concepts that are used regularly in machine learning, and which are assumed knowledge for the course. If you find yourself struggling significantly with any aspects of this homework, please reach out to course staff so that we can better help you prepare for the course. Please also note that we have posted some helpful resources under the Week 0 tab on Moodle which may be of use to you for this homework. CourseNana.COM

What to Submit • A single PDF file which contains solutions to each question. For each question, provide your solution in the form of text and requested plots. For any question in which you use code, provide a copy of your code at the bottom of the relevant section. • You are free to format your work in any way you think is appropriate. This can include using LATEX, or taking pictures of handwritten work, or writing your solutions up using a tablet. Please ensure that your work is neat, and start each question on a new page. CourseNana.COM

When and Where to Submit • Due date: Thursday February 16th, 2023 by 5:00pm. • For this homework, we will not accept late submissions. • Submissions must be through Moodle - email submissions will be ignored. CourseNana.COM

Question 1. (Calculus Review) (a) Consider the function f (x, y) = a1 x2 y 2 + a4 xy + a5 x + a7 compute all first and second order derivatives of f with respect to x and y. (b) Consider the function f (x, y) = a1 x2 y 2 + a2 x2 y + a3 xy 2 + a4 xy + a5 x + a6 y + a7 compute all first and second order derivatives of f with respect to x and y. (c) Consider the logistic sigmoid: σ(x) = show that σ 0 (x) =∂σ∂x= σ(x)(1 − σ(x)) CourseNana.COM

(d) Consider the following functions: CourseNana.COM

y1 = 4x2 − 3x + 3 y2 = 3x4 − 2x3 y3 = 4x + 1 − x y4 = x + x−1 CourseNana.COM

Using the second derivative test, find all local maximum and minimum points. Question 2. (Probability Review) (a) A manufacturing company has two retail outlets. It is known that 20% of potential customers buy products from Outlet I alone, 10% buy from both I and II, and 40% buy from neither. Let A denote the event that a potential customer, randomly chosen, buys from outel I, and B the event that the customer buys from outlet II. Compute the following probabilities: P (A),P (B),P (A ∪ B),P (A¯ ∪ B) CourseNana.COM

(b) Let X, Y be two discrete random variables, with joint probability mass function P (X = x, Y = y) displayed in the table below: CourseNana.COM

y 1 2 3 1 1=6 1=12 1=12 x 2 1=6 0 1=6 3 0 r 0 CourseNana.COM

Compute the following quantities: CourseNana.COM

(i) r (ii)P (X = 2, Y = 3) (iii)P (X = 3) and P (X = 3|Y = 2) (iv)E[X], E[Y ] and E[XY ] (v)E[X 2 ], E[Y 2 ] (vi)Cov(X, Y ) (vii)Var(X) and Var(Y ) (viii)Corr(X, Y ) (ix)E[X + Y ], E[X + Y 2 ], Var(X + Y ) and Var(X + Y 2 ). CourseNana.COM

Question 3. (Linear Algebra Review) (a) Write down the dimensions of the following objects: CourseNana.COM

(b) Consider the following objects: CourseNana.COM

Compute the following: (i) AB and BA (ii) AC and CA (iii) AD and DA (iv) DC and CD and DT C (v) Bu and uB (vi) Au (vii) Av and vA (viii) Av + Cv CourseNana.COM

Compute the following: (i) kuk1 , kuk2 , kuk22 , kuk∞ (ii) kvk1 , kvk2 , kvk22 , kvk∞ (iii) kv + wk1 , kv + wk2 , kv + wk∞ (iv) kAvk2 , kA(v − w)k∞ (d) Consider the following vectors in R2 CourseNana.COM

Compute the dot products between all pairs of vectors. Note that the dot product may be written using the following equivalent forms: hx, yi = x · y = xT y. Then compute the angle between the vectors and plot. (e) Dot products are extremely important in machine learning, explain what it means for a dot product to be zero, positive or negative. (f) Consider the 2 × 2 matrix: CourseNana.COM

Compute the inverse of A. (g) Consider the 2 × 2 matrix CourseNana.COM

Compute its inverse A−1 . (h) Let X be a matrix (of any dimension), show that X T X is always symmetric. CourseNana.COM

Get in Touch with Our Experts

WeChat WeChat
Whatsapp WhatsApp
Australia代写,UNSW代写,COMP9417代写,Machine Learning代写,Calculus代写, Probability代写, Linear Algebra代写,Australia代编,UNSW代编,COMP9417代编,Machine Learning代编,Calculus代编, Probability代编, Linear Algebra代编,Australia代考,UNSW代考,COMP9417代考,Machine Learning代考,Calculus代考, Probability代考, Linear Algebra代考,Australiahelp,UNSWhelp,COMP9417help,Machine Learninghelp,Calculushelp, Probabilityhelp, Linear Algebrahelp,Australia作业代写,UNSW作业代写,COMP9417作业代写,Machine Learning作业代写,Calculus作业代写, Probability作业代写, Linear Algebra作业代写,Australia编程代写,UNSW编程代写,COMP9417编程代写,Machine Learning编程代写,Calculus编程代写, Probability编程代写, Linear Algebra编程代写,Australiaprogramming help,UNSWprogramming help,COMP9417programming help,Machine Learningprogramming help,Calculusprogramming help, Probabilityprogramming help, Linear Algebraprogramming help,Australiaassignment help,UNSWassignment help,COMP9417assignment help,Machine Learningassignment help,Calculusassignment help, Probabilityassignment help, Linear Algebraassignment help,Australiasolution,UNSWsolution,COMP9417solution,Machine Learningsolution,Calculussolution, Probabilitysolution, Linear Algebrasolution,