²é¿´: 3268  |  »Ø¸´: 4
µ±Ç°Ö»ÏÔʾÂú×ãÖ¸¶¨Ìõ¼þµÄ»ØÌû£¬µã»÷ÕâÀï²é¿´±¾»°ÌâµÄËùÓлØÌû

09yschen

½ð³æ (ÕýʽдÊÖ)

[ÇóÖú] 50½ðÇó½â£º¹ØÓÚlack-of-fit testµÄÒâÒå¼°Ó¦ÓÃ

Îҵõ½µÄ±ê×¼ÇúÏßÊÇÓÃorigin½øÐÐÏßÐÔÄâºÏµÄ£¬µ«Éó¸åÈË˵¼Ó¸ölack-of-fit test£¬ÒòΪÎÒµÄrÖµ²»Ì«ºÃ¡£ÓÐλ´óÉñ¶ÔÎÒµÄÊý¾ÝÓÃmatlab½øÐÐÁËtest,£¬Çë¼ûhttp://muchong.com/bbs/viewthread.php?tid=4020335¡£µ«ÎÊÌâÊÇ£¬ÎÒ¿´²»¶®¡­¡­
ÎÒÏëÇëÎÊ£º±ê×¼ÇúÏßÊÇÓÃorigin½øÐÐÏßÐÔÄâºÏµÄ»¹ÊÇÓÃlack-of-fit testµÃµ½µÄÄØ£¬Ìû×ÓÀïµÄPÖµÄÜ˵Ã÷ʲô£¬Ó¦¸ÃÈçºÎÓ¦Óã¬ÎÒ¿´µ½Ö±½Ó¸øÁ˸öPÖµ£¬µ«Ò²ÓÐÈËÓÃFÖµ£¬ÕæµÄ²»Ã÷°×£¬ÏëÇë½ÌÏ£¬¶ÔÏÂÄÇλ´óÉñµÄÊý¾Ý£¬ÎÒÓ¦¸ÃÈçºÎÓ¦Óá£
Çó½â¡­¡­¼±
ÎÒÌØÒâÈ¡ÁËһЩÎÄÏ׵ıí´ï£¬Çë¼ûͼ£¬ÎÒÓ¦¸ÃÓÃÄĸöºÃ¡£
PS:ÎÒÊÇ×ö·ÖÎö·½·¨µÄ¡£






»Ø¸´´ËÂ¥

» ²ÂÄãϲ»¶

» ±¾Ö÷ÌâÏà¹Ø¼ÛÖµÌùÍÆ¼ö£¬¶ÔÄúͬÑùÓаïÖú:

ÒÑÔÄ   »Ø¸´´ËÂ¥   ¹Ø×¢TA ¸øTA·¢ÏûÏ¢ ËÍTAºì»¨ TAµÄ»ØÌû

dbb627

ÈÙÓþ°æÖ÷ (ÖøÃûдÊÖ)

¡¾´ð°¸¡¿Ó¦Öú»ØÌû

lack of fit£¬Ê§Äâ¼ìÑ飬ÆÀ¹ÀÄ£Ð͵ÄÄâºÏ¶È¡£Èç¹û p ֵСÓÚÄúÑ¡ÔñµÄ a ˮƽ£¬ÔòÖ¤Ã÷Ä£ÐÍδÄÜÓëÊý¾Ý׼ȷÄâºÏ¡£Äú¿ÉÄÜÐèÒªÌí¼ÓÏ»òÕ߱任Êý¾Ý£¬ÒÔ±ã¸ü׼ȷµØÎªÊý¾Ý½¨Ä£¡£
The more you learn, the more you know, the more you know, and the more you forget. The more you forget, the less you know. So why bother to learn.
3Â¥2012-01-06 23:15:49
ÒÑÔÄ   »Ø¸´´ËÂ¥   ¹Ø×¢TA ¸øTA·¢ÏûÏ¢ ËÍTAºì»¨ TAµÄ»ØÌû
²é¿´È«²¿ 5 ¸ö»Ø´ð

