next up previous contents
Next: 12.2.1.2 Weighted least-squares fitting Up: 12.2.1 Surface fitting Previous: 12.2.1 Surface fitting

12.2.1.1 ORDINARY LEAST SQUARES FITTING

The general problem of fitting functions to data located in a latitude $(\lambda)$ - longitude $(\phi)$ coordinate system can be expressed as follows. Let $S(\lambda_j,\phi_j)$ be an observation at location j and suppose that we can represent the observations at m locations by
\begin{displaymath}S(\lambda_j,\phi_j)=\sum_i^n f_i(\lambda_j,\phi_j) \Theta_i+ r_j \qquad for \qquad j = 1,2,...,m; m > n \end{displaymath} (12.3)
 

where fi, i = 1,2,...,n are known functions (usually polynomials), and rj is the error of approximation. The parameter to be estimated is $\Theta_i$. The matrix equivalent of the above expression is

\begin{displaymath}S = F \Theta + r \end{displaymath} (12.4)
 

where S is column vector of length m, F is an $m \timesn$ matrix, $\Theta$ is a column vector of length n, and r is a column vector of length m. Our analysis will be $S^a = F \Theta$. We find $\Theta$ by requiring that $(r^Tr) = \sum_j^m r_j^2$ be a minimum. This is equivalent to the requirement that

\begin{displaymath}\sum_j^m [S^a(\lambda_j,\phi_j) - S(\lambda_j,\phi_j]^2 =\su......n f_i(\lambda_j,\phi_j) \Theta_i -S(\lambda_j,\phi_j)\Bigr]^2 \end{displaymath} (12.5)
 

be a minimum. The solution is

\begin{displaymath}\Theta = (F^T F)^{-1} F^T S \end{displaymath} (12.6)
 

where T means matrix transpose and -1 means matrix inverse. (FT F)-1 FT is called a pseudo-inverse because F is not square.


next up previous contents
Next: 12.2.1.2 Weighted least-squares fitting Up: 12.2.1 Surface fitting Previous: 12.2.1 Surface fitting 

NCAR Advanced Study Program

http://www.asp.ucar.edu