Topic 7: Some Required Concepts In Mathematics Flashcards
What is the notation if function F depends on certain parameters z
Fz (subscript z)
⟨w,x⟩
The dot product between w and v
w1x1 + w2x2 + …+ wnxn
What is Lipschitzness
A function F ∶ Rp → R is said to be L-Lipschitz if for all x,y:
|F(x) - F(y) | ≤ L|| x - y ||
magnitude of the gradient is bounded by a constant factor throughout its domain
What is || x- y || notation
The distance (usually euclidean) between two vectors x and y
Why is squared loss not lipschitz
There doesn’t exist a single Lipschitz constant that can bound the difference in function values for all pairs of input values
The key is that value L changes with every example
What is lipschitzness in english terms
A function is lipschitz if it does not change too rapidly
Is huber loss lipschitz
yes
How can we informally describe a convex function F
F’s graph between any two points x1 and x2
always lie below the straight line joining the points (x1, F(x1)) and (x2, F(x2))
What is Convexity
A function F:Rp -> R si convex is for all Real x,y and θ between [0,1]:
F(θx + (1 − θ)y) ≤ θF(x) + (1 − θ)F(y)
When is a function “strictly convex”
If the convex equation never becomes an inequality (only <)
When does the convex inequality always become an equality
At the end of the chord, at points θ = 0,1
When is a function definitely not strictly convex
If at any point in the line it becomes a flat line (and is not curving up) eg. ReLU
Can still be convex though!!!
What is the Convexity equation for differentiable functions
An at least once differentiable function F ∶ Rp → R is convex if ∀ x, y we have:
F(x) + ∇F(x)⊺(y − x) ≤ F(y)
ensures the function lies above the tangent line at (x, F(x))
What is ∇F(x)
The gradient (1st derivative) of F(x)
What is p⊺q
The dot product of vectors p and q
(p1q1 + p2q2+…+pnqn)
A function is a differentiable convex function if…
for any point x, the tangent to the function at that point is below the graph of the function
What is α−Strong Convexity
For some α > 0, a F: Rp -> R is α−Strongly Convex if:
F(x) - α/2 ||x||^2 is a convex function
Essentially adding α/2 x^2 to any convex function, yields a α-strongly convex function
Strongly convex functions are strictly convex and convex
The larger the α…
The stronger the convexity