Jump to content

File:Random-data-plus-trend-r2.png

Page contents not supported in other languages.
This is a file from the Wikimedia Commons
From Wikipedia, the free encyclopedia
    Original file (601 × 447 pixels, file size: 9 KB, MIME type: image/png)

    Image of random data plus trend, with best-fit line and different smoothings

    The data is 1000 points (plotted in black), with an increasing trend of 1-in-100, with random normal noise of standard deviation 10 superimposed. The red-line is the same data but averaged every 10 points. The blue line is averaged every 100 points.

    For the three series, the least squares fit line is virtually the same, with a slope of 0.01, as expected.

    The r2 fit for the raw data is 0.08; for the 10-pt-filtered, 0.57; for 100-pt-filtered, 0.97.

    Ignoring autocorrelation, a confidence limit for the slope of the fit line is [0.0082, 0.0127] for the raw data (which include 0.01, as it should). For the 10-pt-filtered the limits are slightly narrower at [0.0084, 0.0125] and for the 100pt-filtering the limits are again slightly narrower.

    So what does that all mean?

    • for the raw data, the simple trend line explains almost none of the variance of the time series (only 8%).
    • for the 100-pt filtering, the trend line explains almost all of the data (97%).
    • nonetheless, the trend lines are almost identical as are the confidence levels.

    The time series are, of course, very closely related: the same except for the filtering. This shows that a low r2 value should not be interpreted as evidence of lack of trend.

    Source code

    Source in IDL. pp_regress and reg_explain not given.

    n=1000
    
    data=10*randomn(seed,n)+indgen(n)/100.
    y=indgen(n)
    y1=y(indgen(n/10)*10+5)
    y2=y(indgen(n/100)*100+5*10)
    
    ret=pp_regress(y,data)
    print,reg_explain(ret)
    
    data1=reform(data,10,n/10)
    data1=avg(data1,0)
    
    ret1=pp_regress(y1,data1)
    print,reg_explain(ret1)
    
    data2=reform(data,100,n/100)
    data2=avg(data2,0)
    
    ret2=pp_regress(y2,data2)
    print,reg_explain(ret2)
    
    plot,y,data,yr=[-20,30]
    pp_regress_plot,ret,th=3
    
    oplot,y1,data1,col=2,th=3
    oplot,y2,data2,col=3,th=3
    


    GNU head Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled GNU Free Documentation License.
    w:en:Creative Commons
    attribution share alike
    This file is licensed under the Creative Commons Attribution-Share Alike 3.0 Unported license.
    You are free:
    • to share – to copy, distribute and transmit the work
    • to remix – to adapt the work
    Under the following conditions:
    • attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
    • share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.
    This licensing tag was added to this file as part of the GFDL licensing update.

    Transferred from en.wikipedia to Commons by Maksim.

    The original description page was here. All following user names refer to en.wikipedia.
    date/time username edit summary
    21:25, 20 December 2004 en:User:Quadell (tagged)
    22:13, 14 August 2004 en:User:Danakil (fmt)
    21:17, 14 August 2004 en:User:William M. Connolley (Add code.)
    14:05, 12 August 2004 en:User:William M. Connolley (I bumped up the SD to make the point obvious.)
    14:00, 12 August 2004 en:User:William M. Connolley (Comments)
    13:50, 12 August 2004 en:User:William M. Connolley (...partial before reload)
    13:32, 12 August 2004 en:User:William M. Connolley (Image of random data plus trend, with best-fit line and different smoothings)

    Captions

    Add a one-line explanation of what this file represents
    copyright status<\/a>"}},"text\/plain":{"en":{"":"copyright status"}}},"{\"value\":{\"entity-type\":\"item\",\"numeric-id\":50423863,\"id\":\"Q50423863\"},\"type\":\"wikibase-entityid\"}":{"text\/html":{"en":{"P6216":"copyrighted<\/a>"}},"text\/plain":{"en":{"P6216":"copyrighted"}}}}" class="wbmi-entityview-statementsGroup wbmi-entityview-statementsGroup-P6216 oo-ui-layout oo-ui-panelLayout oo-ui-panelLayout-framed">
    data size<\/a>"}},"text\/plain":{"en":{"":"data size"}}},"{\"value\":{\"amount\":\"+9644\",\"unit\":\"http:\\\/\\\/www.wikidata.org\\\/entity\\\/Q8799\"},\"type\":\"quantity\"}":{"text\/html":{"en":{"P3575":"9,644 byte<\/span>"}},"text\/plain":{"en":{"P3575":"9,644 byte"}}}}" class="wbmi-entityview-statementsGroup wbmi-entityview-statementsGroup-P3575 oo-ui-layout oo-ui-panelLayout oo-ui-panelLayout-framed">

    9,644 byte

    height<\/a>"}},"text\/plain":{"en":{"":"height"}}},"{\"value\":{\"amount\":\"+447\",\"unit\":\"http:\\\/\\\/www.wikidata.org\\\/entity\\\/Q355198\"},\"type\":\"quantity\"}":{"text\/html":{"en":{"P2048":"447 pixel<\/span>"}},"text\/plain":{"en":{"P2048":"447 pixel"}}}}" class="wbmi-entityview-statementsGroup wbmi-entityview-statementsGroup-P2048 oo-ui-layout oo-ui-panelLayout oo-ui-panelLayout-framed">

    447 pixel

    width<\/a>"}},"text\/plain":{"en":{"":"width"}}},"{\"value\":{\"amount\":\"+601\",\"unit\":\"http:\\\/\\\/www.wikidata.org\\\/entity\\\/Q355198\"},\"type\":\"quantity\"}":{"text\/html":{"en":{"P2049":"601 pixel<\/span>"}},"text\/plain":{"en":{"P2049":"601 pixel"}}}}" class="wbmi-entityview-statementsGroup wbmi-entityview-statementsGroup-P2049 oo-ui-layout oo-ui-panelLayout oo-ui-panelLayout-framed">

    601 pixel

    media type<\/a>"}},"text\/plain":{"en":{"":"media type"}}},"{\"value\":\"image\\\/png\",\"type\":\"string\"}":{"text\/html":{"en":{"P1163":"image\/png"}},"text\/plain":{"en":{"P1163":"image\/png"}}}}" class="wbmi-entityview-statementsGroup wbmi-entityview-statementsGroup-P1163 oo-ui-layout oo-ui-panelLayout oo-ui-panelLayout-framed">

    image/png

    checksum<\/a>"}},"text\/plain":{"en":{"":"checksum"}}},"{\"value\":\"f130634ec568376eeb9688dc6b2c6c443814b879\",\"type\":\"string\"}":{"text\/html":{"en":{"P4092":"f130634ec568376eeb9688dc6b2c6c443814b879"}},"text\/plain":{"en":{"P4092":"f130634ec568376eeb9688dc6b2c6c443814b879"}}},"{\"value\":{\"entity-type\":\"property\",\"numeric-id\":459,\"id\":\"P459\"},\"type\":\"wikibase-entityid\"}":{"text\/html":{"en":{"":"determination method or standard<\/a>"}},"text\/plain":{"en":{"":"determination method or standard"}}},"{\"value\":{\"entity-type\":\"item\",\"numeric-id\":13414952,\"id\":\"Q13414952\"},\"type\":\"wikibase-entityid\"}":{"text\/html":{"en":{"P459":"SHA-1<\/a>"}},"text\/plain":{"en":{"P459":"SHA-1"}}}}" class="wbmi-entityview-statementsGroup wbmi-entityview-statementsGroup-P4092 oo-ui-layout oo-ui-panelLayout oo-ui-panelLayout-framed">

    f130634ec568376eeb9688dc6b2c6c443814b879

    File history

    Click on a date/time to view the file as it appeared at that time.

    Date/TimeThumbnailDimensionsUserComment
    current19:19, 20 March 2006Thumbnail for version as of 19:19, 20 March 2006601 × 447 (9 KB)MaksimLa bildo estas kopiita de wikipedia:en. La originala priskribo estas: '''Image of random data plus trend, with best-fit line and different smoothings''' {{GFDL}} The data is 1000 points, with a trend of 1-in-100, with random normal noise of SD 10 super

    Global file usage

    The following other wikis use this file: