Home » date » 2010 » Dec » 27 »

*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: Mon, 27 Dec 2010 13:27:22 +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/27/t1293456292ydpozrl4ut07l0w.htm/, Retrieved Mon, 27 Dec 2010 14:24:55 +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/27/t1293456292ydpozrl4ut07l0w.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 «
35.36 31.19 35.29 33.80 36.38 37.77 34.88 37.07 35.56 34.18 32.05 32.35 34.79 33.75 33.76 36.80 36.57 34.14 33.85 35.10 33.92 33.34 30.69 32.32 32.47 34.71 37.19 35.58 36.04 35.63 32.74 33.31 28.40 27.37 28.20 29.23 28.05 27.70 28.05 28.01 30.73 30.82 30.48 30.92 31.20 31.41 31.96 36.95 35.64 37.18 38.69 39.97 40.36 40.79 42.92 41.21 44.15 44.70 47.42 45.14 46.08 50.59 48.63 47.46 47.30 49.02 51.77 54.15 56.10 52.58 52.56 51.27 57.72 53.46 55.48 59.33 57.32 56.44 58.80 55.64 53.62 54.87 56.15 55.35 52.38 51.27 53.95 56.09 56.34 60.65 58.35 57.18 58.87 66.20 62.25 62.62 54.73 56.20 52.54 63.06 63.53 60.95 53.83 51.20 44.57 44.15 44.04 42.28 38.42 35.41 37.01 39.19 46.50 44.79 47.01 49.15 50.85 54.09 55.40 56.16 54.37 52.34 56.13 51.29 42.95 28.88 38.47 34.83 41.17 40.80 40.00 44.00
 
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
10.94896510.90280
20.90484310.39590
30.8518899.78750
40.8173329.39040
50.7788818.94870
60.7447578.55660
70.7008978.05270
80.6573627.55250
90.6248897.17940
100.6079386.98470
110.5936716.82080
120.5751796.60830
130.5565616.39440
140.5482256.29860
150.535016.14680
160.532486.11770
170.5276636.06240
180.5135735.90050
190.4990325.73340
200.4787435.50030
210.4624915.31360
220.4287654.92611e-06
230.3954154.5436e-06
240.3497384.01824.9e-05
250.3148183.6170.000212
260.2741843.15010.00101
270.2510442.88430.002291
280.2131752.44920.007814
290.1792412.05930.020714
300.1315431.51130.06655
310.1003991.15350.125395
320.0643150.73890.230632
330.034490.39630.346278
34-0.001665-0.01910.492385
35-0.032574-0.37430.354409
36-0.064007-0.73540.231704
37-0.08613-0.98960.162099
38-0.105474-1.21180.113876
39-0.119846-1.37690.085434
40-0.13788-1.58410.057779
41-0.158341-1.81920.035573
42-0.180306-2.07160.020127
43-0.203939-2.34310.01031
44-0.224229-2.57620.005545
45-0.242603-2.78730.00305
46-0.266019-3.05630.001356
47-0.290441-3.33690.00055
48-0.310986-3.5730.000247
49-0.329939-3.79070.000114
50-0.34631-3.97885.7e-05
51-0.358336-4.1173.4e-05
52-0.368657-4.23552.1e-05
53-0.382241-4.39161.1e-05
54-0.387261-4.44939e-06
55-0.400635-4.60295e-06
56-0.404391-4.64614e-06
57-0.413742-4.75353e-06
58-0.410859-4.72043e-06
59-0.402404-4.62334e-06
60-0.394876-4.53686e-06


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.94896510.90280
20.0433180.49770.309766
3-0.107651-1.23680.109175
40.1477151.69710.046016
5-0.032925-0.37830.352916
6-0.008377-0.09620.461734
7-0.08348-0.95910.169627
8-0.042299-0.4860.313896
90.1116041.28220.101004
100.1283051.47410.071416
110.0126440.14530.442362
12-0.04241-0.48730.313445
130.0251580.2890.3865
140.1193671.37140.086285
15-0.072786-0.83620.202264
160.0612350.70350.241482
170.0310240.35640.361039
18-0.100578-1.15560.124975
190.0449570.51650.30318
20-0.079937-0.91840.18004
21-0.002884-0.03310.48681
22-0.158885-1.82540.035097
23-0.048456-0.55670.289333
24-0.095002-1.09150.138524
250.0357360.41060.341026
26-0.054946-0.63130.264475
270.0836310.96080.169193
28-0.143479-1.64850.050819
29-0.006388-0.07340.470804
30-0.162606-1.86820.031975
310.0363260.41740.338549
32-0.076961-0.88420.189095
33-0.07693-0.88390.189191
34-0.040127-0.4610.322769
35-0.012738-0.14630.441934
360.0026680.03070.487796
37-0.008925-0.10250.459244
38-0.016222-0.18640.42622
390.033370.38340.351023
400.006680.07680.469468
41-0.067996-0.78120.218037
42-0.014432-0.16580.434279
43-0.067144-0.77140.220917
440.0411920.47330.318403
450.011140.1280.449176
46-0.088261-1.0140.156208
470.0349290.40130.344424
48-0.020579-0.23640.40673
490.0515950.59280.277169
50-0.042151-0.48430.314498
510.1186361.3630.087597
52-0.024045-0.27630.391391
530.0220420.25320.400236
540.0219970.25270.400434
55-0.066295-0.76170.223807
56-0.004165-0.04790.480951
570.0395930.45490.324967
580.0195250.22430.411425
590.1389631.59660.056377
60-0.057511-0.66080.254962
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/27/t1293456292ydpozrl4ut07l0w/1ik5p1293456439.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/27/t1293456292ydpozrl4ut07l0w/1ik5p1293456439.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/27/t1293456292ydpozrl4ut07l0w/2ttma1293456439.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/27/t1293456292ydpozrl4ut07l0w/2ttma1293456439.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/27/t1293456292ydpozrl4ut07l0w/3ttma1293456439.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/27/t1293456292ydpozrl4ut07l0w/3ttma1293456439.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 = 0 ; par4 = 0 ; 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 (par8 != '') par8 <- as.numeric(par8)
ox <- x
if (par8 == '') {
if (par2 == 0) {
x <- log(x)
} else {
x <- (x ^ par2 - 1) / par2
}
} else {
x <- log(x,base=par8)
}
if (par3 > 0) x <- diff(x,lag=1,difference=par3)
if (par4 > 0) x <- diff(x,lag=par5,difference=par4)
bitmap(file='picts.png')
op <- par(mfrow=c(2,1))
plot(ox,type='l',main='Original Time Series',xlab='time',ylab='value')
if (par8=='') {
mytitle <- paste('Working Time Series (lambda=',par2,', d=',par3,', D=',par4,')',sep='')
mysub <- paste('(lambda=',par2,', d=',par3,', D=',par4,', CI=', par7, ', CI type=',par6,')',sep='')
} else {
mytitle <- paste('Working Time Series (base=',par8,', d=',par3,', D=',par4,')',sep='')
mysub <- paste('(base=',par8,', d=',par3,', D=',par4,', CI=', par7, ', CI type=',par6,')',sep='')
}
plot(x,type='l', main=mytitle,xlab='time',ylab='value')
par(op)
dev.off()
bitmap(file='pic1.png')
racf <- acf(x, par1, main='Autocorrelation', xlab='time lag', ylab='ACF', ci.type=par6, ci=par7, sub=mysub)
dev.off()
bitmap(file='pic2.png')
rpacf <- pacf(x,par1,main='Partial Autocorrelation',xlab='lags',ylab='PACF',sub=mysub)
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