Regression, financial models and residuals
導入済み
5:51
Data presentation and interpretation
Section L is presenting and interpreting data. To compare data sets, always give a centre and a spread. The mean uses every value but is pulled by outliers…
英語のナレーション・英語と中国語の字幕を切り替え可能
このレッスンの内容
| English | 意味 |
|---|---|
| outlier/ˈaʊtlaɪə/ | An observation unusually far from the rest of the data or from the pattern expected under a model. |
| scatter diagram/ˈskætə ˈdaɪəɡræm/ | |
| product moment correlation coefficient/ˈprɒdʌkt ˈməʊmənt ˌkɒrɪˈleɪʃn ˌkəʊɪˈfɪʃənt/ | |
| gradient/ˈɡreɪdɪənt/ | The change in the vertical coordinate divided by the change in the horizontal coordinate. |
| residual/rɪˈsɪdʒuːəl/ | 残差 |
| extrapolation/ekˈstræpəleɪʃn/ | |
| explanatory variable/ekˈsplænətəri ˈveərɪəbl/ |
4つのデータセット、1本の直線、1973年
- 1973年、統計学者のフランシス・アンスコムは4つの小さなデータセットを発表した。4つとも$x$の平均値(9)、$y$の平均値(7.50)、相関係数(0.816)、回帰直線$y = 3.00 + 0.500x$が同じである。しかし、グラフに表すと、1つは曲線、1つは外れ値を含み、1つは垂直な直線とそこから遠く離れた1点になる。アンスコムが伝えたかったことは、まず必ず散布図を見ることである。
- A-Levelでは、相関と回帰直線を解釈する。手計算では求めない。
相関
- 積率相関係数$r$は$-1$以上$1$以下の値をとる。$\pm 1$に近いほど、強い直線的な関係がある。
- 相関は因果関係を意味しない。例えば、アイスクリームの売上と溺水事故はどちらも夏に増える。
Which value of $r$ shows the strongest linear relationship?
難易度 1/5 · 100 コイン + 今日初回達成時の小ボーナス
Closest to $\pm 1$.
Countries with more TVs per person have higher life expectancy. What can you conclude?
難易度 1/5 · 100 コイン + 今日初回達成時の小ボーナス
Correlation is not causation.
回帰直線
- $x$に対する$y$の回帰直線$y = a + bx$は、$x$から$y$を予測する。傾き$b$は、$x$が1単位増えるごとの$y$の変化を表す。
- 切片$a$は、$x = 0$のときの$y$の値であり、$x = 0$がデータの範囲内にある場合にのみ意味を持つ。
賛成 $y = 12 + 0.6x$ (y = mass in kg, x = age in months), what does 0.6 mean?
難易度 1/5 · 100 コイン + 今日初回達成時の小ボーナス
Gradient = change in $y$ 単価あたり $x$.
計算例:配達時間
12件の配達について、距離$d$(km)と時間$t$(分)から$t = 8 + 2d$が得られ、$2 \le d \le 9$である。この直線を解釈し、2つの予測を評価する。
- 傾き:距離が1 km増えるごとに、時間が約2分増える。切片:積み込みや駐車などにかかる固定時間が約8分である。
- $d = 5$:$t = 18$分。内挿なので信頼できる。21分かかった配達の残差は$21 - 18 = 3$分である。
- $d = 30$:$t = 68$。9 kmを大きく超える外挿なので信頼できない。高速道路や交通状況などの影響がある。
Regression, financial models and residuals
A linear model y=a+bx has intercept a and slope b with contextual units
Use the positive residual to explain how the fitted model misses this observation.
With $t = 8 + 2d$, predict the time for a 6.5 km delivery.
難易度 2/5 · 140 コイン + 今日初回達成時の小ボーナス
$8 + 13$.
A 4 km delivery took 14 minutes. Find its residual using $t = 8 + 2d$.
難易度 2/5 · 140 コイン + 今日初回達成時の小ボーナス
Observed 14 minus predicted 16.
外れ値とデータのクリーニング
- 外れ値は$r$や回帰直線を大きく変えることがある。取り除く前に、それが誤りかどうかを確認する。
- AQAの大規模データセットにはクリーニングが必要である。欠損値やあり得ない値は、理由を明示して取り除く。
どの変数を予測するか
- $y$を予測するには、$x$に対する$y$の回帰直線を使う。この式を変形して$x$を予測してはいけない。
- 説明変数(ここでは距離)は$x$軸にとる。
強い相関があっても、直線があらゆる範囲で使えるとは限らない。 データの範囲外を予測すること(外挿)は、同じ傾向が続くと仮定しているが、実際には続かないことが多い。
Data were collected for $2 \le d \le 9$. A prediction at $d = 7$ is extrapolation.
難易度 1/5 · 100 コイン + 今日初回達成時の小ボーナス
7 is inside the range: interpolation.
まず散布図を見る。$r$から直線的な関係の強さと方向を読み取り、傾きは1単位あたりの変化として解釈する。切片は$x = 0$がデータの範囲内にある場合にのみ解釈する。残差は観測値から予測値を引いたものである。内挿は信頼できるが、外挿は信頼できない。また、相関から因果関係を読み取ってはいけない。
Using the large data set, a student finds $r = 0.78$ between daily mean temperature (°C) and sunshine hours in summer, and the line $s = -3.1 + 0.55T$. The observed temperatures range from 10 °C to 30 °C. Interpret the gradient, then say whether the intercept and a prediction at $T = 35$ are meaningful.
Interpretation, not calculation.
何が問題でしたか?この内容はサイトの運営チームだけが確認します。