SlideShare uma empresa Scribd logo
1 de 40
Fundamental
Math
for
Data Science
Vishal Gokhale
Intros and warm-up
• How many lines pass through a single point?
• How many lines pass through 2 distinct points?
• How many points form a line?
• What are Collinear points ?
• What are non-collinear points?
• To define a plane you need at least __ ______
points ?
• How many planes pass through a line?
• What is a line segment?
Prove that
1. 𝑎 𝑚
. 𝑎 𝑛
= 𝑎 𝑚+𝑛
2. 𝑎 𝑚
÷ 𝑎 𝑛
= 𝑎 𝑚−𝑛
3. 𝑎0
= 1
4. 𝑎−𝑚
=
1
𝑎 𝑚
5. (𝑎 𝑚
) 𝑛
= 𝑎 𝑚𝑛
Intros and warm-up
Prove that
1. 𝑙𝑜𝑔 𝑏 𝑥𝑦 = 𝑙𝑜𝑔 𝑏 𝑥 + 𝑙𝑜𝑔 𝑏 𝑦
2. 𝑙𝑜𝑔 𝑏(
𝑥
𝑦
) = 𝑙𝑜𝑔 𝑏 𝑥 − 𝑙𝑜𝑔 𝑏 𝑦
3. 𝑙𝑜𝑔 𝑏 𝑏 = 1
4. 𝑙𝑜𝑔 𝑏 1 = 0
5. 𝑙𝑜𝑔 𝑎 𝑥 =
𝑙𝑜𝑔 𝑏 𝑥
𝑙𝑜𝑔 𝑏 𝑎
Intros and warm-up
What is
1. 𝜋 ?
2. sin 𝜃 ?
3. cos 𝜃 ?
4. tan 𝜃 ?
5. ? for ex. 𝑖=0
𝑛
𝑥𝑖
6. ? for ex. 𝑖=0
𝑛
𝑥𝑖
Intros and warm-up
• Measurements !
• 𝑦 = 𝑥
• 𝑦 = 3𝑥
• 𝑦 = 𝑥 + 5
Generic abstraction:
• 𝑦 = 𝑓 𝑥
Functions as
transformations
Try plotting following:
 𝑥
 𝑥2
 𝑥3
 log(𝑥)
 𝑎 𝑥
See the effect of
shifting and
scaling on each of
these
• 𝑥 − 1 2
, 𝑥 + 𝑎 2
,
• 3𝑥2
, 𝑎𝑥2
Play with sliders
for the parameter
Plot Functions
https://www.desmos.com/calcul
ator
General Equation of Line
• 2 points define a line (Euclid)
• Slope of a line : m
• Intercept on y-axis : c
𝑦 = 𝑚𝑥 + 𝑐
Combinations of functions
Combining functions to make more
functions
• 𝑦 = 𝑓 𝑥 + 𝑔 𝑥
• 𝑦 = 𝑓 𝑥 . 𝑔 𝑥
• 𝑦 = 𝑓 𝑔 𝑥
https://www.desmos.com/calcul
ator
Try plotting :
 𝑥2