dbb627

ÈÙÓþ°æÖ÷ (ÖøÃûдÊÖ)

¡¾´ð°¸¡¿Ó¦Öú»ØÌû

¸Ðл²ÎÓ룬ӦÖúÖ¸Êý +1
09yschen(½ð±Ò+10): 2012-01-08 20:51:17
¼ûÌû
http://en.wikipedia.org/wiki/Lack-of-fit_sum_of_squares
http://muchong.com/bbs/viewthread.php?tid=4020335&pid=7&page=1#pid7
LOFRTEST Lack-of-fit test for regression model with independent replicate values.
   LOFRTEST(D,alpha) is a statistical test that gives information on the form
   of the model under consideration. A significant lack-of-fit suggest that there
   may be some systematic variation unaccounted for in the hypothesized model
   (chosen model does not well describe the data). It arises when there are exact
   replicate values of the independent variable in the model that provide an estimate
   of pure error. Pure error is in essence the amount of error that cannot be accounted
   for by any model. Then allows a test on whether there is error present aside
   from pure error. For the construction of the lack-of-fit test we need to examine
   three common types of linear models:
       - single mean (one parameter)
       - slope and intercept or common regression model (two parameters)
       - separate means for each x-value or one-way ANOVA (many parameters).
   So, the pure error is the error of the separate means on ANOVA and the total error
   in the residual resulting in the regression analysis: the lack-of-fit results
   to be the difference between this two sources of error,

                  SS(LOF) = SSR(Model) - SSE(ANOVA).

   Syntax: lofrtest(D,alpha)
      
   Inputs:
        D - matrix data (=[X Y]) (last column must be the Y-dependent variable).
            (X-independent variable entry can be for a simple [X], multiple [X1,X2,X3,...Xp]
            or polynomial [X,X^2,X^3,...,X^p] regression model).
    alpha - significance level (default = 0.05).

   Outputs:
        A complete summary (table) of analysis of variance partitioning sources of
        variation for testing lack-of-fit.

   Example from the data on height and weight of 19 students in Psy 202. Assigment 3 of Psych
   3030 from the Department of Psychology of the York University. Available on Internet at
   the URL address http://www.psych.yorku.ca/lab/psy3030/assign/assign3.htm
   We are interested to test with a significance-value = 0.05 if there is a lack-of-fit on the
   regression model due to the height replicate values.

               -------------------   -------------------
                 Height   Weight       Height   Weight
               -------------------   -------------------
                   60       90           68      140
                   60      100           68      135
                   62      110           70      160
                   62      116           70      145
                   62      120           70      148
                   66      140           71      143
                   66      170           71      135
                   68      130           74      195
                   68      117           74      164
                   68      155
               -------------------   -------------------

   Data matrix must be:
   D=[60 90;60 100;62 110;62 116;62 120;66 140;66 170;68 130;68 117;68 155;68 140;68 135;
      70 160;70 145;70 148;71 143;71 135;74 195;74 164];

   Calling on Matlab the function:
              lofrtest(D)

   Answer is:

   Lack-of-fit test for regression model with independent replicate values.
   --------------------------------------------------------------------------
   SOV                      SS         df           MS         F        P
   --------------------------------------------------------------------------
   Model               7658.359         1      7658.359     31.720   0.0000
   Residual            4104.378        17       241.434
   --------------------------------------------------------------------------
   Lack-of-fit         2142.011         5       428.402      2.620   0.0797
   Pure error          1962.367        12       163.531
   --------------------------------------------------------------------------
   Total              11762.737        18
   --------------------------------------------------------------------------
   If the associated P-value for any F test is equal or larger than 0.05
   The corresponding null hypothesis is met. Otherwise it is not met.

   Created by A. Trujillo-Ortiz, R. Hernandez-Walls, A. Castro-Perez and
              F.J. Marquez-Rocha
              Facultad de Ciencias Marinas
              Universidad Autonoma de Baja California
              Apdo. Postal 453
              Ensenada, Baja California
              Mexico.
              atrujo@uabc.mx
   Copyright (C) March 4, 2005.

   To cite this file, this would be an appropriate format:
   Trujillo-Ortiz, A., R. Hernandez-Walls, A. Castro-Perez and F.J Marquez-Rocha.
     (2005). lofrtest:Lack-of-fit test for regression model with independent replicate
     values. A MATLAB file. [WWW document]. URL http://www.mathworks.com/matlabcentral/
     fileexchange/loadFile.do?objectId=7074

   References:
  
   Department of Psychology of the York University. Available on Internet at the
           URL address http://www.psych.yorku.ca/lab/psy3030/assign/assign3.htm
   Zar, J. H. (1999), Biostatistical Analysis (2nd ed.).
           NJ: Prentice-Hall, Englewood Cliffs. p. 345-350.
