# 回帰分析って何? ###### tags: `quality-management` ## 凡例 観測される変数を四角で囲む。 ```graphviz strict graph { node [shape=rectangle] Y X } ``` 観測されない変数を丸く囲む。 ```graphviz strict graph { node [shape=ellipse] Y X } ``` 2変数の間の関係を矢印なしの線で表し、その関係の強さを線の上に記す。 ```graphviz strict graph { node [shape=rectangle] Y -- X [label="ρ"] rankdir=LR } ``` 2変数の間の因果関係を矢印のある線で表し、その関係の強さを線の上に記す。 矢印は原因から結果に向かう方向を表す。 ```graphviz strict digraph { node [shape=rectangle] Y -> X [label="β"] rankdir=LR } ``` ## 単回帰分析:条件がアウトカムに及ぼす影響を分析する手法 関連性の分析 ```graphviz strict graph { node [shape=rectangle] 誤差 [shape=ellipse] rankdir=LR 身長 -- 体重 [label = "β"] 体重 -- 誤差 [label = "σ"] } ``` 因果関係の分析 ```graphviz digraph { node [shape=rectangle] e [shape=ellipse] rankdir=LR X -> Y [label = "β"] e -> Y [label = "σ"] } ``` ## 重回帰分析:様々な条件がアウトカムに及ぼす影響を分析する手法 関連性の分析 ```graphviz strict graph A { X1 [shape = box] X2 [shape = box] X3 [shape = box] Xp [shape = box] Y [shape = box] rankdir=LR X1 -- Y [label = "β1"]; X2 -- Y [label = "β2"]; X3 -- Y [label = "β3"]; Xp -- Y [label = "βp"]; e -- Y [label = "σ"]; } ``` 因果関係の分析 ```graphviz digraph A { X1 [shape = box] X2 [shape = box] X3 [shape = box] Xp [shape = box] Y [shape = box] rankdir = LR X1 -> Y [label = "β1"]; X2 -> Y [label = "β2"]; X3 -> Y [label = "β3"]; Xp -> Y [label = "βp"]; e -> Y [label = "σ"]; } ``` ## データの種類 介入データ(実験データ) * 説明変数の分布は、条件設定の度数分布。 * 説明変数は設定したり、変更したりできる。 観察データ * 説明変数の分布は、標本の分布。 * 説明変数は設定したり、変更したりできるとは限らない。 ## 分析の目的 因果推論の入り口:目的変数の変化に関する因果の構造を明らかにする。(介入データ) 調査:目的変数に影響を与える変数(要因)とその影響の大きさを明らかにする。(観察データ) この違いを、ボストンの住宅価格のデータを分析しながら、見ていきます。 ## 回帰分析の結果 JMPでは、様々な数値やグラフが、分析をしていく順序で上から下に並んで出力されます。 パラメータ推定値、まで問題なく到達すると、その推定値を検討し始めてよくなります。 1. [行ごとの診断統計量](https://www.jmp.com/support/help/ja/15.2/index.shtml#page/jmp/row-diagnostics.shtml#ww694286) a. 予測値の実測値のプロット:正の相関が強く見えるといい b. [てこ比プロット](https://www.jmp.com/support/help/ja/15.2/index.shtml#page/jmp/leverage-plots.shtml) c. [予測値と残差のプロット](https://www.jmp.com/support/help/ja/15.2/index.shtml#page/jmp/row-diagnostics.shtml) d. スチューデント化残差 2. [効果の要約](https://www.jmp.com/support/help/ja/15.2/index.shtml#page/jmp/interactive-effect-summary.shtml)レポート 3. [回帰レポート](https://www.jmp.com/support/help/ja/15.2/index.shtml#page/jmp/regression-reports.shtml#ww578827) a. [あてはめの要約](https://www.jmp.com/support/help/ja/15.2/index.shtml#page/jmp/summary-of-fit.shtml#ww846953) b. [分散分析](https://www.jmp.com/support/help/ja/15.2/index.shtml#page/jmp/analysis-of-variance.shtml#ww137405) c. [パラメータ推定値](https://www.jmp.com/support/help/ja/15.2/index.shtml#page/jmp/parameter-estimates-2.shtml#ww735425) d. [効果の検定](https://www.jmp.com/support/help/ja/15.2/index.shtml#page/jmp/effect-tests.shtml#ww553238) 4. 残差の正規分位点プロット 5. 要因のスクリーニング 6. パラメータの母集団 7. 推定値の相関 8. 無相関にするための変換 9. 正規プロット 10. 予測プロファイル でも、回帰分析の前にやることがあります。 * 概念図を描く * 特性要因図を描く 途中までの流れを[チェックシート](https://hackmd.io/@watalu/HylwEM7dq)にまとめてみました。 ## 回帰分析の流れ 1. データを分析する目的を設定する 2. 目的の対象についての目的の変数とその他の変数を含むデータを入手する 3. 変数の概念図を描く 4. 特性要因図を描く 5. すべての変数を含めた回帰分析を行う (JMP:〔モデルのあてはめ〕→〔標準最小2乗〕) 6. 当てはまりの良さを確認する (JMP:〔モデルのあてはめ〕→〔標準最小2乗〕) 7. モデルの有意性と各変数の有意性を検討する (JMP:〔モデルのあてはめ〕→〔標準最小2乗〕) 8. 変数の変換、組み合わせ、選択などを試したくなったら試す (JMP:〔モデルのあてはめ〕→〔ステップワイズ法〕) 9. 途中から得られた重回帰式の解釈を検討し始めておく 10. 最終的に問題のないモデルを得たらそれを用いて結論を得る
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up