+ 𝑥3
 2𝑥. (𝑥 + 4)
 log(𝑥2
)
Plot Functions
What determines the shape of a function?
The direction in which tracer moves as we
move from one end of the x axis to the
other.
To get a sense of direction, we can choose
any 2 points on the curve and compute the
Shape of a Function
Rate of Change
• Slope indicates the rate of change
• 2 close points on the function
• Derivative = Slope of the tangent drawn
to a function at a point
• Formal definition
lim
ℎ→0
𝑓 𝑥 + ℎ − 𝑓(𝑥)
ℎ
Find the derivative of :
𝑓 𝑥 = 𝑥2
using the definition of derivatives
𝑓 𝑥 = 𝑥3
Derivative of Sum
𝑦(𝑥) = 𝑓 𝑥 + 𝑔(𝑥)
𝑑𝑦
𝑑𝑥
=
𝑑𝑓
𝑑𝑥
+
𝑑𝑔
𝑑𝑥
Derivative of sum is equal to sum of
derivatives
Product Rule
𝑦(𝑥) = 𝑓 𝑥 . 𝑔 𝑥
𝑑𝑦
𝑑𝑥
= 𝑓
𝑑𝑔
𝑑𝑥
+ 𝑔
𝑑𝑓
𝑑𝑥
Left-d-Right + Right-d-left
Chain Rule
𝑦(𝑥) = 𝑓 𝑔 𝑥
𝑑𝑦
𝑑𝑥
=
𝑑𝑓
𝑑𝑔
x
𝑑𝑔
𝑑𝑥
Examples
Exponential functions
•Lets say there’s mutual fund that doubles your
investment every year. You start with an
investment of 1$. Value as a function of time is?
𝑣 = 2 𝑡
•What is the rate of growth at any given time?
𝑑𝑣
𝑑𝑡
=
𝑑
𝑑𝑡
2 𝑡
Applications
Regression
• Hypothesize a relationship.
• Define a cost function
• find parameters that minimize the cost
Revenue Optimization
• Find the price for which revenue is
optimal
Integrals
• Example 1: Area of the circle
Sum of areas of the concentric strips
• Example 2: Distance covered.
• Area under the curve
• Definite Integral - Concept
• Definite Integral as the limit of the
sum
Linear Algebra
What are vectors?
•Vectors in physics:
•Arrows floating in space ex. Force, Velocity,
Displacement etc.
•Computer Science idea:
•List of numbers
•Generalizing the concept
•Arrows rooted at origin with the numbers
representing the walk along each direction
FundamentalVector
Operations•Adding Vectors
•Multiply by a constant number.
•Or in other words scale a vector
•Hence the multiplier is called scalar
•In fact every vector in 2 dimensions is the
result of an addition of 2 scaled unit vectors.
Some terminology
• Basis vectors
• Span of the vectors
• If third vector is a linear combination of the
2 vectors you are trapped into the same flat
sheet
•In other words, including scaled version of one
/ both the vectors as a third vector doesn’t give
you access to any new vectors (or even when
the third vector is got by scaling and adding the
2 vectors)
Linearly Dependent
VectorsWhenever you can remove a vector from the
set of vectors, without reducing the span, we
say they are linearly dependent vectors
Technical definition of basis vectors for a
given space – set of linearly independent
vectors that span that space
The single most important concept in
linear algebra that was never taught !!
•What is a matrix?
•set of vectors defining where each unit vector
lands
The single most important concept in
linear algebra that was never taught !!
•What do we mean when we say that Matrices
are Linear transformations?
•Transformations: Stretching, squishing,
rotation , flipping of space
•Linear
• Origin remains fixed in place
• All lines remain lines
In general keeping grid lines parallel and evenly
spaced
Examples
Matrix multiplication ≡
function composition
• If you apply M1 on A, then apply M2 on the
result it is the same as applying
M3 (=M1M2) on A
• Matrix multiplication is not commutative
M1M2 ≠ M2M1
• Matrix multiplication is associative
(M1M2)M3 = M1(M2M3)
Determinant
•Determinant of a matrix corresponds to the
area enclosed by the by the parallelogram
(parallelepiped) formed by the vectors in the
matrix
•i-hat and j-hat form a square of area 1
Thus determinant is nothing but the amount by
which the area scales when the space is
transformed by the given matrix
Determinant
•Interpretation of the negative value of the
determinant
•In 3 dimensions?
• the determinant of a transformation is the
volume of the parallelepiped enclosed by the 3
vectors in the that space.
•What happens in 1 dimension?
System of linear equations
•2𝑎 + 3𝑏 + 𝑐 = 5
•3𝑎 + 4𝑏 + 6𝑐 = 8
•5𝑎 + 3𝑏 + 9𝑐 = 3
Can these be represented as a matrix?
𝐴𝑥 = 𝑣
Inverse of a Matrix
A x = v
•Which means we are looking for a vector x
which was transformed by A into v
•To find x we can apply another
transformation B on Ax that reverses the
effect of A on x. i.e. it transforms v to back to
x.
•Since B reverses the effect of A , it called A
inverse, notation: A-1
Rank of a matrix
•Finding the transformation A-1 is possible when
determinant is non-zero
•When determinant is zero, the number of dimensions in
the output vector is less than the number of dimensions in
the input vector
•Rank of a transformation is the number of dimensions in
the output vector.
•Thus if the rank of the matrix is less than the number of
dimensions of the input vector it won’t be possible to find
the inverse of the transformation
What about non-square
matrices?
•3x2 matrix transforms a vector from 2
dimensions to 3 dimensions
•2x3 matrix transforms a vector from 3
dimensions to 2 dimensions
Dot Products
•Numerically is just multiplying the respective
coordinates and adding the result.
•Geometrically it is equivalent to projecting one
vector (v) onto the span of another vector (w) and
multiplying the magnitude of the projection (of v on
w) with the magnitude of w
Cross Products
•Numerically:
• v x w
| i-hat v1 w1 |
• Det | j-hat v2 w2 |
| k-hat v3 w3 |
•Geometrically:
•Cross-product is a vector with magnitude equal
to the area of the parallelogram enclosed by v
and w pointing in a direction perpendicular to v
and w as suggested by the right-hand-rule.
Eigen Values and Eigen
Vectors
•In case of some transformations, there exist
some vectors which are not knocked off from
their span, they are only scaled as a result of
the transformation –
•these are Eigen Vectors
Eigen Values and Eigen
Vectors
•The amount by which each Eigen vector gets
scaled (after transformation) is its Eigen
Value
•For a transformation A, if there exists a
vector v and scalar λ such that
𝐴 𝑣 = 𝜆 𝑣
Then v is called the Eigen Vector and λ is the
corresponding Eigen value
~THE END~
I’ll be back ;-)
india.odsc.com

