Starting from:

$30

AI61003- Assignment 1: Linear Algebra for AI and ML Solved

ANSWER ALL THE QUESTIONS

Let Pn(R) denote the set of all polynomials in indeterminate x with real coefficients.Prove that Pn(R) is a real vector space.
Define a function F : Pn(R) → R as
In other words, the function assigns every polynomial with the value of its derivative at x = 0. Prove that this is a linear functional.

Find an inner product representation for the linear functional in the abovequestion.
Let x ∈ Rn and 1n be the n-vector with all entries 1. Let avg(x) and std(x) be as defined in the class. Then for any α,β ∈ R prove the following.avg(αx + β1n) = αavg(x) + β
std(αx + β1n) = |α|std(x)
Let w ∈ Rn be a given vector with wi > 0 for i = 1,2,...,n. Then for any x ∈ Rn, define the function
Show that the function ∥ · ∥w defines a norm called as weighted norm.

Discuss in details the existence and uniqueness conditions for system of linearequations where Ax = b where A ∈ Rm×n and b ∈ Rm are given matrices.
Prove that matrix multiplication is associative; however matrix multiplicationis not commutative. Further, let A ∈ Rp×q,B ∈ Rq×r,C ∈ Rr×t be given matrices. Derive conditions on p,q,r,t such that (AB)C is computationally more efficient than A(BC).
Define left inverse of a matrix A. Determine in which of the following cases left inverse exists. In each of the following cases, is it possible to characterize all the left inverses if one left inverse exists.
1

0 (a) A = 0

 

1

0

                                   2     0 

(b) A = 0 −2

                                       3     3

Let A ∈ Rn×n be an invertible matrix. Construct the matrices Lij discussed in the class and write down the procedure to compute LU decomposition of A.
Consider k-means clustering algorithm as follows with the standard terminology and notation introduced in the class as follows.
Input: x1,x2,...,xN ∈ Rn. Initial list of k cluster representatives z1,...,zk.

Output: Cluster assignment c1,c2,...,cN

Repeat until convergence

Cluster assignment based on cluster representatives.
Update cluster representatives.
In Step 1, what is the computational complexity?(b) In Step 2, what is the computational complexity?
(c) Assuming 10 iterations are performed, how many number of computations are involved to obtain the cluster assignment for the given data points?

Image Clustering: Consider the MNIST database of handwritten digits. Choose 100 images of each digit from this data set. In the notation of Problem 8Item.15, determine values N and n. Fix a reasonable convergence criterion.
Perform the following exercises (a),(b) and (c) in two cases: case (i) random initialization of cluster representatives; case(ii) choose cluster representatives from the given data set.

For k = 20, run the above algorithm to cluster the given images into 20 clusters. Plot the cluster representatives after the algorithm converges. Count the number of iterations.
Choose 50 images (not chosen previously) from the MNIST data set randomly and assign the clusters to these test  What is the accuracy of cluster assignment?
For k = 5 to k = 20, tabulate the values of Jclust and discuss what may be the optimal size of number of clusters.
Does the choice of initial condition have any effect on the performance of k-means clustering algorithm?

Document Clustering: Collect the set of documents form Wikipedia with the following titles:
Linear algebra

Data Science

Artificial intelligence

European Central Bank

Financial technology

International Monetary Fund

Basketball Swimming

Cricket

Vectorize the documents with TF-IDF vectorizer (Word Frequency Vectors) and perform the following operations.

Apply k-means clustering on the vectorized data for k = 4,k = 8andk =
12.

Find the document-cluster association (Which document belongs to whichcluster) for each k in the above clustering.
Out of the three k values which one is better for the given data and why?
Link for tutorial video for this problem: https://www.youtube.com/watch?v=YcaMlHtBdp4

More products