SlideShare a Scribd company logo
2
Most read
Mathematics for Machine Learning
Multivariate Calculus
Formula sheet
Dr Samuel J. Cooper
Prof. David Dye
Dr A. Freddie Page
Definition of a derivative
f (x) =
df(x)
dx
= lim
∆x→0
f(x + ∆x) − f(x)
∆x
Time saving rules
- Sum Rule:
d
dx
(f(x) + g(x)) =
d
dx
(f(x)) +
d
dx
(g(x))
- Power Rule:
f(x) = axb
f (x) = abx(b−1)
- Product Rule:
A(x) = f(x)g(x)
A (x) = f (x)g(x) + f(x)g (x)
- Chain Rule:
If h = h(p) and p = p(m)
then
dh
dm
=
dh
dp
×
dp
dm
- Total derivative:
For the function f(x, y, z, ...), where each variable
is a function of parameter t, the total derivative is
df
dt
=
∂f
∂x
dx
dt
+
∂f
∂y
dy
dt
+
∂f
∂z
dz
dt
+ . . .
Derivatives of named functions
∂
∂x
1
x
= −
1
x2
(1)
∂
∂x
sin x = cos x (2)
∂
∂x
cos x = − sin x (3)
∂
∂x
exp x = exp x (4)
Derivative structures
f = f(x, y, z)
- Jacobian:
Jf =
∂f
∂x
,
∂f
∂y
,
∂f
∂z
- Hessian:
Hf =








∂2f
∂x2
∂2f
∂x∂y
∂2f
∂x∂z
∂2f
∂y∂x
∂2f
∂y2
∂2f
∂y∂z
∂2f
∂z∂x
∂2f
∂z∂y
∂2f
∂z2








1
Taylor Series
- Univariate:
f(x) = f(c) + f (c)(x − c) +
1
2
f (c)(x − c)2
+ ...
=
∞
n=0
f(n)
(c)
n!
(x − c)n
- Multivariate:
f(x) = f(c) + Jf (c)(x − c) + ...
1
2
(x − c)t
Hf (c)(x − c) + ...
Optimization and Vector Calculus
- Newton-Raphson:
xi+1 = xi −
f(xi)
f (xi)
- Grad:
f =








∂f
∂x
∂f
∂z
∂f
∂z








- Directional Gradient:
f.ˆr
- Gradient Descent:
sn+1 = sn − γ f
- Lagrange Multipliers λ:
f = λ g
- Least Squares - χ2
minimization:
χ2
=
n
i
(yi − y(xi; ak))2
σi
criterion: χ2
= 0
anext = acur − γ χ2
= acur + γ
n
i
(yi − y(xi; ak))
σi
∂y
∂ak
2

More Related Content

PDF
Decision Making with Hierarchical Credal Sets (IPMU 2014)
PPTX
Jacobson Theorem
PDF
Murphy: Machine learning A probabilistic perspective: Ch.9
PDF
Memory Efficient Adaptive Optimization
KEY
Calculus II - 7
PDF
Lesson 8: Curves, Arc Length, Acceleration
PDF
Decision Making with Hierarchical Credal Sets (IPMU 2014)
Jacobson Theorem
Murphy: Machine learning A probabilistic perspective: Ch.9
Memory Efficient Adaptive Optimization
Calculus II - 7
Lesson 8: Curves, Arc Length, Acceleration

What's hot (19)

