No.11888¡¡½Å²óµ¢Ê¬ÀϤÎÍѤ¤Êý¡¡¡¡¡Ú£Í£Á£Ç£É¡Û¡¡2010/01/29(Fri) 10:25

¤¤¤Ä¤â¤´¶µ¼¨¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹¡£½Å²óµ¢Ê¬ÀϤÎÍѤ¤Êý¤Î¤´ÁêÃ̤Ǥ¹¡£­¡­¢¤òÆÈΩÊÑ¿ô¡¤­£¤ò½¾Â°ÊÑ¿ô¤È¤·¤Æ½Å²óµ¢Ê¬ÀÏ¤Î·ë ²Ì­¡¤¬­£¤Ë±Æ¶Á¤·¤Æ¤¤¤¿¡£¼¡¤Ë¡¤­¡­£¤òÆÈΩÊÑ¿ô¡¤­¢¤ò½¾Â°ÊÑ¿ô¤È¤·¤Æ½Å²óµ¢Ê¬ÀϤηë²Ì­¡¤¬­¢¤Ë±Æ¶Á¤·¤Æ¤¤¤¿¡£­¡¤Ï­¢¤È­£¤Ë±Æ¶Á¤·¤Æ¤¤¤ë¡¤¤È¤¤¤¦ÏÀÍýŸ³«¤Ï ÌäÂê¤Ê¤¤¤Î¤Ç¤·¤ç¤¦¤«¡£

No.11897¡¡Re: ½Å²óµ¢Ê¬ÀϤÎÍѤ¤Êý¡¡¡¡¡ÚÀÄÌÚÈË¿­¡Û¡¡2010/01/29(Fri) 14:11

´ÝÉÕ¤­Ê¸»ú¤Ï»È¤ï¤Ê¤¤¤è¤¦¤Ë¤ª´ê¤¤¤·¤Æ¤¤¤ë¤È¤³¤í¤Ç¤¹¡£

¤µ¤Æ¡¤¥Ö¥ì¥¤¥é¥Ã¥¯¤Î°ø²Ì¿äÏÀ¤Ë¤è¤ì¤Ð¡¤°Ê²¼¤Î¤è¤¦¤Ë¤Ê¤ê¤Þ¤¹¤Î¤Ç¡¤½Å²óµ¢Ê¬ÀϻȤäƤâƱ¤¸·ëÏÀ¤Ë¤Ê¤ë¤Î¤Ç¤·¤ç¤¦¤Í¡£
> set.seed(123)
> d <- data.frame(gendat(50, tri.mat(c(1, 0.5, 1, 0.7, 0.35, 1), 3)))
> colnames(d) <- paste("x", 1:3, sep="")
> round(cor(d), 2)
x1 x2 x3
x1 1.0 0.50 0.70
x2 0.5 1.00 0.35 # ¡ú 0.5*0.7 = 0.35 ¤Ë¤Ê¤ë¤è¤¦¤Ë¥Ç¡¼¥¿¤òºî¤Ã¤¿
x3 0.7 0.35 1.00
> ans1 <- lm(x3 ~ x1+x2, d)
> ans2 <- lm(x2 ~ x1+x3, d)
> summary(ans1)

Call:
lm(formula = x3 ~ x1 + x2, data = d)

Residuals:
Min 1Q Median 3Q Max
-1.90645 -0.51306 0.01180 0.56101 1.36602

Coefficients:
Estimate Std. Error t value Pr(>|t|)
(Intercept) -8.478e-17 1.042e-01 -8.14e-16 1
x1 7.000e-01 1.203e-01 5.82 5.04e-07 ***
x2 -1.700e-17 1.203e-01 -1.41e-16 1
---
Signif. codes: 0 ¡Æ***¡Ç 0.001 ¡Æ**¡Ç 0.01 ¡Æ*¡Ç 0.05 ¡Æ.¡Ç 0.1 ¡Æ ¡Ç 1

Residual standard error: 0.7366 on 47 degrees of freedom
Multiple R-squared: 0.49, Adjusted R-squared: 0.4683
F-statistic: 22.58 on 2 and 47 DF, p-value: 1.342e-07

> summary(ans2)

Call:
lm(formula = x2 ~ x1 + x3, data = d)

Residuals:
Min 1Q Median 3Q Max
-1.77750 -0.69526 -0.06105 0.56117 2.06808

