lscov
알려진 공분산을 사용한 최소제곱해(Least-squares Solution)
구문
설명
예제
입력 인수
출력 인수
알고리즘
m×n 행렬 A와 m×m 행렬 C가 일반 최소제곱 문제에서 완전 랭크인 경우 아래 표준 식은 m이 n보다 크거나 같을 때의 lscov의 출력값을 나타냅니다.
x = inv(A'*inv(C)*A)*A'*inv(C)*b mse = (b - A*x)'*inv(C)*(b - A*x)./(m-n) S = inv(A'*inv(C)*A)*mse stdx = sqrt(diag(S))
m이 n보다 작으면 평균제곱오차는 0입니다.
가중 최소제곱의 경우 C를 diag(1./w)로 대체할 때 표준 식이 적용됩니다. 보통최소제곱의 경우 C를 단위 행렬로 대체합니다.
lscov 함수는 표준 식보다 더 빠르고 안정적인 메서드를 사용하며, 랭크가 부족한 경우에 적용할 수 있습니다. 예를 들어, lscov는 촐레스키 분해 C = R'*R을 계산한 다음, 최소제곱 문제 (R'\A)*x = (R'\b)를 대신 풀기 위해 A\b를 풀 때 mldivide에서 사용한 것과 동일한 알고리즘을 사용합니다.
참고 문헌
[1] Paige, Christopher C. "Computer Solution and Perturbation Analysis of Generalized Linear Least Squares Problems." Mathematics of Computation 33, no. 145 (1979): 171–83. https://doi.org/10.2307/2006034.
[2] Golub, Gene H., and Charles F. Van Loan. Matrix Computations. Baltimore, MD: Johns Hopkins University Press, 1996.
[3] Goodall, Colin R. "Computation using the QR decomposition." Handbook of Statistics 9 (1993): 467–508. https://doi.org/10.1016/S0169-7161(05)80137-3.
[4] Strang, Gilbert. Introduction to Applied Mathematics. Wellesley, MA: Wellesley-Cambridge Press, 1986.
확장 기능
버전 내역
R2006a 이전에 개발됨
