Home » date » 2010 » Dec » 14 »

Workshop 9

*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: Tue, 14 Dec 2010 13:09:27 +0000
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2010/Dec/14/t12923320828lhallxvd63ib1l.htm/, Retrieved Tue, 14 Dec 2010 14:08:04 +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/2010/Dec/14/t12923320828lhallxvd63ib1l.htm/},
    year = {2010},
}
@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 = {2010},
    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:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
921365 987921 1132614 1332224 1418133 1411549 1695920 1636173 1539653 1395314 1127575 1036076 989236 1008380 1207763 1368839 1469798 1498721 1761769 1653214 1599104 1421179 1163995 1037735 1015407 1039210 1258049 1469445 1552346 1549144 1785895 1662335 1629440 1467430 1202209 1076982 1039367 1063449 1335135 1491602 1591972 1641248 1898849 1798580 1762444 1622044 1368955 1262973 1195650 1269530 1479279 1607819 1712466 1721766 1949843 1821326 1757802 1590367 1260647 1149235 1016367 1027885 1262159 1520854 1544144 1564709 1821776 1741365 1623386 1498658 1241822 1136029
 
Output produced by software:


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


Autocorrelation Function
Time lag kACF(k)T-STATP-value
1-0.117342-0.90130.185542
2-0.034053-0.26160.397284
30.161251.23860.110202
40.2122911.63060.054147
5-0.152159-1.16880.123602
60.0507410.38970.349063
70.0894920.68740.247261
80.0598760.45990.323633
9-0.220189-1.69130.048028
10-0.023456-0.18020.428818
110.0142810.10970.456513
12-0.27455-2.10890.019606
13-0.165833-1.27380.103867
140.0386710.2970.383739
15-0.186019-1.42880.079162
16-0.014886-0.11430.454677
17-0.098537-0.75690.226069
180.0492130.3780.353388
19-0.161144-1.23780.110352
20-0.02998-0.23030.409336
210.125170.96140.170126
220.0476440.3660.357852
23-0.08959-0.68820.247027
240.013670.1050.458366
250.1416881.08830.140438
26-0.053143-0.40820.342303
270.0231240.17760.429815
28-0.033387-0.25650.399247
290.153781.18120.121131
30-0.028216-0.21670.414584
31-0.016151-0.12410.450846
320.0572670.43990.330818
33-0.061959-0.47590.317947
34-0.130123-0.99950.160819
350.0953240.73220.233473
36-0.014649-0.11250.455395
370.0240990.18510.426889
380.0237160.18220.42804
390.0535650.41140.341119
40-0.047611-0.36570.357946
41-0.03062-0.23520.407435
42-0.0016-0.01230.495118
430.1355731.04140.150979
44-0.178365-1.370.087932
450.1071340.82290.206937
460.0485680.37310.355223
47-0.018567-0.14260.443541
48-0.07733-0.5940.277397
490.1196350.91890.180937
50-0.068813-0.52860.299546
51-0.020341-0.15620.438187
52-0.018277-0.14040.444415
530.068610.5270.300082
54-0.055679-0.42770.33522
550.0233490.17930.429139
560.0192710.1480.441415
57-0.031124-0.23910.405939
58-0.003311-0.02540.489899
59NANANA
60NANANA


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.117342-0.90130.185542
2-0.048489-0.37250.355445
30.1538461.18170.121031
40.2581371.98280.026027
5-0.088234-0.67770.250293
60.0005150.0040.49843
70.016190.12440.450727
80.0718660.5520.291513
9-0.177181-1.3610.089352
10-0.136605-1.04930.149163
11-0.054265-0.41680.339162
12-0.266628-2.0480.022509
13-0.162514-1.24830.108428
14-0.044493-0.34180.366873
15-0.147206-1.13070.131376
160.1276350.98040.165451
17-0.049731-0.3820.351921
180.0832610.63950.262473
19-0.08884-0.68240.248831
20-0.054717-0.42030.3379
210.1203610.92450.179494
22-0.005643-0.04330.482787
23-0.022278-0.17110.432358
24-0.24055-1.84770.03483
25-0.03247-0.24940.401956
26-0.09209-0.70740.241065
27-0.045176-0.3470.364912
28-0.144821-1.11240.135241
290.0104780.08050.468062
300.062710.48170.315906
310.0078590.06040.476035
320.0020670.01590.493694
33-0.11886-0.9130.182484
34-0.168133-1.29150.100791
350.0485240.37270.355346
36-0.094755-0.72780.234798
370.0467830.35930.360309
380.003970.03050.487888
390.0229750.17650.430264
400.017570.1350.446553
41-0.106729-0.81980.207816
42-0.012544-0.09640.461784
43-0.028669-0.22020.413234
44-0.120529-0.92580.179161
45-0.015058-0.11570.454156
46-0.133177-1.0230.155253
47-0.050312-0.38650.350275
48-0.072012-0.55310.291132
490.1363651.04740.149584
50-0.00356-0.02730.489138
51-0.05366-0.41220.340854
520.0152210.11690.453663
53-0.065529-0.50330.308302
540.0272950.20970.417328
550.0481880.37010.356303
56-0.068825-0.52870.299513
57-0.102444-0.78690.217248
58-0.017873-0.13730.445638
59NANANA
60NANANA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/14/t12923320828lhallxvd63ib1l/1f69l1292332165.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/14/t12923320828lhallxvd63ib1l/1f69l1292332165.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/14/t12923320828lhallxvd63ib1l/2f69l1292332165.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/14/t12923320828lhallxvd63ib1l/2f69l1292332165.ps (open in new window)


 
Parameters (Session):
par1 = 60 ; par2 = 1 ; par3 = 0 ; par4 = 0 ; par5 = 12 ; par6 = White Noise ; par7 = 0.95 ;
 
Parameters (R input):
par1 = 60 ; par2 = 1 ; par3 = 1 ; par4 = 1 ; par5 = 12 ; par6 = White Noise ; par7 = 0.95 ;
 
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 (par6 == 'White Noise') par6 <- 'white' else par6 <- 'ma'
par7 <- as.numeric(par7)
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='time lag', ylab='ACF', ci.type=par6, ci=par7, sub=paste('(lambda=',par2,', d=',par3,', D=',par4,', CI=', par7, ', CI type=',par6,')',sep=''))
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