Home » date » 2008 » Dec » 23 »

*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, 23 Dec 2008 09:11:12 -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/23/t123004877899f1ize00d44zwu.htm/, Retrieved Tue, 23 Dec 2008 17:12:58 +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/23/t123004877899f1ize00d44zwu.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 «
0.2 0.8 1.2 4.5 0.4 5.9 6.5 12.8 4.2 -3.3 -12.5 -16.3 -10.5 -11.8 -11.4 -17.7 -17.3 -18.6 -17.9 -21.4 -19.4 -15.5 -7.7 -0.7 -1.6 1.4 0.7 9.5 1.4 4.1 6.6 18.4 16.9 9.2 -4.3 -5.9 -7.7 -5.4 -2.3 -4.8 2.3 -5.2 -10 -17.1 -14.4 -3.9 3.7 6.5 0.9 -4.1 -7 -12.2 -2.5 4.4 13.7 12.3 13.4 2.2 1.7 -7.2 -4.8 -2.9 -2.4 -2.5 -5.3 -7.1 -8 -8.9 -7.7 -1.1 4 9.6 10.9 13
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time3 seconds
R Server'Herman Ole Andreas Wold' @ 193.190.124.10:1001


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.2151691.83840.035035
20.1537041.31320.096606
3-0.456506-3.90040.000106
4-0.191758-1.63840.052823
5-0.145984-1.24730.108139
60.0317280.27110.393544
70.1540621.31630.096095
80.2194041.87460.032425
90.2602832.22390.014626
10-0.12638-1.07980.141894
11-0.300342-2.56610.006168
12-0.553781-4.73155e-06
13-0.168942-1.44340.076587
14-0.024465-0.2090.417505
150.2587262.21060.0151
160.1342321.14690.127589
170.0679290.58040.281722
180.0047590.04070.483837
19-0.142639-1.21870.11344
20-0.133471-1.14040.128929
21-0.166749-1.42470.079252
220.0216910.18530.426742
230.2175761.8590.033531
240.2948722.51940.006972
250.2104951.79850.038119
260.0179730.15360.439188
27-0.108928-0.93070.177544
28-0.141353-1.20770.115527
29-0.015442-0.13190.447699
30-0.035559-0.30380.381065
310.1298311.10930.135476
320.0420420.35920.360239
330.1528921.30630.097774
34-0.043491-0.37160.355638
35-0.12273-1.04860.148909
36-0.244502-2.0890.020096
37-0.196897-1.68230.048393
389.9e-058e-040.499663
390.0400740.34240.36652
400.1625331.38870.084575
410.0106810.09130.463767
420.0371280.31720.375991
43-0.096272-0.82260.206721
44-0.061042-0.52150.301783
45-0.070904-0.60580.273263
460.0272510.23280.408272
470.1243751.06270.14572
480.099510.85020.198994


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.2151691.83840.035035
20.112620.96220.169556
3-0.54172-4.62858e-06
40.0099350.08490.466294
50.1240541.05990.146339
6-0.245487-2.09740.019709
70.1535971.31230.096759
80.2731572.33390.01118
90.0399930.34170.366778
10-0.351965-3.00720.001807
11-0.16827-1.43770.077396
12-0.229098-1.95740.027061
13-0.106263-0.90790.183457
14-0.08455-0.72240.23618
15-0.101952-0.87110.193282
16-0.051955-0.44390.329211
17-0.101404-0.86640.194555
180.1031290.88110.190568
19-0.009028-0.07710.469363
20-0.054081-0.46210.322702
210.0452910.3870.349952
22-0.212715-1.81740.036627
230.0045570.03890.484525
240.0700210.59830.275759
25-0.019908-0.17010.432702
260.0124050.1060.45794
270.0109640.09370.462811
28-0.028655-0.24480.403639
290.1298731.10960.135399
30-0.058856-0.50290.308287
310.0029330.02510.490038
32-0.015997-0.13670.44583
33-0.033501-0.28620.387754
34-0.040742-0.34810.364384
35-0.036216-0.30940.37894
36-0.038613-0.32990.371208
37-0.069687-0.59540.276706
380.0300790.2570.398954
39-0.058445-0.49940.309515
400.069230.59150.278005
410.0273440.23360.407964
42-0.07106-0.60710.272823
430.0453020.38710.349917
44-0.052617-0.44960.327181
450.095190.81330.209345
46-0.018204-0.15550.438414
47-0.055672-0.47570.317869
48-0.076108-0.65030.258782
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/23/t123004877899f1ize00d44zwu/1rpe21230048666.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/23/t123004877899f1ize00d44zwu/1rpe21230048666.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/23/t123004877899f1ize00d44zwu/244bc1230048666.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/23/t123004877899f1ize00d44zwu/244bc1230048666.ps (open in new window)


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