Learn R Programming

freqdom (version 1.0.4)

MSE: Compute a mean square error between X and Y

Description

Compute the mean square error between \(X_t\) and \(Y_t\), as $$\frac{1}{n} \sum_{k=1}^n \|X_k-Y_k\|^2,$$ where \(\|\cdot\|\) denotes a Euclidian norm and \(n\) is the number of observations.

Usage

MSE(X, Y)

Arguments

X

first matrix to compare

Y

second matrix to compare

Value

Estimated mean square error