Professional Documents
Culture Documents
STA 5106 Computational Methods in Statistics I
STA 5106 Computational Methods in Statistics I
STA 5106
Computational Methods
in Statistics I
Department of Statistics
Florida State University
Class 8
September 26, 2023
1
Department of Statistics Florida State University
STA 5106 Computational Methods in Statistics I
Chapter 3
3.1 Introduction
2
Department of Statistics Florida State University
STA 5106 Computational Methods in Statistics I
Non-linear Optimization
• This chapter is devoted to solving for the optimal points of
given functions, linear or nonlinear.
• Example:
y = F(x, b) + ε
where x and y are random variables of interest, b is a constant
vector of parameters, and ε is a random error with the density
function given by fε.
5
Department of Statistics Florida State University
STA 5106 Computational Methods in Statistics I
Goal
• We are given a real-valued function f(x) where x ∈ R and the
goal is to find the roots of f, i.e., find x∗ such that f(x∗) = 0.
Order of Convergence
• For each of these algorithms we are interested in finding their
rate of convergence towards the roots of the function.
7
Department of Statistics Florida State University
STA 5106 Computational Methods in Statistics I
Simple Iterations
• Instead of solving for the roots of f we solve an equivalent
problem of finding the fixed point of another function g. g is
found in such a way that
f(x∗) = 0 ⇔ g(x∗) = x∗.
Algorithm
• Algorithm: Given a function f(x) find its roots using simple
iterations:
Newton-Raphson’s Method
• The slow convergence of the simple iteration is avoided by
using the Newton-Raphson’s Method (1690).
Basic Idea
• Approximate the function at a given point by a straight line.
In this case, the line is given by the line tangent to f at that
point.
11
Department of Statistics Florida State University
STA 5106 Computational Methods in Statistics I
Newton-Raphson’s Method
• Assume xi is the current estimate. Then
0 - f ( xi )
f ' ( xi ) =
xi +1 - xi
• Therefore,
f ( xi )
xi +1 = xi - , ( f ' ( xi ) ¹ 0)
f ' ( xi )
Algorithm
• Algorithm: Given a function f(x) find its roots using Newton-
Raphson’s method:
13
Department of Statistics Florida State University
STA 5106 Computational Methods in Statistics I
Important Application
• Newton-Raphson method is particularly useful for minimizing
(or maximizing) functions that are convex (or concave).
14
Department of Statistics Florida State University
STA 5106 Computational Methods in Statistics I
15
Department of Statistics Florida State University
STA 5106 Computational Methods in Statistics I
Convex Condition
• Theorem: Assume f is twice continuously differentiable on
[a, b]. If f’’ ≥ 0, then f is convex.
Proof: For any two points x1 and x2 in [a, b] and any t in [0,
1], let s = t x1 + (1–t) x2. Then use Taylor series,
f(x1) = f(s) + f’(s)(x1–s) + f’’(ξ1)(x1–s)2/2,
f(x2) = f(s) + f’(s)(x2–s) + f’’(ξ2)(x2–s)2/2.
Then
t f(x1) + (1–t) f(x2)
= f(s) + t f’’(ξ1)(x1–s)2/2 + (1–t) f’’(ξ2)(x2–s)2/2.
As f’’ ≥ 0,
t f(x1) + (1–t) f(x2) ≥ f(s) = f(t x1 + (1–t) x2).
Therefore, f is convex. 16
Department of Statistics Florida State University