The more you learn, the more you know, the more you know, and the more you forget. The more you forget, the less you know. So why bother to learn.
2Â¥2012-01-06 22:37:53
ÒÑÔÄ   »Ø¸´´ËÂ¥   ¹Ø×¢TA ¸øTA·¢ÏûÏ¢ ËÍTAºì»¨ TAµÄ»ØÌû

09yschen

½ð³æ (ÕýʽдÊÖ)

ÒýÓûØÌû:
3Â¥: Originally posted by dbb627 at 2012-01-06 23:15:49:
lack of fit£¬Ê§Äâ¼ìÑ飬ÆÀ¹ÀÄ£Ð͵ÄÄâºÏ¶È¡£Èç¹û p ֵСÓÚÄúÑ¡ÔñµÄ a ˮƽ£¬ÔòÖ¤Ã÷Ä£ÐÍδÄÜÓëÊý¾Ý׼ȷÄâºÏ¡£Äú¿ÉÄÜÐèÒªÌí¼ÓÏ»òÕ߱任Êý¾Ý£¬ÒÔ±ã¸ü׼ȷµØÎªÊý¾Ý½¨Ä£¡£

Äܲ»ÄܰïÎÒдһ¸ö³ÌÐò£¬Ð»Ð»
4Â¥2012-01-07 23:58:17
ÒÑÔÄ   »Ø¸´´ËÂ¥   ¹Ø×¢TA ¸øTA·¢ÏûÏ¢ ËÍTAºì»¨ TAµÄ»ØÌû

zhaopanpan

гæ (СÓÐÃûÆø)

