Skip Links

USGS - science for a changing world

Techniques and Methods 7—C10

Computing Ordinary Least-Squares Parameter Estimates for the National Descriptive Model of Mercury in Fish

By David I. Donato

Thumbnail of report PDF (204 KB)

Abstract

A specialized technique is used to compute weighted ordinary least-squares (OLS) estimates of the parameters of the National Descriptive Model of Mercury in Fish (NDMMF) in less time using less computer memory than general methods. The characteristics of the NDMMF allow the two products X'X and X'y in the normal equations to be filled out in a second or two of computer time during a single pass through the N data observations. As a result, the matrix X does not have to be stored in computer memory and the computationally expensive matrix multiplications generally required to produce X'X and X'y do not have to be carried out. The normal equations may then be solved to determine the best-fit parameters in the OLS sense. The computational solution based on this specialized technique requires O(8p2+16p) bytes of computer memory for p parameters on a machine with 8-byte double-precision numbers. This publication includes a reference implementation of this technique and a Gaussian-elimination solver in preliminary custom software.

First posted February 5, 2013

For additional information contact:
Director, Eastern Geographic Science Center
U.S. Geological Survey
Mail Stop 521 National Center
Reston, VA 20192
http://egsc.usgs.gov/

Part or all of this report is presented in Portable Document Format (PDF); the latest version of Adobe Reader or similar software is required to view it. Download the latest version of Adobe Reader, free of charge.


Suggested citation:

Donato, D.I., 2013, Computing ordinary least-squares parameter estimates for the National Descriptive Model of Mercury in Fish: U.S. Geological Survey Techniques and Methods, book 7, chap. C10, 9 p., available only at https://pubs.usgs.gov/tm/07/c10.


Contents

Abstract

Introduction

The National Descriptive Model of Mercury in Fish as a Formal Statistical Model

The Normal Equations for Ordinary Least-Squares Estimation

Matrix Form of Data for the National Descriptive Model of Mercury in Fish

Computing the Normal-Equation Matrix Products During Data Input

Computing With Weighted Observations

Computational Methods for Solving the Normal Equations

Reference Software

Summary

References Cited

Appendix


Accessibility FOIA Privacy Policies and Notices

Take Pride in America logo USA.gov logo U.S. Department of the Interior | U.S. Geological Survey
URL: http://pubsdata.usgs.gov/pubs/tm/07/c10/index.html
Page Contact Information: GS Pubs Web Contact
Page Last Modified: Friday, 02-Dec-2016 15:51:07 EST