1.pdf GO ML gate overflow ai basic pdf file

meghalsem5 11 views 123 slides Jun 08, 2024
Slide 1
Slide 1 of 123
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15
Slide 16
16
Slide 17
17
Slide 18
18
Slide 19
19
Slide 20
20
Slide 21
21
Slide 22
22
Slide 23
23
Slide 24
24
Slide 25
25
Slide 26
26
Slide 27
27
Slide 28
28
Slide 29
29
Slide 30
30
Slide 31
31
Slide 32
32
Slide 33
33
Slide 34
34
Slide 35
35
Slide 36
36
Slide 37
37
Slide 38
38
Slide 39
39
Slide 40
40
Slide 41
41
Slide 42
42
Slide 43
43
Slide 44
44
Slide 45
45
Slide 46
46
Slide 47
47
Slide 48
48
Slide 49
49
Slide 50
50
Slide 51
51
Slide 52
52
Slide 53
53
Slide 54
54
Slide 55
55
Slide 56
56
Slide 57
57
Slide 58
58
Slide 59
59
Slide 60
60
Slide 61
61
Slide 62
62
Slide 63
63
Slide 64
64
Slide 65
65
Slide 66
66
Slide 67
67
Slide 68
68
Slide 69
69
Slide 70
70
Slide 71
71
Slide 72
72
Slide 73
73
Slide 74
74
Slide 75
75
Slide 76
76
Slide 77
77
Slide 78
78
Slide 79
79
Slide 80
80
Slide 81
81
Slide 82
82
Slide 83
83
Slide 84
84
Slide 85
85
Slide 86
86
Slide 87
87
Slide 88
88
Slide 89
89
Slide 90
90
Slide 91
91
Slide 92
92
Slide 93
93
Slide 94
94
Slide 95
95
Slide 96
96
Slide 97
97
Slide 98
98
Slide 99
99
Slide 100
100
Slide 101
101
Slide 102
102
Slide 103
103
Slide 104
104
Slide 105
105
Slide 106
106
Slide 107
107
Slide 108
108
Slide 109
109
Slide 110
110
Slide 111
111
Slide 112
112
Slide 113
113
Slide 114
114
Slide 115
115
Slide 116
116
Slide 117
117
Slide 118
118
Slide 119
119
Slide 120
120
Slide 121
121
Slide 122
122
Slide 123
123

About This Presentation

GO ML


Slide Content

Linear Algebra

Sachin Mittal

Co-founder and Instructor at GO Classes
MTech IISc Bangalore

Ex Amazon Applied Scientist

GATE AIR 33

mt

Linear Algebra

Why study linear algebra ?

G CLASSES

Mai Pr challange

Hou MPKE US of THIS

R AM Date.

G CLASSES

Q ——> Sometüng
Such Hot
dee is usadole

ls "mocchines

LP IS a deal +4 deo
cst anales.

1112, 213, 44, 15],
[20, 113, 39, 10),
[13, 117, 45, 13),
[25, 120, 49, 14],

a

From Data to Vectors and Matrices

Linear Algebra is fuel of machine learning...

Why Study Linear Algebra ?

Linear Algebra is fuel of machine learning...

Every Type of data can be represented as matrices or as vectors.

hs sg 7 lag?
nn ——

CAD

Word Embedding: Representing a word with vector

js a app
{ wees
A mun [J

Queer |)

coma ——» |]

This

(
|

Word Embedding: Representing a word with vector

poo D

king — man + woman = Queer

aw

—— ———. -—-. T

Height

170

Age

30

er

Data Representation

Weight

70

8

79

170
24
70

nan

HET

Aae

Recommendation Engines — Making use of embeddings

+ Different types of users -
kids, adults, teenagers, etc.

«Ratings of movies.
+ Types of movies.

«Movies for kids and for adults.

Source: Google's Machine Learning course on Recommendation Systems

Industries where Linear Algebra is used heavily

+ Statistics

* Chemical Physics

* Genomics

+ Word Embeddings — neural networks/deep learning
* Robotics ——

« Image Processing ——

* Quantum Physics

Linear Algebra for GATE

1-2 Gusto weil gear

ks + = ver‘ 1
Marks + 2- 3 mans (vey scoring)

24 GATE CSE 2023 | Question: 20
MES] Let A be the adjacency matrix of the graph with vertices (1, 2, 3, 4, 5}. Let
#1 A1, A2,A3, Aa, and À; be the five eigenvalues of A. Note that these
eigenvalues need not be distinct. The value of A; + A2 + Az + Ag +; =