Â¥Ö÷ ÄãºÃ ÎÒÏÖÔÚÒ²Óöµ½ÁËÕâÑùµÄÎÊÌâ  Éó¸åÈËÒâ¼û£ºLinearity should be tested either by ANOVA or a lack of fit test.ÇëÎÊÄúÏÖÔÚ»áÁËÂð  Äܲ»ÄܽÌÒ»ÏÂ
5Â¥2014-11-22 10:32:10
ÒÑÔÄ   »Ø¸´´ËÂ¥   ¹Ø×¢TA ¸øTA·¢ÏûÏ¢ ËÍTAºì»¨ TAµÄ»ØÌû
×î¾ßÈËÆøÈÈÌûÍÆ¼ö [²é¿´È«²¿] ×÷Õß »Ø/¿´ ×îºó·¢±í
[¿¼ÑÐ] 291 Çóµ÷¼Á +3 »¯¹¤2026½ì±ÏÒµÉ 2026-03-02 3/150 2026-03-02 12:55 by houyaoxu
[¿¼ÑÐ] 26¿¼Ñб¨¿¼Î÷¹¤´ó²ÄÁÏ308·ÖÇóµ÷¼Á +4 weizhong123 2026-03-01 4/200 2026-03-02 12:46 by Î޼ʵIJÝÔ­
[¿¼ÑÐ] 292Çóµ÷¼Á +7 yhk_819 2026-02-28 7/350 2026-03-02 12:43 by Î޼ʵIJÝÔ­
[¿¼ÑÐ] ¿¼Ñи´ÊÔµ÷¼Á£¬¹ý¹ú¼ÒÏßµÄͬѧ¶¼¿É±¨Ãû +3 ºÚ£¡ÔÚ¸ÉÂï 2026-02-28 4/200 2026-03-02 12:20 by »¨Óã²»ÊÇÓã
[¿¼ÑÐ] 265·ÖÇóµ÷¼Á²»µ÷רҵºÍѧУÓÐÐÐѧÉÏ¾Í +6 ÀñÌö¡Õæ258 2026-02-28 9/450 2026-03-02 12:04 by 52hz~~
[¿¼ÑÐ] 268Çóµ÷¼Á +4 ¼òµ¥µã0 2026-03-02 5/250 2026-03-02 11:54 by ms629
[¿¼ÑÐ] Çóµ÷¼Á +3 °¾Ò¹µÄèͷӥ 2026-03-02 3/150 2026-03-02 11:45 by Áõ±ø
[¿¼ÑÐ] ²ÄÁϹ¤³Ìר˶283Çóµ÷¼Á 5+4 £¬£¡£¿ 2026-03-02 6/300 2026-03-02 11:07 by ºÚ£¡ÔÚ¸ÉÂï
[¿¼ÑÐ] 284Çóµ÷¼Á +10 ÌìÏÂŸß 2026-02-28 11/550 2026-03-02 11:03 by Î޼ʵIJÝÔ­
[¿¼ÑÐ] ²ÄÁϵ÷¼Á +6 °®²Áº¹µÄ¿ÉÀÖ±ù 2026-02-28 7/350 2026-03-02 10:42 by Jy?
[¿¼ÑÐ] 274Çóµ÷¼Á +3 cgyzqwn 2026-03-01 7/350 2026-03-02 10:38 by lature00
[¿¼ÑÐ] 282Çóµ÷¼Á +3 2103240126 2026-03-02 4/200 2026-03-02 09:25 by Íô£¡£¿£¡
[¿¼ÑÐ] ¸ß·Ö×Ó»¯Ñ§ÓëÎïÀíµ÷¼Á +6 ºÃºÃºÃ1233 2026-02-28 13/650 2026-03-02 07:27 by ºÃºÃºÃ1233
[»ù½ðÉêÇë] ±¾×ÓдÍêÁË£¬¸øDSÐֵܿ´ÁË£¬µÃÁË92·Ö +3 Doma 2026-03-01 7/350 2026-03-02 00:00 by jnzsy
[¿¼ÑÐ] ²ÄÁÏ»¯¹¤µ÷¼Á +12 ½ñÏIJ»ÏÄ 2026-03-01 13/650 2026-03-01 23:32 by L135790
[¿¼ÑÐ] »¯¹¤299·ÖÇóµ÷¼Á Ò»Ö¾Ô¸985Âä°ñ +5 ÎûÎû(*^¦Ø^*) 2026-03-01 5/250 2026-03-01 19:47 by Î޼ʵIJÝÔ­
[¿¼ÑÐ] »¯¹¤×¨Ë¶348£¬Ò»Ö¾Ô¸985Çóµ÷¼Á +5 ¸¥¸ñ¸ö 2026-02-28 8/400 2026-03-01 17:25 by sunny81
[¿¼ÑÐ] 311Çóµ÷¼Á +9 ÄÏåÈ720 2026-02-28 10/500 2026-03-01 10:55 by sunny81
[¿¼²©] ²©Ê¿×Ô¼ö +4 kkluvs 2026-02-28 4/200 2026-03-01 10:19 by 𥰲𥰲
[˶²©¼ÒÔ°] 2025½ìË«·Ç»¯¹¤Ë¶Ê¿±ÏÒµ£¬É격 +3 ¸ü¶àµÄÊÇ 2026-02-27 4/200 2026-03-01 10:04 by ztg729
ÐÅÏ¢Ìáʾ
ÇëÌî´¦ÀíÒâ¼û