Coefficients:
Estimate Std. Error t value Pr(>|t|)
(Intercept) -1.570e-17 1.263e-01 -1.24e-16 1.00000
x1 5.000e-01 1.769e-01 2.827 0.00689 **
x3 -8.794e-17 1.769e-01 -4.97e-16 1.00000
---
Signif. codes: 0 ¡Æ***¡Ç 0.001 ¡Æ**¡Ç 0.01 ¡Æ*¡Ç 0.05 ¡Æ.¡Ç 0.1 ¡Æ ¡Ç 1

Residual standard error: 0.8932 on 47 degrees of freedom
Multiple R-squared: 0.25, Adjusted R-squared: 0.2181
F-statistic: 7.833 on 2 and 47 DF, p-value: 0.001159


No.11898¡¡Re: ½Å²óµ¢Ê¬ÀϤÎÍѤ¤Êý¡¡¡¡¡ÚMAGI¡Û¡¡2010/01/30(Sat) 08:07

ÀÄÌÚÀèÀ¸¤¤¤Ä¤â¤´¶µ¼¨¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹¡£´ÝÉÕʸ»ú»ÈÍÑÂçÊѼºÎ餤¤¿¤·¤Þ¤·¤¿¡¥½Å²óµ¢Ê¬ÀϤǡ¤x¤Èy¤òÆÈΩÊÑ ¿ô¡¤z¤ò½¾Â°ÊÑ¿ô¤È¤·¤Æ½Å²óµ¢Ê¬ÀϤηë²Ìx¤¬z¤Ë±Æ¶Á¤·¤Æ¤¤¤¿¡£¼¡¤Ë¡¤x¤Èz¤òÆÈΩÊÑ¿ô¡¤y¤ò½¾Â°ÊÑ¿ô¤È¤·¤Æ½Å²óµ¢Ê¬ÀϤηë²Ìx¤¬y¤Ë±Æ¶Á¤·¤Æ¤¤¤¿¡£x¤Ï z¤Èy¤Ë±Æ¶Á¤·¤Æ¤¤¤ë¤È¤¤¤¦ÏÀÍýŸ³«¤Ë´Ø¤¹¤ë¤´ÁêÃ̤Ǥ¹¡¥¾åµ­ÆâÍƤϡ¤x¤¬y¤Èz¤Ë±Æ¶Á¤·¤Æ¤¤¤ë¤³¤È¤òÏÀ¤¸¤ë¤Ë¤Ï¡¤z¤Èy¤ÎÁê´Ø·¸¿ô=x¤Èz¤ÎÁê´Ø·¸ ¿ô*x¤Èy¤ÎÁê´Ø·¸¿ô¤«z¤Èy¤ÎÁê´Ø·¸¿ô*x=0¤ò¾ÚÌÀ¤¹¤ì¤Ð¤è¤¤¤È¤¤¤¦°ÕÌ£¤Ç¡¤¤½¤Î¼ÂÎã¤È¤·¤Æ¡¤t¸¡Äê¤ò¼Â»Ü¤·¤¿ÆâÍƤǤ·¤¿¤Ç¤·¤ç¤¦¤«¡¥¤½¤·¤Æ¡¤t¸¡Äê ¤Î·ë²Ì¡¤Í­°Õ¿å½à¤ò¥¯¥ê¥¢¤·¤Æ¤¤¤ì¤Ð¡¤¤½¤Î´í¸±Î¨¤Çx¤Ïz¤Èy¤Ë±Æ¶Á¤·¤Æ¤¤¤ë¤ÈÏÀ¤¸¤Æ¤è¤í¤·¤¤¤Î¤Ç¤·¤ç¤¦¤«¡¥Åª³°¤ì¤«¤â¤·¤ì¤º¶²½Ì¤Ç¤¹¡¥

¡ü ¡ÖÅý·×³Ø´ØÏ¢¤Ê¤ó¤Ç¤â¤¢¤ê¡×¤Î²áµî¥í¥°--- 043 ¤ÎÌܼ¡¤Ø¥¸¥ã¥ó¥×
¡ü ¡ÖÅý·×³Ø´ØÏ¢¤Ê¤ó¤Ç¤â¤¢¤ê¡×¤ÎÌܼ¡¤Ø¥¸¥ã¥ó¥×
¡ü ľÁ°¤Î¥Ú¡¼¥¸¤ØÌá¤ë