34 GATE CSE 2023 | Question: 8

En tet
#2
1234
aa 2 8
B= Aa à
25 2 à GATE 2822

and \[ B=\left{\begin{array}{llil} 3 8 4 & ... det(B) = — det(A) det(A) = 0
det(AB) = det(A) + det(B)

Linear Algebra for IITs Interviews

Boo ant
x

al Meets and TISe wit au)

Le tho deco

Meh Mich Ra / ms



- Cou
lo courses 3-4 res

Peco

2614
À est PR + mars Pa]

= N

152 2£ 2-0006 |

G CLASSES

pude v reas dr Mach Res.
g OS ——
Pool B u
o a inte Wi gence
an)
o © es, pally So = un:
| compi Mí oes

© SAKSHI JOSHI FEATURED REVIEW x 1200
MORA A E months ago

For the first time, | actually understood what exactly is linear algebra, whenever I study linear algebra itjust seems like a lot of processes and formulas
but after attending Sachin sir classes all the formulas and process now seems logical and instead of memorizing everything | am able to understand and
apply the concepts .it was just very satisfying. Sachin sir explain the system of linear equations with so much clarity now | am able to decode and answer

GATE questions with ease. Thank you go classes for providing such an awesome course!

- Sakshi Joshi (IITM)

MILIN BHADE FEATURED REVIEW

| really enjoyed the course. It helped me so much inlinte after G was confident to answer question

- Milin Bhade (IISc)

=

HARSH VISHWAKARMA

o allt ing these re q o register for the course, just do it! The

ing style is fi we feeling tudying mathematic mputer S

- Harsh (IISc)

© DAHIYA
tk kkk

fed the ©

I really enje line course of engineering mathematics. | th well planned and lay
st fesTóver loaded and
fun but a lo

ugh time, learn abs

ward. T
much fron

just enough, so i could finish every hen

tures and examples aro straight
o learr ineering mathe
ore than a regular

learned that an online
pre
ments and

ter, butin the en
edt

nted in This really

format it
st at my leisure

turn the

y be necessary for some assi

ments To be honest, there is nothing th

dit relaxing
more internet research m

another online course from you

me to follow. The explanation wa:

really like this

liked

verall
rk. al

new way! kno

| still enjoyed it very

SRIDHAR BAJPAI FEATURED REVIEW

ır problem solving ability. just blindly follow course content cont

Sridhar (AIR 25, IISc)

Y ss N

P} PK FEATURED REVIEW

KKKKK

watching the le me to know that | was byhea

ing a lot of formulaes, | also ca know what real
‚chin sir thank y erited me af

maths which | never knew existed from the applications of Linear All
probability that information. It was tremendous :-) and helped me se
any further Al specialised exams and|ntery

FM ABHISHEK SOLANKI + ‘st 5
F0 O] ER AA

——=

Arata rra
ESO

| am very delighted to share that I will be j
in Computation And Data Science(CDS).

ing IISc Bangalore for my M-Tech
nn

| would like to thank Ankit Ahirwar ‚Adesh Tiwari for helping me throughout

my journey and completing my college assignments and for marking my

proxies so that | can give my whole time for GATE prepration. am thankful to
¡ave you guys.

sre Ga cite eh eka at Ge el A ET ete!

A

I would like to thank Sachin Mittal sir, and GATE Overflow for the precious

guidance , and for helping me in cracking interviews of IISc Bangalore and IIT

Delhi. ———


tafe ot eme EURER EEE air oe ht por set ata

Thankyou sachin sir once again. —
This couldn't be possible without you. A À

aditya al
last seen recently

Hello sir
| got selected in IIT Kanpur MS winter admissions

| watched your linear algebra and probability course and almost

all the interview questions were asked from what you taught
sa

| want to say a big thank you to you and go classes for providing
these lectures

Aditya (IITK)

, \
Li near age , (9) $)

AI e___——

— GATE <yledus

5 a ooh
Li neat ages , 9)
D AMA
ete. <ylledas

im do inten prie



3 hel os

= LP | prob

N

Ne

we

SS Chat [PT

Scalar

Vector

G CLASSES

Y

4
(2,3)

G CLASSES

G CLASSES

G CLASSES

Scalar times vector

Vector addition

Vector addition

Linear Combination of vectors

Linear Combination of vectors

|
Jl Z
+ :

EA
ao Lincas Gon bineuhon

1) «tai

[> een

E

Linear Combination of vectors

/
zZ
ut 5-1 9:

2
3
4 pa
= 7 lines @nbinecon

Uta

We will flip this question, Soon

.,

- (| a

Vectors in R?,R?, ... ... ‚R"

Ale

Am À Anis ved 35 2

Vectors in R?,R?, ....... ¿RA

' 2
[|
7 de 7
um A Hai De >

yee a
É £

Aım A His vedes is 2

A His vector 7

: | — 3
a A


ME

This gentle introduction ta and voor Doms
simple, but you may be surpri to learn that nearly
all of linear algebra is built up from scalars and vectors.
From humble beginnings, amazing things emerge. Just
think of everything you can build with wood planks and
nails. (But don’t think of what J could build — I’ma
terrible carpenter.)

Linearly Dependent vectors

Linearly Dependent vectors

NAO

Linearly Dependent vectors

= Linea
deyadod

3 vecers

av LP 1

Not Cned J
okependert

One important thing to know about linear independence before
reading the rest of this section is that independence is a prop-
erty of a set of vectors. That is, a set of vectors can be linearly
independent or linearly dependent; it doesn’t make sense to ask
whether a single vector, or a vector within a set, is independent.

G CLASSES

+ 6

o

À à ©

Goliicienk could be are oy

mun Ter’

Yes.

G CLASSES

CLASSES

{lide

AO

y w

AE

G CLASSES

$ U, Mp8) Ban

fi ©) shubhodeep Chanda w=0u +0v
«deb
one VE
15 we Can red te]

Ar
os a Linear Comb. of otter ven

nen Anis set is LO.

G CLASSES

pint is ) question)



SS ——

ME

Do You have

E
e

2

yr

ATLERST

|

ond yecks

2
oO
a3

oS GE

| y)

) Shubhodeep Chanda w 4 À

Kınson 19 A egended se”

US a

G CLASSES

ye Chr are i) iff

ner

ach

TIEF

zZ

a

Lo

ket

Continues

Ze vecks

S20800--6® a

is

ae
Ze —

a 4 '
et Conan”
Zen weds is always

ue ARE 35)

Linear Dependence

* At least one vector can be obtained by linear combination of other
vectors
Vy = C202 to + Con

(or)

* If we can obtain zero vector by nontrivial (atleast one c; is non-zero)
linear combination of other vectors
CyV 14 C2V2 + ***+CnUpn = 0

G CLASSES

Cas o

10

we

NST ya presen | y as Unas

Combi notion of
yey

