COEN 140 Machine Learning and Data Mining (Solution)

$ 20.99
Category:

Description

Lab Assignment #2: Linear Algebra

Guideline: Submit to Camino a pdf report with answers to the following questions. Also submit all the source code needed to generate these answers as a separate zip file to Camino.
Note: matrix and vector operations can be found in lecture slides COEN140_02_LinearAlgebraReview.pdf.

1. Create a 2Γ—5 matrix 𝐀 with elements as random float numbers from 0 to 1. Print the rank of 𝐀.

Let 𝐁 = 𝐀𝐀𝑇, find the shape and rank of 𝐁

Let 𝐂 = 𝐀𝑇𝐀, find the shape and rank of 𝐂

2. Create a 3Γ—5 matrix 𝐗 with elements as random integers from 0 to 10, and find the dimension (shape) of 𝐀 = 𝐗𝐗𝑇 by coding;

Create a 3Γ—1 column vector 𝐰 with elements as random integers from 0 to 10, and find the dimension of 𝐀𝐰 by coding;

Find the dimension of 𝐰𝑇𝐀 by coding;

Find the dimension of 𝐰𝑇𝐀𝐰 by coding.

Find a way (by coding) to verify that 𝐗𝐗𝑇 is symmetric.

Calculate π€βˆ’1. Print π€βˆ’1𝐀 and π€π€βˆ’1.

3. Create a 5Γ—1 column vector 𝐱 with elements as random float numbers from 0 to 1. Calculate 𝐱𝐱𝑇 by coding. What do you think is the rank of 𝐱𝐱𝑇?

4. Create a 5Γ—5 identity matrix 𝐈 and print it.

Reviews

There are no reviews yet.

Be the first to review “COEN 140 Machine Learning and Data Mining (Solution)”

Your email address will not be published. Required fields are marked *