残差
導入済み
7:48
二変量データの探索
ある小学校から三十人の子供。各子供について二つの数値:靴のサイズと読力テストの得点。子供ごとに一点プロットする。パターンを把握するのは難しい…
英語のナレーション・英語と中国語の字幕を切り替え可能
このレッスンの内容
| English | 意味 |
|---|---|
| residual/rɪˈsɪdʒuːəl/ | 残差 |
| data point | |
| regression line/rɪˈɡreʃn laɪn/ | |
| residual plot/rɪˈsɪdʒuːəl plɒt/ | 残差プロット |
| scatterplot/ˈskætəplɒt/ | A plot of paired data as points, showing form, direction, strength and outliers. |
| non-linear | |
| linear mean model | |
| Least-squares regression/liːst skweəz rɪˈɡreʃn/ | |
| linear model/ˈlɪnɪə ˈmɒdl/ | A model that describes a relationship using a linear equation. |
各予測の誤りはどれくらいか?
- 残差は残り部分:観測値から予測値を引いたもの、$y - \hat{y}$ 。
- 数据点と回帰直線の間の垂直の隙間である。
- 正の残差: 点が直線の上にある(モデルが過小推定した)。
- 負の残差: 点が直線の下にある(モデルが過大推定した)。

残差プロット
- 残差プロットは、残差($y$軸)を$x$(または$\hat{y}$)に対してプロットしたものである。
- これにより、元の散布図では目に見えなかった残りのパターンを増幅して可視化できる。
- 各点の高さは、その予測値がいかにずれていたかを示している。
- 残差が$=0$の水平線は「完璧な予測」を表す。
直線近似は適切か?
- 良い兆候: 残差がゼロの周りにランダムに散らばっている → 残りのパターンがなく、直線による近似が良好である。
- 悪い兆候: 残差にカーブやU字型が見られる → 真の形は非線形である。
- 扇形(ファン形状)(ばらつきが増加する様子)にも注意が必要で、これは不均一な分散を示唆する。
- 残差プロットは、線形回帰が適切な選択であったかどうかを決定する重要なテストである。
過大・過小推定
- 残差が負のところでは、モデルは過大推定している(推測が高すぎた)。
- 残差が正のところでは、モデルは過小推定している(推測が低すぎた)。
- 同じ符号の残差が連続している場合、その領域で直線が系統的にずれていることを意味する。
- 符号がランダムで値も小さい → モデルは適格に機能している。
符号の扱いに混乱しやすい:残差は 観測値 − 予測値 で定義される。正の残差は実際の値が直線より上にあるため、モデルが過小推定したことを示す。また、残差プロットが曲線状であることは、元の散布図が「十分に近い」と見えても、直線モデルが誤りであることを最も明確に示す証拠である。
ある家の価格が$300$と予測されたが、実際には$330$(千ドル単位)で売却された。
- 残差 は$= 330 - 300 = +30$ — 正。
- 点は直線の上にある;モデルはこの家を過小推定した。
- 近傍の多くの点が正の残差を持つ場合、その領域で直線が低めにバイアスされている。
残差とは$y - \hat{y}$(観測値 − 予測値)であり、正=直線の上(過小推定)、負=下(過大推定)を意味する。ランダムな散らばりが$0$の周りにある残差プロットは線形モデルを支持し、曲線状のパターンは関係性が非線形であり、直線では不適切であることを示す。
残差が4であることからを書く
- 観測されたyの値は18 です。
- 直線は14を予測する。30の授業残余は別の点である。
An observed response is y=18 and the line predicts 14. Find the residual and explain what its sign says about the prediction.
Residual equals observed minus predicted.
An observed response is 18 and its predicted value is 14. What is the residual?
難易度 1/5 · 100 コイン + 今日初回達成時の小ボーナス
18 minus 14 is 4. Other options — 30 (the other point); 32 (the two values added).
Residuals = vertical gaps to the line
Each point's vertical distance from the line is its residual.
A house predicted at 300 sold for 330 (thousands). What is the residual?
難易度 2/5 · 140 コイン + 今日初回達成時の小ボーナス
Residual = observed − predicted = 330 − 300 = 30.
A positive residual tells you the point is... and the model...
難易度 1/5 · 100 コイン + 今日初回達成時の小ボーナス
Observed > predicted → point above line → model underpredicted.
What does a residual plot with an obvious curved (U-shaped) pattern tell you?
難易度 1/5 · 100 コイン + 今日初回達成時の小ボーナス
A leftover curve means the true form isn't linear.
A residual plot with points scattered randomly around zero suggests a linear model is appropriate.
難易度 1/5 · 100 コイン + 今日初回達成時の小ボーナス
Random scatter, no pattern → a line fits well.
A residual is computed as observed minus ___.
難易度 1/5 · 100 コイン + 今日初回達成時の小ボーナス
Residual = y − y-hat = observed − predicted.
何が問題でしたか?この内容はサイトの運営チームだけが確認します。