(he? Ay (3) ms

NP C, Y, + ET any Y Ey

ta |i epoesertt Y, as. Linear Com binodtion

af Die veers? ay

Ve = mV, + tt va + 2 Go

Can Ñ y
( peser wm as Line Com binodisy

cher:
af Dies vectors 2 a if cv dé
zero mn YES

| a 24 A vechs art LI

Anm Aner ® AT LAAST One veces whch Can
ba e yesca dd "y & (paea Com inch)

VE
om vets TR

+H

f a 34 of vec ant LP

Am ALL vecis Can

Le ae yuscaded by À (pacar Com binadton)

af p me vechs

/
if a 4 A
Hen NUL
be perd
J
Ves

of pt

a

lanear

car,

Com bination

Came

with

in GATE

wor! Y)

pyo

âe terre dede
picas

Li neatly dependent

{ —-
eS
\ abe do mps any of tite wean ©

As aone Combinodion of © thes VO Chery

Li neatly dependent

[CEM
fu, Maé pt

St a
\ ae any of tite wean ©

As aone Combinodion of OHnes NE Chery

li nearly egendent coset

{u, —

ne
gas ©
\ able do en dl ot te ra

Li noas Combincdion of Other NG Chore

goclasses2023-mockgate-6 | '-goclasses [| linear-algebra | vector-space | multiple-selects

moderate | 2-marks

G CLASSES

A. If (uy, U2, uz) is linearly dependent, so is {u1, >}.

G CLASSES

B. If u, is not a linear combination of {u1, uz, uz], then {u1, u2, uz, ua} is linearly
independent.

2%

G CLASSES

af a Gibget 55 LP Ham

dhe Supaset is Le

P
GQ 4, us C

cn ty 2

te Su = Du «Du

= í 4

G CLASSES

+E ä Gibget 55 LP men
He Supaset is Up
A, 4, Ws il
Sa 2. Du «Ou,

2

$ oy

TRUE or FALSE: If {u:, uo, us} is linearly dependent, so is {u1, uz.)

(c) TRUE or FALSE: If (u;, us, us} is linearly dependent, so is {u1, uz.)

0 L 0
This is false in general. Consider the set {| 0 | ,| 0 |,| 1 |}, from
0 0 0

which you can take out the zero vector and end up with two linear
independent vectors.

(d) TRUE or FALSE: If uy is not a linear combination of (u;, uz, uz),
then {uy, ug, uz, us) is linearly independent.
This is false: Any one of the other vectors could be the zero vector, for

example.

Linear Independence

Linear Independence

a set of vectors is said to be linearly independent

* If we can obtain zero vector only by trivial linear combination of other vectors
1914 C2V2 + + Can =0iff c; = 0 Vi

ae

Cy + oh t oe t

Voz yt

27 Cv

Ng te oe

el lea one ah hu (240

Vo —
uf

G CLASSES

Com fou ne oresent

Y)

Ya

NE Ov 490 +O% + OY KM =o]

( \s Hs set LD?
ne

CES E

20. CrYa =0
cu + rt CV

Can Spa gt me

TZ — od least one c #0

at ol He
No re
“NSO
4 es
LD Ca >

O

CE
a Or

Can Spa gue me

Q 7 — attest one ci #0
A NS
ET

L9-

==

=0

Sr Vn

71

ga oF vers ent La

"+

Ne dir] ans,
——
a gt od vers M, V2 7 Vn Setisty
GM + QT GMT = 7 CVn =0

where oh @: = On Loss

Men iv ‚me m} is Lineiy indep.

TIF

a get of veias
qy+ Ot GNT

omy when

Ahnen iv
pr

TIF

av rn sa Hg
$

qy+ OF GNT OO
CVn =0

omy when
lh ES =D e

== GN O

che You ho we one Non

G LASSES

ji Aut vy

( Ane en

Mil


TE Yn =0

yaluss A Er

oi” 2 Aus equetien 1S


=) ( incorl ind pod

G CLASSES

ys yt SY GNT nn =O

m | e edition 18 &= ©
( Ane A ús W
As]

= wc In A know

Linear Independence

q £ get of vecks am LTE

are 06T LP

¡E Hy

al

Css
Cr Yn =0

GM + Gu+tGNÍt TT

AR x gas Or
nm © DO Ae

(Indy e indivectty )

Gy t Ot Gt m In =e

J

os o mt nodo
Sons jawed combi

zes

{

Gut Ot GNT © 97 Cn Ya =O

Can You give me ad least
one Cz; such HA GEAR

ET CEA

v= +, Ç Ey VAR 4 2 carn)

C £ 6 vic as Linear comb- À Sr
i=
d vecder,

a, FS Ww > —

if Jo“ can net Y préserd emy

ye der as ax Linear om Line

ot Hv ve Kerf =) Lineowly thd ep.
Tags