Mais conteúdo relacionado

Último

Top profile Call Girls In Begusarai [ 7014168258 ] Call Me For Genuine Models...
Top profile Call Girls In Begusarai [ 7014168258 ] Call Me For Genuine Models...Top profile Call Girls In Begusarai [ 7014168258 ] Call Me For Genuine Models...
Top profile Call Girls In Begusarai [ 7014168258 ] Call Me For Genuine Models...nirzagarg
 
Vadodara 💋 Call Girl 7737669865 Call Girls in Vadodara Escort service book now
Vadodara 💋 Call Girl 7737669865 Call Girls in Vadodara Escort service book nowVadodara 💋 Call Girl 7737669865 Call Girls in Vadodara Escort service book now
Vadodara 💋 Call Girl 7737669865 Call Girls in Vadodara Escort service book nowgargpaaro
 
Gomti Nagar & best call girls in Lucknow | 9548273370 Independent Escorts & D...
Gomti Nagar & best call girls in Lucknow | 9548273370 Independent Escorts & D...Gomti Nagar & best call girls in Lucknow | 9548273370 Independent Escorts & D...
Gomti Nagar & best call girls in Lucknow | 9548273370 Independent Escorts & D...HyderabadDolls
 
7. Epi of Chronic respiratory diseases.ppt
7. Epi of Chronic respiratory diseases.ppt7. Epi of Chronic respiratory diseases.ppt
7. Epi of Chronic respiratory diseases.pptibrahimabdi22
 
20240412-SmartCityIndex-2024-Full-Report.pdf
20240412-SmartCityIndex-2024-Full-Report.pdf20240412-SmartCityIndex-2024-Full-Report.pdf
20240412-SmartCityIndex-2024-Full-Report.pdfkhraisr
 
Charbagh + Female Escorts Service in Lucknow | Starting ₹,5K To @25k with A/C...
Charbagh + Female Escorts Service in Lucknow | Starting ₹,5K To @25k with A/C...Charbagh + Female Escorts Service in Lucknow | Starting ₹,5K To @25k with A/C...
Charbagh + Female Escorts Service in Lucknow | Starting ₹,5K To @25k with A/C...HyderabadDolls
 
Top profile Call Girls In bhavnagar [ 7014168258 ] Call Me For Genuine Models...
Top profile Call Girls In bhavnagar [ 7014168258 ] Call Me For Genuine Models...Top profile Call Girls In bhavnagar [ 7014168258 ] Call Me For Genuine Models...
Top profile Call Girls In bhavnagar [ 7014168258 ] Call Me For Genuine Models...gajnagarg
 
Reconciling Conflicting Data Curation Actions: Transparency Through Argument...
Reconciling Conflicting Data Curation Actions:  Transparency Through Argument...Reconciling Conflicting Data Curation Actions:  Transparency Through Argument...
Reconciling Conflicting Data Curation Actions: Transparency Through Argument...Bertram Ludäscher
 
