Home » date » 2008 » Dec » 21 »

400 random numbers: Autocorrelation Plot

*The author of this computation has been verified*
R Software Module: rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Sun, 21 Dec 2008 14:08:32 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2008/Dec/21/t1229893799k7y8eefk7p4vozq.htm/, Retrieved Sun, 21 Dec 2008 22:10:01 +0100
 
BibTeX entries for LaTeX users:
@Manual{KEY,
    author = {{YOUR NAME}},
    publisher = {Office for Research Development and Education},
    title = {Statistical Computations at FreeStatistics.org, URL http://www.freestatistics.org/blog/date/2008/Dec/21/t1229893799k7y8eefk7p4vozq.htm/},
    year = {2008},
}
@Manual{R,
    title = {R: A Language and Environment for Statistical Computing},
    author = {{R Development Core Team}},
    organization = {R Foundation for Statistical Computing},
    address = {Vienna, Austria},
    year = {2008},
    note = {{ISBN} 3-900051-07-0},
    url = {http://www.R-project.org},
}
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
s0800650 Jan Werkhoven
 
Dataseries X:
» Textbox « » Textfile « » CSV «
63 59 10 21 12 63 61 59 70 26 74 82 40 39 28 92 2 54 25 40 96 4 29 22 14 47 15 80 92 22 57 42 53 72 15 65 29 7 84 1 36 56 86 65 75 85 12 11 68 79 90 71 68 23 6 97 6 65 18 78 14 98 79 30 74 1 36 25 41 93 39 77 51 67 51 85 71 71 74 45 47 83 82 23 73 67 14 84 40 67 52 23 4 56 81 75 37 30 56 51 67 50 67 59 17 53 44 6 49 84 52 37 4 53 52 43 94 50 39 61 96 2 38 11 82 40 46 99 81 39 88 66 24 27 23 54 85 66 48 18 57 78 90 15 72 5 25 97 37 39 22 88 39 30 79 7 91 36 14 91 34 10 71 28 40 92 47 34 60 79 23 26 29 3 97 52 48 15 62 96 12 31 72 45 75 54 45 64 9 41 85 11 59 11 21 95 45 88 47 18 100 46 27 2 79 69 33 31 34 31 63 94 26 92 80 70 88 57 54 70 80 17 53 86 95 58 8 28 48 2 69 2 52 57 60 22 90 35 87 42 29 6 3 88 17 1 62 3 26 12 74 39 2 8 66 43 86 33 63 36 69 73 8 74 64 6 98 93 60 93 55 4 42 79 2 36 8 79 2 80 79 37 28 54 21 72 84 11 34 70 12 9 76 60 7 43 70 54 13 55 95 49 69 30 11 66 19 47 44 32 51 57 2 39 83 70 10 82 67 24 0 9 58 62 77 56 36 16 38 41 18 46 4 12 16 82 48 58 79 94 62 62 99 14 85 87 61 27 96 10 24 40 16 59 18 79 91 38 75 4 85 4 19 40 1 10 61 33 53 46 86 83 56 72 66 60 36 7 87 42 98 53 85 18 70 22 12 35 94 5 56 42 0 58 18 66 67 68 76 59
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time1 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Autocorrelation Function
Time lag kACF(k)T-STATP-value
1-0.095516-1.91030.028404
2-0.00951-0.19020.424621
30.0795981.5920.056092
4-0.066619-1.33240.091746
50.0115440.23090.40876
6-0.030146-0.60290.27345
70.0212450.42490.335571
8-0.050738-1.01480.155415
9-0.069776-1.39550.081816
100.0807491.6150.053552
11-0.046015-0.92030.178983
12-0.041933-0.83870.201079
130.0526231.05250.146613
140.0044510.0890.464554
15-0.051248-1.0250.153002
160.0117590.23520.407097
17-0.046108-0.92220.1785
180.0537971.07590.141302
19-0.07838-1.56760.058883
200.0333090.66620.252843
21-0.036204-0.72410.234722
220.0214420.42880.334132
230.0135620.27120.393172
24-0.077984-1.55970.059812
250.0064320.12860.448855
26-0.026319-0.52640.299457
270.0254170.50830.30575
28-1.5e-05-3e-040.499883
29-0.065326-1.30650.096064
300.0247910.49580.310145
310.0013810.02760.488987
320.0603751.20750.113978
330.0366450.73290.232025
34-0.019821-0.39640.346
35-0.015942-0.31880.375008
36-0.010629-0.21260.41588
37-0.038655-0.77310.219962
380.0339220.67840.24894
390.0130750.26150.396918
40-0.032847-0.65690.2558
41-0.011397-0.22790.409907
420.0528781.05760.145448
430.0519421.03880.149752
44-0.032593-0.65190.257436
450.0278340.55670.289027
460.0619891.23980.10789
47-0.092478-1.84960.032557
48-0.069997-1.39990.081152
490.1029972.05990.020026
50-0.048677-0.97350.165436
510.011520.23040.408951
52-0.101625-2.03250.021382
530.0101260.20250.419807
540.0534371.06870.142918
55-0.025145-0.50290.307658
560.1051642.10330.018032
57-0.017079-0.34160.366425
58-0.000924-0.01850.492636
590.0764561.52910.063513
600.013230.26460.395726


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.095516-1.91030.028404
2-0.018805-0.37610.353518
30.0776121.55220.060699
4-0.052494-1.04990.147204
50.0020870.04170.483363
6-0.036629-0.73260.232119
70.0248290.49660.309878
8-0.052692-1.05380.146297
9-0.074549-1.4910.068377
100.0608071.21610.112325
11-0.024461-0.48920.312474
12-0.045192-0.90380.183314
130.0278910.55780.288641
140.0225810.45160.325891
15-0.050872-1.01740.154778
16-0.004446-0.08890.464597
17-0.056208-1.12420.130809
180.0575591.15120.125173
19-0.070991-1.41980.078221
200.0156610.31320.377138
21-0.048751-0.9750.16507
220.0486170.97230.165734
23-0.012275-0.24550.403101
24-0.073105-1.46210.072249
25-0.016326-0.32650.372101
26-0.026176-0.52350.30045
270.0298980.5980.2751
28-0.018316-0.36630.357163
29-0.055925-1.11850.132012
30-0.00127-0.02540.489878
310.0134680.26940.393894
320.0534391.06880.142908
330.0371650.74330.228868
34-0.015046-0.30090.381819
35-0.02769-0.55380.290011
36-0.028673-0.57350.283328
37-0.03139-0.62780.265247
380.0190950.38190.351369
390.0342820.68560.24667
40-0.040095-0.80190.211543
41-0.025325-0.50650.306395
420.0630691.26140.103954
430.0585151.17030.121287
44-0.022439-0.44880.326915
45-0.004695-0.09390.462616
460.0647441.29490.098054
47-0.058565-1.17130.121089
48-0.106817-2.13630.016629
490.0855531.71110.043923
50-0.011905-0.23810.40596
510.035810.71620.237145
52-0.152227-3.04450.001242
530.0018980.0380.484868
540.0761711.52340.064222
550.0019270.03850.484639
560.0570821.14160.127145
570.016170.32340.373283
580.0345850.69170.244766
590.0352340.70470.240712
600.0268070.53610.29608
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/21/t1229893799k7y8eefk7p4vozq/1e7ud1229893710.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/21/t1229893799k7y8eefk7p4vozq/1e7ud1229893710.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/21/t1229893799k7y8eefk7p4vozq/2ncfk1229893710.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/21/t1229893799k7y8eefk7p4vozq/2ncfk1229893710.ps (open in new window)


 
Parameters (Session):
par1 = 60 ; par2 = 1 ; par3 = 0 ; par4 = 0 ; par5 = 12 ;
 
Parameters (R input):
par1 = 60 ; par2 = 1 ; par3 = 0 ; par4 = 0 ; par5 = 12 ;
 
R code (references can be found in the software module):
if (par1 == 'Default') {
par1 = 10*log10(length(x))
} else {
par1 <- as.numeric(par1)
}
par2 <- as.numeric(par2)
par3 <- as.numeric(par3)
par4 <- as.numeric(par4)
par5 <- as.numeric(par5)
if (par2 == 0) {
x <- log(x)
} else {
x <- (x ^ par2 - 1) / par2
}
if (par3 > 0) x <- diff(x,lag=1,difference=par3)
if (par4 > 0) x <- diff(x,lag=par5,difference=par4)
bitmap(file='pic1.png')
racf <- acf(x,par1,main='Autocorrelation',xlab='lags',ylab='ACF')
dev.off()
bitmap(file='pic2.png')
rpacf <- pacf(x,par1,main='Partial Autocorrelation',xlab='lags',ylab='PACF')
dev.off()
(myacf <- c(racf$acf))
(mypacf <- c(rpacf$acf))
lengthx <- length(x)
sqrtn <- sqrt(lengthx)
load(file='createtable')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Autocorrelation Function',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Time lag k',header=TRUE)
a<-table.element(a,hyperlink('http://www.xycoon.com/basics.htm','ACF(k)','click here for more information about the Autocorrelation Function'),header=TRUE)
a<-table.element(a,'T-STAT',header=TRUE)
a<-table.element(a,'P-value',header=TRUE)
a<-table.row.end(a)
for (i in 2:(par1+1)) {
a<-table.row.start(a)
a<-table.element(a,i-1,header=TRUE)
a<-table.element(a,round(myacf[i],6))
mytstat <- myacf[i]*sqrtn
a<-table.element(a,round(mytstat,4))
a<-table.element(a,round(1-pt(abs(mytstat),lengthx),6))
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Partial Autocorrelation Function',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Time lag k',header=TRUE)
a<-table.element(a,hyperlink('http://www.xycoon.com/basics.htm','PACF(k)','click here for more information about the Partial Autocorrelation Function'),header=TRUE)
a<-table.element(a,'T-STAT',header=TRUE)
a<-table.element(a,'P-value',header=TRUE)
a<-table.row.end(a)
for (i in 1:par1) {
a<-table.row.start(a)
a<-table.element(a,i,header=TRUE)
a<-table.element(a,round(mypacf[i],6))
mytstat <- mypacf[i]*sqrtn
a<-table.element(a,round(mytstat,4))
a<-table.element(a,round(1-pt(abs(mytstat),lengthx),6))
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable1.tab')
 





Copyright

Creative Commons License

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 License.

Software written by Ed van Stee & Patrick Wessa


Disclaimer

Information provided on this web site is provided "AS IS" without warranty of any kind, either express or implied, including, without limitation, warranties of merchantability, fitness for a particular purpose, and noninfringement. We use reasonable efforts to include accurate and timely information and periodically update the information, and software without notice. However, we make no warranties or representations as to the accuracy or completeness of such information (or software), and we assume no liability or responsibility for errors or omissions in the content of this web site, or any software bugs in online applications. Your use of this web site is AT YOUR OWN RISK. Under no circumstances and under no legal theory shall we be liable to you or any other person for any direct, indirect, special, incidental, exemplary, or consequential damages arising from your access to, or use of, this web site.


Privacy Policy

We may request personal information to be submitted to our servers in order to be able to:

  • personalize online software applications according to your needs
  • enforce strict security rules with respect to the data that you upload (e.g. statistical data)
  • manage user sessions of online applications
  • alert you about important changes or upgrades in resources or applications

We NEVER allow other companies to directly offer registered users information about their products and services. Banner references and hyperlinks of third parties NEVER contain any personal data of the visitor.

We do NOT sell, nor transmit by any means, personal information, nor statistical data series uploaded by you to third parties.

We carefully protect your data from loss, misuse, alteration, and destruction. However, at any time, and under any circumstance you are solely responsible for managing your passwords, and keeping them secret.

We store a unique ANONYMOUS USER ID in the form of a small 'Cookie' on your computer. This allows us to track your progress when using this website which is necessary to create state-dependent features. The cookie is used for NO OTHER PURPOSE. At any time you may opt to disallow cookies from this website - this will not affect other features of this website.

We examine cookies that are used by third-parties (banner and online ads) very closely: abuse from third-parties automatically results in termination of the advertising contract without refund. We have very good reason to believe that the cookies that are produced by third parties (banner ads) do NOT cause any privacy or security risk.

FreeStatistics.org is safe. There is no need to download any software to use the applications and services contained in this website. Hence, your system's security is not compromised by their use, and your personal data - other than data you submit in the account application form, and the user-agent information that is transmitted by your browser - is never transmitted to our servers.

As a general rule, we do not log on-line behavior of individuals (other than normal logging of webserver 'hits'). However, in cases of abuse, hacking, unauthorized access, Denial of Service attacks, illegal copying, hotlinking, non-compliance with international webstandards (such as robots.txt), or any other harmful behavior, our system engineers are empowered to log, track, identify, publish, and ban misbehaving individuals - even if this leads to ban entire blocks of IP addresses, or disclosing user's identity.


FreeStatistics.org is powered by