Home » date » 2010 » Dec » 26 »

Paper_Autocorrelatie2

*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, 26 Dec 2010 16:10:37 +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/26/t12933799742lk4qc9karlh42v.htm/, Retrieved Sun, 26 Dec 2010 17:12:57 +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/26/t12933799742lk4qc9karlh42v.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 «
112.52 112.39 112.24 112.10 109.85 111.89 111.88 111.48 110.98 110.42 107.90 109.46 109.11 109.26 109.99 110.17 110.28 109.13 110.15 109.39 108.45 108.23 107.44 104.86 106.23 105.85 104.95 104.46 104.66 103.05 104.16 104.08 104.20 103.68 103.69 101.29 103.03 102.90 102.68 102.98 103.47 101.72 102.82 102.74 102.38 101.81 101.88 99.60 100.93 100.85 100.93 101.10 101.10 99.31 100.33 99.99 99.82 99.65 99.06 96.92 98.20 98.54 98.71 98.20 98.29 96.67 97.69 97.78 97.44 96.92 96.84 95.05 96.33 96.33 96.16 96.50 96.33 94.71 95.82 95.47 95.82 95.99 95.73 93.77 94.71 94.62 94.79 94.88 94.79 93.43 94.37 94.62 94.45 94.37 94.20 92.66 93.51 93.60 93.60 93.77 93.60 92.41 93.60 93.34 92.92 92.07 91.89 90.27 91.72 91.98 91.81 91.98 91.30 89.93 90.87 90.53 90.27 90.10 89.68 87.89
 
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'Gwilym Jenkins' @ 72.249.127.135


Autocorrelation Function
Time lag kACF(k)T-STATP-value
1-0.384045-3.97266.5e-05
20.0762180.78840.216103
30.1067351.10410.136019
4-0.001838-0.0190.492434
5-0.220832-2.28430.012164
60.3607453.73160.000153
7-0.257047-2.65890.004521
80.0626910.64850.25903
9-0.073744-0.76280.223626
100.0537270.55580.28977
11-0.089374-0.92450.178655
12-0.100463-1.03920.150527
13-0.087924-0.90950.182566
14-0.01154-0.11940.452603
15-0.057664-0.59650.276058
160.0530350.54860.292213
17-0.080836-0.83620.20246
180.0673860.6970.243642
190.0041230.04260.483031
200.0032040.03310.486813
210.039590.40950.341489
22-0.001997-0.02070.49178
23-0.021866-0.22620.410746
240.0023170.0240.49046
250.0642670.66480.253811
26-0.000827-0.00860.496594
270.0080460.08320.466915
28-0.010336-0.10690.457526
290.0436130.45110.326402
30-0.032415-0.33530.369026
310.0141380.14620.442003
320.0158120.16360.435195
33-0.025598-0.26480.39584
34-0.04484-0.46380.321857
350.0801730.82930.204385
36-0.020768-0.21480.415155
370.0116150.12020.452294
38-0.023368-0.24170.40473
39-0.03183-0.32930.371304
400.0305240.31570.376406
410.0370420.38320.35118
42-0.039937-0.41310.340175
430.0482640.49920.309316
44-0.0771-0.79750.213456
45-0.009099-0.09410.462595
460.0880090.91040.182336
47-0.045322-0.46880.320077
48-0.026079-0.26980.39393


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.384045-3.97266.5e-05
2-0.083604-0.86480.194541
30.1256221.29940.098292
40.1105281.14330.12773
5-0.229854-2.37760.0096
60.2140662.21430.014464
7-0.051752-0.53530.296767
8-0.019019-0.19670.422205
9-0.158162-1.6360.052385
10-0.011761-0.12170.451698
110.0448520.4640.321813
12-0.299918-3.10240.001228
13-0.206704-2.13820.01739
14-0.167862-1.73640.042688
150.0104430.1080.457091
16-0.012959-0.1340.446808
17-0.173272-1.79230.037952
180.0938990.97130.166796
190.0704570.72880.233853
200.0229510.23740.406396
21-0.062509-0.64660.259638
22-0.067951-0.70290.241825
230.042950.44430.328868
24-0.2252-2.32950.010855
25-0.09845-1.01840.155398
26-0.063094-0.65260.257692
27-0.011184-0.11570.454059
28-0.076331-0.78960.215761
29-0.100177-1.03620.151215
300.1218951.26090.105045
310.0135720.14040.44431
320.0328460.33980.367352
33-0.037088-0.38360.351002
34-0.056723-0.58670.279306
350.0606030.62690.266036
36-0.11276-1.16640.123022
370.0029390.03040.487903
38-0.096812-1.00140.159438
39-0.118326-1.2240.111826
400.0290320.30030.382263
410.014630.15130.439999
420.1176411.21690.113163
430.0011040.01140.495457
44-0.023853-0.24670.40279
45-0.007643-0.07910.468567
460.039060.4040.343494
470.0275210.28470.38822
48-0.112425-1.16290.123722
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/26/t12933799742lk4qc9karlh42v/1sswb1293379832.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/26/t12933799742lk4qc9karlh42v/1sswb1293379832.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/26/t12933799742lk4qc9karlh42v/231ee1293379832.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/26/t12933799742lk4qc9karlh42v/231ee1293379832.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/26/t12933799742lk4qc9karlh42v/331ee1293379832.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/26/t12933799742lk4qc9karlh42v/331ee1293379832.ps (open in new window)


 
Parameters (Session):
par1 = 48 ; par2 = 1 ; par3 = 1 ; par4 = 1 ; par5 = 12 ; par6 = White Noise ; par7 = 0.95 ;
 
Parameters (R input):
par1 = 48 ; 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 (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