PPT
Optimisation
PPT
29 conservative fields potential functions
PDF
Ada boosting2
PDF
Simplified Runtime Analysis of Estimation of Distribution Algorithms
PDF
Formal methods 8 - category theory (last one)
PDF
REBAR: Low-variance, unbiased gradient estimates for discrete latent variable...
PDF
Improved Trainings of Wasserstein GANs (WGAN-GP)
PPTX
Lagrange multiplier
PPT
32 stoke's theorem
PDF
Additional notes EC220
PDF
14 Bivariate Transformations
PDF
Calculus B Notes (Notre Dame)
PDF
Query Answering in Probabilistic Datalog+/{ Ontologies under Group Preferences
PPTX
8 arc length and area of surfaces x
PDF
Statistics for Economics Midterm 2 Cheat Sheet
PPTX
12 derivatives and integrals of inverse trigonometric functions x
PDF
Truth, deduction, computation lecture i (last one)
PDF
Lesson 26: The Fundamental Theorem of Calculus (slides)
Optimisation
29 conservative fields potential functions
Ada boosting2
Simplified Runtime Analysis of Estimation of Distribution Algorithms
Formal methods 8 - category theory (last one)
REBAR: Low-variance, unbiased gradient estimates for discrete latent variable...
Improved Trainings of Wasserstein GANs (WGAN-GP)
Lagrange multiplier
32 stoke's theorem
Additional notes EC220
14 Bivariate Transformations
Calculus B Notes (Notre Dame)
Query Answering in Probabilistic Datalog+/{ Ontologies under Group Preferences
8 arc length and area of surfaces x
Statistics for Economics Midterm 2 Cheat Sheet
12 derivatives and integrals of inverse trigonometric functions x
Truth, deduction, computation lecture i (last one)
Lesson 26: The Fundamental Theorem of Calculus (slides)
Ad

Similar to Mathematics for machine learning calculus formulasheet (20)

PPTX
CALCULUS PRESENTATION.pptx.ecnomic and finance course
PPTX
derivative -I for higher classes bca and bba
PDF
2. derivaties and application of derivaties
PDF
MATH&151 Final Project Fundamentals of Derivatives.pdf
PPTX
Rules of derivative
PPTX
Implicit function and Total derivative
PPTX
Rules of Derivative
PPT
Engineering Mathematics - Total derivatives, chain rule and derivative of imp...
PDF
Mathematician inretgrals.pdf
PPTX
Differential Calculus- differentiation
PPTX
presentation on differentiaton 1.pptm.pptx
PPTX
derivatives math
PPTX
1-Basic Rules of Differddddentiation.pptx
PPTX
Derivatives and it’s simple applications
PDF
mathspresentation-160419194459.pdf
PPTX
Derivatives Introduction, History and Applications in various Fields
PPTX
Presentation of calculus on application of derivative
PDF
3. Differential Calculus= Revised. arba minch
PPTX
Derivatives and their Applications
PPTX
Derivatives
CALCULUS PRESENTATION.pptx.ecnomic and finance course
derivative -I for higher classes bca and bba
2. derivaties and application of derivaties
MATH&151 Final Project Fundamentals of Derivatives.pdf
Rules of derivative
Implicit function and Total derivative
Rules of Derivative
Engineering Mathematics - Total derivatives, chain rule and derivative of imp...
Mathematician inretgrals.pdf
Differential Calculus- differentiation
presentation on differentiaton 1.pptm.pptx
derivatives math
1-Basic Rules of Differddddentiation.pptx
Derivatives and it’s simple applications
mathspresentation-160419194459.pdf
Derivatives Introduction, History and Applications in various Fields
Presentation of calculus on application of derivative
3. Differential Calculus= Revised. arba minch
Derivatives and their Applications
Derivatives
Ad

More from Nishant Upadhyay (15)

PDF
Multivariate calculus
PDF
Multivariate calculus
PDF
Matrices1
PDF
PDF
Pandas pythonfordatascience
PDF
Numpy python cheat_sheet
PDF
Maths4ml linearalgebra-formula
PDF
Sqlcheetsheet
PDF
Sql cheat-sheet
PDF
My sql installationguide_windows
PDF
Company handout
PDF
Python bokeh cheat_sheet
PDF
Foliumcheatsheet
PDF
Python matplotlib cheat_sheet
PDF
Python seaborn cheat_sheet
Multivariate calculus
Multivariate calculus
Matrices1
Pandas pythonfordatascience
Numpy python cheat_sheet
Maths4ml linearalgebra-formula
Sqlcheetsheet
Sql cheat-sheet
My sql installationguide_windows
Company handout
Python bokeh cheat_sheet
Foliumcheatsheet
Python matplotlib cheat_sheet
Python seaborn cheat_sheet

Recently uploaded (20)

PDF
Clinical guidelines as a resource for EBP(1).pdf
PPTX
IBA_Chapter_11_Slides_Final_Accessible.pptx
PPTX
Database Infoormation System (DBIS).pptx
PPTX
Introduction to Firewall Analytics - Interfirewall and Transfirewall.pptx
PPTX
1_Introduction to advance data techniques.pptx
PPTX
ALIMENTARY AND BILIARY CONDITIONS 3-1.pptx
PDF
Recruitment and Placement PPT.pdfbjfibjdfbjfobj
PPTX
Introduction to Basics of Ethical Hacking and Penetration Testing -Unit No. 1...
PDF
Galatica Smart Energy Infrastructure Startup Pitch Deck
PPTX
climate analysis of Dhaka ,Banglades.pptx
PPT
Reliability_Chapter_ presentation 1221.5784
PPTX
Introduction to Knowledge Engineering Part 1
PPTX
Moving the Public Sector (Government) to a Digital Adoption
PPTX
Data_Analytics_and_PowerBI_Presentation.pptx
PPTX
iec ppt-1 pptx icmr ppt on rehabilitation.pptx
PPTX
advance b rammar.pptxfdgdfgdfsgdfgsdgfdfgdfgsdfgdfgdfg
PPTX
Business Acumen Training GuidePresentation.pptx
PPTX
Supervised vs unsupervised machine learning algorithms
PPT
Chapter 2 METAL FORMINGhhhhhhhjjjjmmmmmmmmm
PDF
22.Patil - Early prediction of Alzheimer’s disease using convolutional neural...
Clinical guidelines as a resource for EBP(1).pdf
IBA_Chapter_11_Slides_Final_Accessible.pptx
Database Infoormation System (DBIS).pptx
Introduction to Firewall Analytics - Interfirewall and Transfirewall.pptx
1_Introduction to advance data techniques.pptx
ALIMENTARY AND BILIARY CONDITIONS 3-1.pptx
Recruitment and Placement PPT.pdfbjfibjdfbjfobj
Introduction to Basics of Ethical Hacking and Penetration Testing -Unit No. 1...
Galatica Smart Energy Infrastructure Startup Pitch Deck
climate analysis of Dhaka ,Banglades.pptx
Reliability_Chapter_ presentation 1221.5784
Introduction to Knowledge Engineering Part 1
Moving the Public Sector (Government) to a Digital Adoption
Data_Analytics_and_PowerBI_Presentation.pptx
iec ppt-1 pptx icmr ppt on rehabilitation.pptx
advance b rammar.pptxfdgdfgdfsgdfgsdgfdfgdfgsdfgdfgdfg
Business Acumen Training GuidePresentation.pptx
Supervised vs unsupervised machine learning algorithms
Chapter 2 METAL FORMINGhhhhhhhjjjjmmmmmmmmm
22.Patil - Early prediction of Alzheimer’s disease using convolutional neural...

Mathematics for machine learning calculus formulasheet

  • 1. Mathematics for Machine Learning Multivariate Calculus Formula sheet Dr Samuel J. Cooper Prof. David Dye Dr A. Freddie Page Definition of a derivative f (x) = df(x) dx = lim ∆x→0 f(x + ∆x) − f(x) ∆x Time saving rules - Sum Rule: d dx (f(x) + g(x)) = d dx (f(x)) + d dx (g(x)) - Power Rule: f(x) = axb f (x) = abx(b−1) - Product Rule: A(x) = f(x)g(x) A (x) = f (x)g(x) + f(x)g (x) - Chain Rule: If h = h(p) and p = p(m) then dh dm = dh dp × dp dm - Total derivative: For the function f(x, y, z, ...), where each variable is a function of parameter t, the total derivative is df dt = ∂f ∂x dx dt + ∂f ∂y dy dt + ∂f ∂z dz dt + . . . Derivatives of named functions ∂ ∂x 1 x = − 1 x2 (1) ∂ ∂x sin x = cos x (2) ∂ ∂x cos x = − sin x (3) ∂ ∂x exp x = exp x (4) Derivative structures f = f(x, y, z) - Jacobian: Jf = ∂f ∂x , ∂f ∂y , ∂f ∂z - Hessian: Hf =         ∂2f ∂x2 ∂2f ∂x∂y ∂2f ∂x∂z ∂2f ∂y∂x ∂2f ∂y2 ∂2f ∂y∂z ∂2f ∂z∂x ∂2f ∂z∂y ∂2f ∂z2         1
  • 2. Taylor Series - Univariate: f(x) = f(c) + f (c)(x − c) + 1 2 f (c)(x − c)2 + ... = ∞ n=0 f(n) (c) n! (x − c)n - Multivariate: f(x) = f(c) + Jf (c)(x − c) + ... 1 2 (x − c)t Hf (c)(x − c) + ... Optimization and Vector Calculus - Newton-Raphson: xi+1 = xi − f(xi) f (xi) - Grad: f =         ∂f ∂x ∂f ∂z ∂f ∂z         - Directional Gradient: f.ˆr - Gradient Descent: sn+1 = sn − γ f - Lagrange Multipliers λ: f = λ g - Least Squares - χ2 minimization: χ2 = n i (yi − y(xi; ak))2 σi criterion: χ2 = 0 anext = acur − γ χ2 = acur + γ n i (yi − y(xi; ak)) σi ∂y ∂ak 2