Top profile Call Girls In Indore [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In Indore [ 7014168258 ] Call Me For Genuine Models We...Top profile Call Girls In Indore [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In Indore [ 7014168258 ] Call Me For Genuine Models We...gajnagarg
 
Top profile Call Girls In Latur [ 7014168258 ] Call Me For Genuine Models We ...
Top profile Call Girls In Latur [ 7014168258 ] Call Me For Genuine Models We ...Top profile Call Girls In Latur [ 7014168258 ] Call Me For Genuine Models We ...
Top profile Call Girls In Latur [ 7014168258 ] Call Me For Genuine Models We ...gajnagarg
 
5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed
5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed
5CL-ADBA,5cladba, Chinese supplier, safety is guaranteedamy56318795
 
Top profile Call Girls In Vadodara [ 7014168258 ] Call Me For Genuine Models ...
Top profile Call Girls In Vadodara [ 7014168258 ] Call Me For Genuine Models ...Top profile Call Girls In Vadodara [ 7014168258 ] Call Me For Genuine Models ...
Top profile Call Girls In Vadodara [ 7014168258 ] Call Me For Genuine Models ...gajnagarg
 
如何办理英国诺森比亚大学毕业证(NU毕业证书)成绩单原件一模一样
如何办理英国诺森比亚大学毕业证(NU毕业证书)成绩单原件一模一样如何办理英国诺森比亚大学毕业证(NU毕业证书)成绩单原件一模一样
如何办理英国诺森比亚大学毕业证(NU毕业证书)成绩单原件一模一样wsppdmt
 
Aspirational Block Program Block Syaldey District - Almora
Aspirational Block Program Block Syaldey District - AlmoraAspirational Block Program Block Syaldey District - Almora
Aspirational Block Program Block Syaldey District - AlmoraGovindSinghDasila
 
怎样办理圣地亚哥州立大学毕业证(SDSU毕业证书)成绩单学校原版复制
怎样办理圣地亚哥州立大学毕业证(SDSU毕业证书)成绩单学校原版复制怎样办理圣地亚哥州立大学毕业证(SDSU毕业证书)成绩单学校原版复制
怎样办理圣地亚哥州立大学毕业证(SDSU毕业证书)成绩单学校原版复制vexqp
 
Nirala Nagar / Cheap Call Girls In Lucknow Phone No 9548273370 Elite Escort S...
Nirala Nagar / Cheap Call Girls In Lucknow Phone No 9548273370 Elite Escort S...Nirala Nagar / Cheap Call Girls In Lucknow Phone No 9548273370 Elite Escort S...
Nirala Nagar / Cheap Call Girls In Lucknow Phone No 9548273370 Elite Escort S...HyderabadDolls
 
Top profile Call Girls In Satna [ 7014168258 ] Call Me For Genuine Models We ...
Top profile Call Girls In Satna [ 7014168258 ] Call Me For Genuine Models We ...Top profile Call Girls In Satna [ 7014168258 ] Call Me For Genuine Models We ...
Top profile Call Girls In Satna [ 7014168258 ] Call Me For Genuine Models We ...nirzagarg
 
Gulbai Tekra * Cheap Call Girls In Ahmedabad Phone No 8005736733 Elite Escort...
Gulbai Tekra * Cheap Call Girls In Ahmedabad Phone No 8005736733 Elite Escort...Gulbai Tekra * Cheap Call Girls In Ahmedabad Phone No 8005736733 Elite Escort...
Gulbai Tekra * Cheap Call Girls In Ahmedabad Phone No 8005736733 Elite Escort...gragchanchal546
 
Top profile Call Girls In Tumkur [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In Tumkur [ 7014168258 ] Call Me For Genuine Models We...Top profile Call Girls In Tumkur [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In Tumkur [ 7014168258 ] Call Me For Genuine Models We...nirzagarg
 
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...ZurliaSoop
 

Último (20)

Top profile Call Girls In Begusarai [ 7014168258 ] Call Me For Genuine Models...
Top profile Call Girls In Begusarai [ 7014168258 ] Call Me For Genuine Models...Top profile Call Girls In Begusarai [ 7014168258 ] Call Me For Genuine Models...
Top profile Call Girls In Begusarai [ 7014168258 ] Call Me For Genuine Models...
 
Vadodara 💋 Call Girl 7737669865 Call Girls in Vadodara Escort service book now
Vadodara 💋 Call Girl 7737669865 Call Girls in Vadodara Escort service book nowVadodara 💋 Call Girl 7737669865 Call Girls in Vadodara Escort service book now
Vadodara 💋 Call Girl 7737669865 Call Girls in Vadodara Escort service book now
 
Gomti Nagar & best call girls in Lucknow | 9548273370 Independent Escorts & D...
Gomti Nagar & best call girls in Lucknow | 9548273370 Independent Escorts & D...Gomti Nagar & best call girls in Lucknow | 9548273370 Independent Escorts & D...
Gomti Nagar & best call girls in Lucknow | 9548273370 Independent Escorts & D...
 
7. Epi of Chronic respiratory diseases.ppt
7. Epi of Chronic respiratory diseases.ppt7. Epi of Chronic respiratory diseases.ppt
7. Epi of Chronic respiratory diseases.ppt
 
20240412-SmartCityIndex-2024-Full-Report.pdf
20240412-SmartCityIndex-2024-Full-Report.pdf20240412-SmartCityIndex-2024-Full-Report.pdf
20240412-SmartCityIndex-2024-Full-Report.pdf
 
Charbagh + Female Escorts Service in Lucknow | Starting ₹,5K To @25k with A/C...
Charbagh + Female Escorts Service in Lucknow | Starting ₹,5K To @25k with A/C...Charbagh + Female Escorts Service in Lucknow | Starting ₹,5K To @25k with A/C...
Charbagh + Female Escorts Service in Lucknow | Starting ₹,5K To @25k with A/C...
 
Top profile Call Girls In bhavnagar [ 7014168258 ] Call Me For Genuine Models...
Top profile Call Girls In bhavnagar [ 7014168258 ] Call Me For Genuine Models...Top profile Call Girls In bhavnagar [ 7014168258 ] Call Me For Genuine Models...
Top profile Call Girls In bhavnagar [ 7014168258 ] Call Me For Genuine Models...
 
Reconciling Conflicting Data Curation Actions: Transparency Through Argument...
Reconciling Conflicting Data Curation Actions:  Transparency Through Argument...Reconciling Conflicting Data Curation Actions:  Transparency Through Argument...
Reconciling Conflicting Data Curation Actions: Transparency Through Argument...
 
Top profile Call Girls In Indore [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In Indore [ 7014168258 ] Call Me For Genuine Models We...Top profile Call Girls In Indore [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In Indore [ 7014168258 ] Call Me For Genuine Models We...
 
Top profile Call Girls In Latur [ 7014168258 ] Call Me For Genuine Models We ...
Top profile Call Girls In Latur [ 7014168258 ] Call Me For Genuine Models We ...Top profile Call Girls In Latur [ 7014168258 ] Call Me For Genuine Models We ...
Top profile Call Girls In Latur [ 7014168258 ] Call Me For Genuine Models We ...
 
5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed
5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed
5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed
 
Top profile Call Girls In Vadodara [ 7014168258 ] Call Me For Genuine Models ...
Top profile Call Girls In Vadodara [ 7014168258 ] Call Me For Genuine Models ...Top profile Call Girls In Vadodara [ 7014168258 ] Call Me For Genuine Models ...
Top profile Call Girls In Vadodara [ 7014168258 ] Call Me For Genuine Models ...
 
如何办理英国诺森比亚大学毕业证(NU毕业证书)成绩单原件一模一样
如何办理英国诺森比亚大学毕业证(NU毕业证书)成绩单原件一模一样如何办理英国诺森比亚大学毕业证(NU毕业证书)成绩单原件一模一样
如何办理英国诺森比亚大学毕业证(NU毕业证书)成绩单原件一模一样
 
Aspirational Block Program Block Syaldey District - Almora
Aspirational Block Program Block Syaldey District - AlmoraAspirational Block Program Block Syaldey District - Almora
Aspirational Block Program Block Syaldey District - Almora
 
怎样办理圣地亚哥州立大学毕业证(SDSU毕业证书)成绩单学校原版复制
怎样办理圣地亚哥州立大学毕业证(SDSU毕业证书)成绩单学校原版复制怎样办理圣地亚哥州立大学毕业证(SDSU毕业证书)成绩单学校原版复制
怎样办理圣地亚哥州立大学毕业证(SDSU毕业证书)成绩单学校原版复制
 
Nirala Nagar / Cheap Call Girls In Lucknow Phone No 9548273370 Elite Escort S...
Nirala Nagar / Cheap Call Girls In Lucknow Phone No 9548273370 Elite Escort S...Nirala Nagar / Cheap Call Girls In Lucknow Phone No 9548273370 Elite Escort S...
Nirala Nagar / Cheap Call Girls In Lucknow Phone No 9548273370 Elite Escort S...
 
Top profile Call Girls In Satna [ 7014168258 ] Call Me For Genuine Models We ...
Top profile Call Girls In Satna [ 7014168258 ] Call Me For Genuine Models We ...Top profile Call Girls In Satna [ 7014168258 ] Call Me For Genuine Models We ...
Top profile Call Girls In Satna [ 7014168258 ] Call Me For Genuine Models We ...
 
Gulbai Tekra * Cheap Call Girls In Ahmedabad Phone No 8005736733 Elite Escort...
Gulbai Tekra * Cheap Call Girls In Ahmedabad Phone No 8005736733 Elite Escort...Gulbai Tekra * Cheap Call Girls In Ahmedabad Phone No 8005736733 Elite Escort...
Gulbai Tekra * Cheap Call Girls In Ahmedabad Phone No 8005736733 Elite Escort...
 
Top profile Call Girls In Tumkur [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In Tumkur [ 7014168258 ] Call Me For Genuine Models We...Top profile Call Girls In Tumkur [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In Tumkur [ 7014168258 ] Call Me For Genuine Models We...
 
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 

Destaque

How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Applitools
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at WorkGetSmarter
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...DevGAMM Conference
 
Barbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationBarbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationErica Santiago
 
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them wellGood Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them wellSaba Software
 
Introduction to C Programming Language
Introduction to C Programming LanguageIntroduction to C Programming Language
Introduction to C Programming LanguageSimplilearn
 

Destaque (20)

How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
 
Barbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationBarbie - Brand Strategy Presentation
Barbie - Brand Strategy Presentation
 
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them wellGood Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
 
Introduction to C Programming Language
Introduction to C Programming LanguageIntroduction to C Programming Language
Introduction to C Programming Language
 

Fundamental Math for data science - I

  • 2. Intros and warm-up • How many lines pass through a single point? • How many lines pass through 2 distinct points? • How many points form a line? • What are Collinear points ? • What are non-collinear points? • To define a plane you need at least __ ______ points ? • How many planes pass through a line? • What is a line segment?
  • 3. Prove that 1. 𝑎 𝑚 . 𝑎 𝑛 = 𝑎 𝑚+𝑛 2. 𝑎 𝑚 ÷ 𝑎 𝑛 = 𝑎 𝑚−𝑛 3. 𝑎0 = 1 4. 𝑎−𝑚 = 1 𝑎 𝑚 5. (𝑎 𝑚 ) 𝑛 = 𝑎 𝑚𝑛 Intros and warm-up
  • 4. Prove that 1. 𝑙𝑜𝑔 𝑏 𝑥𝑦 = 𝑙𝑜𝑔 𝑏 𝑥 + 𝑙𝑜𝑔 𝑏 𝑦 2. 𝑙𝑜𝑔 𝑏( 𝑥 𝑦 ) = 𝑙𝑜𝑔 𝑏 𝑥 − 𝑙𝑜𝑔 𝑏 𝑦 3. 𝑙𝑜𝑔 𝑏 𝑏 = 1 4. 𝑙𝑜𝑔 𝑏 1 = 0 5. 𝑙𝑜𝑔 𝑎 𝑥 = 𝑙𝑜𝑔 𝑏 𝑥 𝑙𝑜𝑔 𝑏 𝑎 Intros and warm-up
  • 5. What is 1. 𝜋 ? 2. sin 𝜃 ? 3. cos 𝜃 ? 4. tan 𝜃 ? 5. ? for ex. 𝑖=0 𝑛 𝑥𝑖 6. ? for ex. 𝑖=0 𝑛 𝑥𝑖 Intros and warm-up
  • 6. • Measurements ! • 𝑦 = 𝑥 • 𝑦 = 3𝑥 • 𝑦 = 𝑥 + 5 Generic abstraction: • 𝑦 = 𝑓 𝑥 Functions as transformations
  • 7. Try plotting following:  𝑥  𝑥2  𝑥3  log(𝑥)  𝑎 𝑥 See the effect of shifting and scaling on each of these • 𝑥 − 1 2 , 𝑥 + 𝑎 2 , • 3𝑥2 , 𝑎𝑥2 Play with sliders for the parameter Plot Functions https://www.desmos.com/calcul ator
  • 8. General Equation of Line • 2 points define a line (Euclid) • Slope of a line : m • Intercept on y-axis : c 𝑦 = 𝑚𝑥 + 𝑐
  • 9. Combinations of functions Combining functions to make more functions • 𝑦 = 𝑓 𝑥 + 𝑔 𝑥 • 𝑦 = 𝑓 𝑥 . 𝑔 𝑥 • 𝑦 = 𝑓 𝑔 𝑥
  • 10. https://www.desmos.com/calcul ator Try plotting :  𝑥2 + 𝑥3  2𝑥. (𝑥 + 4)  log(𝑥2 ) Plot Functions
  • 11. What determines the shape of a function? The direction in which tracer moves as we move from one end of the x axis to the other. To get a sense of direction, we can choose any 2 points on the curve and compute the Shape of a Function
  • 12. Rate of Change • Slope indicates the rate of change • 2 close points on the function • Derivative = Slope of the tangent drawn to a function at a point • Formal definition lim ℎ→0 𝑓 𝑥 + ℎ − 𝑓(𝑥) ℎ
  • 13. Find the derivative of : 𝑓 𝑥 = 𝑥2 using the definition of derivatives 𝑓 𝑥 = 𝑥3
  • 14. Derivative of Sum 𝑦(𝑥) = 𝑓 𝑥 + 𝑔(𝑥) 𝑑𝑦 𝑑𝑥 = 𝑑𝑓 𝑑𝑥 + 𝑑𝑔 𝑑𝑥 Derivative of sum is equal to sum of derivatives
  • 15. Product Rule 𝑦(𝑥) = 𝑓 𝑥 . 𝑔 𝑥 𝑑𝑦 𝑑𝑥 = 𝑓 𝑑𝑔 𝑑𝑥 + 𝑔 𝑑𝑓 𝑑𝑥 Left-d-Right + Right-d-left
  • 16. Chain Rule 𝑦(𝑥) = 𝑓 𝑔 𝑥 𝑑𝑦 𝑑𝑥 = 𝑑𝑓 𝑑𝑔 x 𝑑𝑔 𝑑𝑥
  • 18. Exponential functions •Lets say there’s mutual fund that doubles your investment every year. You start with an investment of 1$. Value as a function of time is? 𝑣 = 2 𝑡 •What is the rate of growth at any given time? 𝑑𝑣 𝑑𝑡 = 𝑑 𝑑𝑡 2 𝑡
  • 19. Applications Regression • Hypothesize a relationship. • Define a cost function • find parameters that minimize the cost Revenue Optimization • Find the price for which revenue is optimal
  • 20. Integrals • Example 1: Area of the circle Sum of areas of the concentric strips • Example 2: Distance covered. • Area under the curve • Definite Integral - Concept • Definite Integral as the limit of the sum
  • 22. What are vectors? •Vectors in physics: •Arrows floating in space ex. Force, Velocity, Displacement etc. •Computer Science idea: •List of numbers •Generalizing the concept •Arrows rooted at origin with the numbers representing the walk along each direction
  • 23. FundamentalVector Operations•Adding Vectors •Multiply by a constant number. •Or in other words scale a vector •Hence the multiplier is called scalar •In fact every vector in 2 dimensions is the result of an addition of 2 scaled unit vectors.
  • 24. Some terminology • Basis vectors • Span of the vectors • If third vector is a linear combination of the 2 vectors you are trapped into the same flat sheet •In other words, including scaled version of one / both the vectors as a third vector doesn’t give you access to any new vectors (or even when the third vector is got by scaling and adding the 2 vectors)
  • 25. Linearly Dependent VectorsWhenever you can remove a vector from the set of vectors, without reducing the span, we say they are linearly dependent vectors Technical definition of basis vectors for a given space – set of linearly independent vectors that span that space
  • 26. The single most important concept in linear algebra that was never taught !! •What is a matrix? •set of vectors defining where each unit vector lands
  • 27. The single most important concept in linear algebra that was never taught !! •What do we mean when we say that Matrices are Linear transformations? •Transformations: Stretching, squishing, rotation , flipping of space •Linear • Origin remains fixed in place • All lines remain lines In general keeping grid lines parallel and evenly spaced
  • 29. Matrix multiplication ≡ function composition • If you apply M1 on A, then apply M2 on the result it is the same as applying M3 (=M1M2) on A • Matrix multiplication is not commutative M1M2 ≠ M2M1 • Matrix multiplication is associative (M1M2)M3 = M1(M2M3)
  • 30. Determinant •Determinant of a matrix corresponds to the area enclosed by the by the parallelogram (parallelepiped) formed by the vectors in the matrix •i-hat and j-hat form a square of area 1 Thus determinant is nothing but the amount by which the area scales when the space is transformed by the given matrix
  • 31. Determinant •Interpretation of the negative value of the determinant •In 3 dimensions? • the determinant of a transformation is the volume of the parallelepiped enclosed by the 3 vectors in the that space. •What happens in 1 dimension?
  • 32. System of linear equations •2𝑎 + 3𝑏 + 𝑐 = 5 •3𝑎 + 4𝑏 + 6𝑐 = 8 •5𝑎 + 3𝑏 + 9𝑐 = 3 Can these be represented as a matrix? 𝐴𝑥 = 𝑣
  • 33. Inverse of a Matrix A x = v •Which means we are looking for a vector x which was transformed by A into v •To find x we can apply another transformation B on Ax that reverses the effect of A on x. i.e. it transforms v to back to x. •Since B reverses the effect of A , it called A inverse, notation: A-1
  • 34. Rank of a matrix •Finding the transformation A-1 is possible when determinant is non-zero •When determinant is zero, the number of dimensions in the output vector is less than the number of dimensions in the input vector •Rank of a transformation is the number of dimensions in the output vector. •Thus if the rank of the matrix is less than the number of dimensions of the input vector it won’t be possible to find the inverse of the transformation
  • 35. What about non-square matrices? •3x2 matrix transforms a vector from 2 dimensions to 3 dimensions •2x3 matrix transforms a vector from 3 dimensions to 2 dimensions
  • 36. Dot Products •Numerically is just multiplying the respective coordinates and adding the result. •Geometrically it is equivalent to projecting one vector (v) onto the span of another vector (w) and multiplying the magnitude of the projection (of v on w) with the magnitude of w
  • 37. Cross Products •Numerically: • v x w | i-hat v1 w1 | • Det | j-hat v2 w2 | | k-hat v3 w3 | •Geometrically: •Cross-product is a vector with magnitude equal to the area of the parallelogram enclosed by v and w pointing in a direction perpendicular to v and w as suggested by the right-hand-rule.
  • 38. Eigen Values and Eigen Vectors •In case of some transformations, there exist some vectors which are not knocked off from their span, they are only scaled as a result of the transformation – •these are Eigen Vectors
  • 39. Eigen Values and Eigen Vectors •The amount by which each Eigen vector gets scaled (after transformation) is its Eigen Value •For a transformation A, if there exists a vector v and scalar λ such that 𝐴 𝑣 = 𝜆 𝑣 Then v is called the Eigen Vector and λ is the corresponding Eigen value
  • 40. ~THE END~ I’ll be back ;-) india.odsc.com

Notas do Editor

  1. House keeping announcements: We have 41 people participating in the workshop – more is the number of people longer it takes to understand – effectively you get less than your money’s worth Thus, pay attention !! Don’t get distracted and don’t distract others Please be on time after each break !
  2. Euclidean Rapid Fire
  3. What is Pi? A greek letter? Yes .. It is!
  4. Measurements. Number Lines visualization. Draw 4 volunteers – 2 each holding out 2 number lines.
  5. Try to cover rotations through various angles like 45, 30, 60 .. Try to use sin(theta), cos (theta) etc. Shear, flip and squishing to one line
  6. Try to cover rotations through various angles like 45, 30, 60 .. Try to use sin(theta), cos (theta) etc. Shear, flip and squishing to one line
  7. Average growth rate in the 4th year: 2^4 – 2^3 = $ 8 per year Average growth rate in the 4th year: 2^5 – 2^ 4 = $ 16 per year. It might be tempting to say that 𝑑𝑦 𝑑𝑡 = 2 𝑡 What is the growth in 1 month, 1 week, 1 day, 1 second ? Calculations by hand for smaller and smaller values of h for lim ℎ→0 (2 ℎ −1) ℎ
  8. Trivia about how calculus came into being Distance covered by the car example.. Etymology of the word Integral. Integral as the anti-derivative. Fundamental theorem of calculus
  9. How to identify all points in 2 dimensional space.
  10. Scaling of an organization
  11. Basis vectors We can choose any 2 distinct vectors to be the basis vectors and still represent each point in 2 dimensional space uniquely i.e. we can represent every possible vector using the scalars Only thing is that we get different values compared to i-hat and j-hat If you fix one of those scalars and let the other one change freely, the tip of the second vector draws a straight line. If you let both the scalars move freely – 3 things can happen You cover every point in space When the 2 vectors fall on same line you cover only points on the line or when you can get one vector is a scalar multiple of the other. When both your scalars are zero - You remain stuck at the origin! The set of all possible vectors you can reach with a linear combination of given pair of vectors is called the Span of those 2 vectors
  12. Start: talk about Transformation of space after 1 End: Thus given any vector we can find out where it lands in the transformed space In other words, a linear transformation of a 2-d space is completely described by just 4 numbers – the coordinates where i-hat lands and the coordinates where j-hat lands
  13. End: Thus given any vector we can find out where it lands in the transformed space In other words, a linear transformation of a 2-d space is completely described by just 4 numbers – the coordinates where i-hat lands and the coordinates where j-hat lands
  14. Try to cover rotations through various angles like 45, 30, 60 .. Try to use sin(theta), cos (theta) etc. Shear, flip and squishing to one line
  15. Non –commutative
  16. At 2 Case of the transformation with zero determinant
  17. At 2 Case of the transformation with zero determinant
  18. End with - There is still a way to find the inverse in some cases. But that’s beyond the scope of discussion here
  19. Illustrate using rubber bands
  20. Perform the stretching squishing activity with 2 strong volunteers! Transformation | 3 1 | | 0 2 | A v = λ I v (A-λI) v = 0 The diagonal elements of
  21. Transformation | 3 1 | | 0 2 | A v = λ I v (A-λI) v = 0 The diagonal elements of