Home » date » 2008 » Dec » 24 »

Paper 11

*Unverified author*
R Software Module: rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Wed, 24 Dec 2008 05:01:22 -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/24/t1230120109y8k5mhn6js1ghmh.htm/, Retrieved Wed, 24 Dec 2008 13:01:51 +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/24/t1230120109y8k5mhn6js1ghmh.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:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
65.1 72.5 70.6 81.9 72 70.9 71.1 65.1 78.1 92 77.8 63.3 56.2 79.2 69 66.1 77.5 69.3 70.2 70.2 78.2 85.4 82.4 61.2 52.2 85.3 79.9 72.2 85.7 75.5 69.2 77.6 85.3 77 89.9 60 54.3 84 69.9 75.1 81.7 69.9 68.3 77.3 77.4 85.3 91 60.6 57.6 93.8 78.7 80.3 89.8 77.5 71.7 83.2 86.2 100.7 100.8 57.1
 
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'George Udny Yule' @ 72.249.76.132


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.1231030.95360.172068
2-0.266149-2.06160.021794
30.0070330.05450.478367
4-0.103237-0.79970.213529
50.1116830.86510.195216
60.3432332.65870.005021
70.0471280.3650.358179
8-0.086585-0.67070.252498
9-0.045274-0.35070.363524
10-0.337002-2.61040.005702
110.1063580.82380.206645
120.6005284.65179e-06
134.7e-054e-040.499856
14-0.240038-1.85930.033943
15-0.091066-0.70540.241647
16-0.147919-1.14580.128218
170.0647570.50160.308891
180.2142321.65940.051124
19-0.009338-0.07230.471289
20-0.093045-0.72070.23694
21-0.067732-0.52460.300881
22-0.276241-2.13980.018226
230.150491.16570.124177
240.4204283.25660.000928
250.0071150.05510.478117
26-0.108602-0.84120.20178
27-0.120455-0.9330.177268
28-0.064778-0.50180.308833
290.0692020.5360.296958
300.1109840.85970.196694
310.0142630.11050.456198
32-0.055084-0.42670.335569
33-0.119372-0.92460.179427
34-0.213833-1.65630.051437
350.0648850.50260.308543
360.2381981.84510.034982
370.0108340.08390.4667
38-0.153831-1.19160.119062
39-0.137326-1.06370.145858
40-0.035309-0.27350.392704
41-0.006475-0.05020.480082
420.0117020.09060.464039
43-0.028251-0.21880.413763
44-0.06269-0.48560.314512
45-0.124874-0.96730.168647
46-0.106265-0.82310.206848
470.055190.42750.335273
480.1066590.82620.205987
490.0251720.1950.423034
50-0.095239-0.73770.23178
51-0.088402-0.68480.248067
52-0.022531-0.17450.431022
53-0.014347-0.11110.455941
540.0173840.13470.446668
55-0.001099-0.00850.496618
56-0.060588-0.46930.320274
57-0.035057-0.27160.393449
58-0.029529-0.22870.409929
590.0269560.20880.417657
60NANANA


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.1231030.95360.172068
2-0.285632-2.21250.015375
30.0932210.72210.236524
4-0.218551-1.69290.047832
50.2318061.79560.0388
60.2138311.65630.051439
70.0701640.54350.294404
80.0362950.28110.389784
9-0.027492-0.2130.416044
10-0.379567-2.94010.002327
110.2126621.64730.052365
120.3876133.00240.00195
13-0.07342-0.56870.285839
14-0.094935-0.73540.232491
15-0.079962-0.61940.269005
16-0.015623-0.1210.452041
17-0.078559-0.60850.27257
18-0.078142-0.60530.273635
190.0156810.12150.451864
20-0.066583-0.51580.303962
210.0887080.68710.247324
22-0.006513-0.05040.479966
230.1474411.14210.12898
24-0.002607-0.02020.491977
250.0958280.74230.230407
260.0565680.43820.331417
27-0.079792-0.61810.269437
280.0855120.66240.255134
29-0.128473-0.99520.16183
30-0.087358-0.67670.250608
310.0060830.04710.481287
32-0.054136-0.41930.338235
33-0.013914-0.10780.457267
34-0.05546-0.42960.334515
35-0.09181-0.71120.239872
360.0204220.15820.437419
37-0.038002-0.29440.384749
38-0.067728-0.52460.30089
390.0301890.23380.407952
40-0.001449-0.01120.495541
41-0.013069-0.10120.459852
42-0.063281-0.49020.312899
43-0.066534-0.51540.304095
44-0.012559-0.09730.461413
45-0.050681-0.39260.348012
460.1094070.84750.200053
47-0.021615-0.16740.433796
48-0.057705-0.4470.32825
49-0.036783-0.28490.388342
500.0662120.51290.304961
51-0.045076-0.34920.364095
52-0.137356-1.0640.145805
530.0109990.08520.466195
54-0.007529-0.05830.476843
55-0.007121-0.05520.478097
56-0.019151-0.14830.441284
570.1073350.83140.204518
58-0.010326-0.080.468257
590.0097920.07580.469897
60NANANA
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/24/t1230120109y8k5mhn6js1ghmh/169ki1230120081.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/24/t1230120109y8k5mhn6js1ghmh/169ki1230120081.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/24/t1230120109y8k5mhn6js1ghmh/2yh1b1230120081.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/24/t1230120109y8k5mhn6js1ghmh/2yh1b1230120081.ps (open in new window)


 
Parameters (Session):
par1 = 60 ; par2 = 1.0 ; par3 = 0 ; par4 = 0 ; par5 = 12 ;
 
Parameters (R input):
par1 = 60 ; par2 = 1.0 ; 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