Math Notation
Math Notation
Introduction to
Artificial Neural Networks
and Deep Learning
with Applications in Python
Introduction to Artificial
Neural Networks
with Applications in Python
Sebastian Raschka
D RAFT
Last updated: May 25, 2018
c 2016-2018 Sebastian Raschka
Contents
i
Website
Please visit the GitHub repository to download the code examples accom-
panying this book and other supplementary material.
If you like the content, please consider supporting the work by buy-
ing a copy of the book on Leanpub. Also, I would appreciate hearing
your opinion and feedback about the book, and if you have any ques-
tions about the contents, please don’t hesitate to get in touch with me via
[email protected]. Happy learning!
Sebastian Raschka
1
About the Author
2
Acknowledgements
I would like to give my special thanks to the readers, who provided feed-
back, caught various typos and errors, and offered suggestions for clarify-
ing my writing.
DRAFT 3
Appendix A
Mathematical Notation
Reference
DRAFT 4
APPENDIX A. MATHEMATICAL NOTATION REFERENCE 5
∈
/ not an element of symbol
DRAFT
APPENDIX A. MATHEMATICAL NOTATION REFERENCE 6
A.2 Sequences
n n
xi = x1 + x2 + · · · + xn
P P
xi summation of an indexed variable xi , defined as
i=1 i=1
n n
xi = x1 · x2 · . . . · xn
Q Q
xi product over an indexed variable xi , defined as
i=1 i=1
A.3 Functions
f :A→B function f with domain A and codomain B
arg max f (x) the x value that makes f (x) as large as possible
arg min f (x) the x value that makes f (x) as small as possible
DRAFT
APPENDIX A. MATHEMATICAL NOTATION REFERENCE 7
Rn real coordinate
space, written as a column vector with length n
x1
x2
x= ..
.
xn
xT transpose of a n × 1-matrix
T
x1
i x2
h
x T = x1 x2 . . . xn = .
..
xn
DRAFT
APPENDIX A. MATHEMATICAL NOTATION REFERENCE 8
In n × nidentitymatrix
1 0 0
I3 = 0 1 0
0 0 1
DRAFT
APPENDIX A. MATHEMATICAL NOTATION REFERENCE 9
A.5 Calculus
lim f (x) limit of f (x) as x approaches a
x→a
dn f
dxn n-th derivative of f
∂f
∂x partial derivative of f (x, y, ...)
with respect to variable x, where x is a scalar
∇f gradient of a function f : Rn → R
∂f
∂x1
∂f
∂x2
∇f (x1 , x2 , ..., xn ) = .
..
∂f
∂xn
∆f Laplacian of a function f : Rn → R
n
P ∂2f
∆f = ∂x2i
i=1
DRAFT
APPENDIX A. MATHEMATICAL NOTATION REFERENCE 10
Hf Hessian of a function f : Rn → R
∂2f ∂2f ∂2f
...
∂x∂12∂x
f
1 ∂x1 ∂x2
∂2f
∂x1 ∂xn
∂2f
...
Hf = ∂x2.∂x1 ∂x2 ∂x2 ∂x2 ∂xn
.. .. .. ..
. . .
∂2f ∂2f ∂2f
∂xn ∂x1 ∂xn ∂x2 ... ∂xn ∂xn
∂fj
∂xi partial derivative of component function fj and the
Df Jacobian matrix of f .
∂f1 ∂f1 ∂f1
...
∂x 1 ∂x2 ∂xn
∂f2 ∂f2
... ∂f2
∂x1 ∂x2 ∂xn
Df = . .. .. ..
.. . . .
∂fm ∂fm ∂fm
∂x1 ∂x2 ... ∂xn
R
f (x)dx indefinite integral of f (derivative of F ) with f : R → R
Rb
f (x)dx definite integral of f (derivative of F ) with f : R → R
a
DRAFT
APPENDIX A. MATHEMATICAL NOTATION REFERENCE 11
DRAFT
APPENDIX A. MATHEMATICAL NOTATION REFERENCE 12
sX sample standard deviation, the square root of the sample variance s2X
θ̂ estimator of a parameter θ
DRAFT
APPENDIX A. MATHEMATICAL NOTATION REFERENCE 13
A.7 Numbers
e Euler’s number, mathematical constant approximated by 2.71828
∞ infinity symbol
or 1.234E05
< less than sign, for example, x < 10 means that x is smaller than 10
> greater than sign, for example, x > 10 means that x is larger than 10
A.8 Approximation
≈ approximate equality, for instance, e ≈ 2.71828 is the approximation
of Euler’s number
f (x) ∼ g(x) symbol to assert that the ratio of two functions approaches 1
lim fg(x)
(x)
= 1, if x is small
x→0
lim f (x) = 1, if x is large
x→∞ g(x)
f (x) ∝ g(x) the two functions f (x) and g(x) are proportional to each other
DRAFT
APPENDIX A. MATHEMATICAL NOTATION REFERENCE 14
A.9 Logic
⇒ implication operator
for example, A ⇒ B translates to "if A implies B"
or "if A then B" (or "B only if A")
¬ negation, not
for example, ¬A means "not A" or
"if A is true then ¬A is false" and vice versa
DRAFT
Bibliography
DRAFT 15
Abbreviations and Terms
DRAFT 16
Index
DRAFT
17