最小二乗法

固有値分解する

の最小化 の最小化 Mの最小固有値に対応する固有ベクトルが一番拡大率が小さいから、その固有ベクトル方向のが求める解 n <- 100 X <- matrix(rnorm(n*2),ncol=2) Y <- X %*% c(1,2) + rnorm(n,0,0.01) library(rgl) plot3d(X[,1],X[,2],Y) lm(Y ~ X-1) XY <…

最小二乗法のための微分

シリーズの目次 --- title: "Differentiate Matrix Formula 線形代数式を微分する" author: "ryamada" date: "2016年12月27日" output: html_document: toc: true toc_depth: 6 number_section: true --- ```{r setup, include=FALSE} library(knitr) opts_c…

最小二乗法のための微分

シリーズの目次 --- title: "Differentiate Matrix Formula 線形代数式を微分する" author: "ryamada" date: "2016年12月27日" output: html_document: toc: true toc_depth: 6 number_section: true --- ```{r setup, include=FALSE} library(knitr) opts_c…

行列で最小二乗法

シリーズの目次 --- title: "Least Squares with Matrix 行列で最小二乗法" author: "ryamada" date: "2016年12月23日" output: html_document: toc: true toc_depth: 6 number_section: true --- ```{r setup, include=FALSE} library(knitr) opts_chunk$se…