Mat3004 17bit0296 PDF

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 10

MAT3004-

APPLIED LINEAR ALGEBRA

DIGITAL ASSIGNMENT

NAME: VENKAT SUMANTH

REGISTRATION N0-17BIT0296
SUBMITTED TO-PROFESSOR PRAVEEN T

SLOT-C1+TCC1

APPLICATION 1-

IMAGE PROCESSING AND LINEAR ALGEBRA

- A software that changes the appearance of a picture or part of a picture by


adjusting the shades and shades of the pixels in some way. Channels are utilized to
build brilliance and differentiation just as to change it up of surfaces, tones and
embellishments to an image.

- The color of the image can be expressed as three matrices R,G,B where Rij, Gij and
Bij are the amount of red, green and blue in the picture at position (i,j).

- A picture of size m*n can be expressed as the matrix of the same size. Suppose we
have 2*2 Matrix then the Rij, Gij and Bij can put together as
- The picture can be thought as an element of linear space with discretized co-
ordinates. The images can be scaled on various subspaces and make linear
combination. Various actions such as scaling, projection and the rotation can be
applied using the Basics of Linear Algebra.

- Consider the above two images where in both are manipulated from their original
state. By finding the dimensions of the given picture and putting it under
computation is bound to change the sub matrix of the original matrix of the image
expressing the Rij, Gij and Bij values.

- In terms of linear algebra while applying the filter it’s bound to change the each
pixel value of the matrix. As explained before, the input of this function can be just a
pixel like the adjustment of brightness, or a sub matrix of pixels like the blur, where
the order of the sub matrix will depend on the blur ratio.
𝑝11 ⋯ 𝑝1𝑁
[ ⋮ ⋱ ⋮ ]
𝑝𝑀1 ⋯ 𝑝𝑀𝑁

- When a linear transformation is applied on Matrix M containing the values for each
and every pixel of the image, a filter is basically applied onto the image. Here in this
assignment I have showcased two filters.

Here by applying this linear transformations image can be transformed according to the
needs of the user and this is how Linear Algebra is made use while applying the filters on
image.

APPLICATION -2
RECOMMENDER SYSTEMS AND

LINEAR ALGEBRA

- Recommender System predicts the likelihood that a user would prefer an item based
on previous user interaction with the data source that the system takes the
information from (besides the data from other users, or historical trends), the system
is capable of recommending an item to a user.

- Matrix factorization is a class of collaborative filtering algorithms used


in recommender systems. Matrix factorization algorithms work by decomposing the
user-item interaction matrix into the product of two lower dimensionality
rectangular matrices.
- Examples include the recommendation of books based on previous purchases and
purchases by customers like you on Amazon, and the recommendation of movies
and TV shows to watch based on your viewing history and viewing history of
subscribers like you on Netflix.

- Suppose there are n user and m movies. A few users have evaluated pictures, and
we have various triplets (i, j, y), where y is the rating given to film j by user i.

- For the matrix factorization way to deal with this issue, we will put the above data in
a rating framework Y. Y(i, j) is the rating user provided for motion picture j.
Nonetheless, Y is fragmented since each client has not appraised each picture.
Frequently, y is extremely sparse, with 1 of every 10,000 passages filled in.
- The goal is to assess the missing qualities in the matrix by finding a model f (i,j)=y
dependent on the accessible ratings, and after that to recommend to every user new
pictures which are relied upon to be most enjoyed by the user.

- In matrix factorization, we model the situation as follows,

Y=U*𝑿𝑻

Where U is a matrix of dimension n x k, and X is a matrix of dimension m x k. The ith


row of matrix U is a k-dimensional vector attempting to model the preferences of user i,
and the jth row of matrix X is a k-dimensional vector attempting to model the properties
of movie j. We seek therefore concise vector representations of users and movies.
- Vector values will be optimized by minimizing the discrepancy between predicted
and actual ratings in the training set. The optimization problem is:

The first term measures the squared error between the actual and predicted ratings,
and the second term is a regularization term.

Once we use an optimization algorithm to find the values of U and X, the prediction
Y(i,j) is simply UiXj𝑇 .

- N collaborative filtering by matrix factorization method, the algorithm makes


appropriate recommendations by taking the user data, and automatically learns
representations for users as well as movies.
- It is possible to ask questions such as which other users are most similar to this user
by defining a distance metric d (𝑈𝑎 ,𝑈𝑏 ) between user vectors, and similarly for
movies. A commonly used distance metric is cosine distance.

- Singular Value Decomposition (SVD) is a strategy for finding the low-rank estimation
of a matrix, which is the thing that matrix factorization has been doing.
Decomposing a matrix with missing values is proportionate to setting the missing
qualities to 0, which will prompt unwanted outcomes. Henceforth to achieve better
outcomes matrix factorization method technique is ideal.

Question-

𝑻: 𝑹𝒎  𝑹𝒏 where n!=m, then there exists no bijective function. To prove


that the linear transformation is not invertible.

A linear transformation L: VW is said to be invertible if the dimension (V) =dimension


(W), then L is one-one and onto .Thats only possible, if and only if the image of a basis for
V under L is a basis for W.

As the values of n and m are not equal in the question and contradicting the above
statement mentioned. Therefore the linear transformation would not be invertible.

You might also like