The makeGaussianMatrix function returns the M by M+1 system of linear equations representing the coefficient derivative equations for the minimizing the least squares error.

The input argument {NumMatrix} must be an N by M+1 number matrix representing the original independent variable observations with the dependent variable in the last column in the form of:

x x x x... y

x x x x... y


x x x x... y

The output argument will be an M by M+1 number matrix containing the dot products of the column vectors of the original observation matrix XY, where: G[r,c] = vectorDotProduct(colXY[r],colXY[c]).


The makeGaussianMatrix function is a non-destructive function useful when you want to create a Gaussian matrix in preparation for primal form regression. See Sedgewick[2] chap 38.




(makeGaussianMatrix NumMatrix )

Arguments Name Type Description
Argument:NumMatrixNumMatrix Matrix containing the original independent and dependent observations


A new number Matrix object containing the dot products of the column vectors of the original observation matrix.



Here are a number of links to Lambda coding examples which contain this instruction in various use cases.


Argument Types

Here are the links to the data types of the function arguments.


Here are also a number of links to functions having arguments with any of these data types.

append binaryInsert boolean cdr
compareEQ compareLE compareLT compareNE
compare cons copy delete
dimension display insert inside
integer isAtom isBitVector isBoolean
isByteVector isChar isCharacter isComplex
isDate isDictionary isDirectory isEqual
isError isFloatVector isIdentical isInside
isIntegerVector isInteger isLambda isMatrix
isMember isMoney isNumberMatrix isNumberVector
isNumber isObjectVector isObject isPair
isPcodeVector isString isStructure isSymbol
isText isType isVector length
list macroReplace makeGaussianMatrix makeGramMatrix
makeQuotedList map mapc matrixGaussianEliminate
matrixGaussianSubstitute member money new
number offset pair parent
parse pointer ref remove
resize reverse saveObject setCar
setCdr setLastCdr setq sizeof
sort string type uniqueInsert
vectorFill writelg writeln

Analytic Information Server (AIS)

AIS Component Systems

  • Smartbase Engine
  • QT C++ Libraries
  • MySQL Relational Database
  • AIS Lisp Libraries
  • Rapid Analytic Demo IDE