Home » date » 2009 » Dec » 16 »

*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, 16 Dec 2009 14:08:59 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2009/Dec/16/t1260997861vznrzerxb1vtv3u.htm/, Retrieved Wed, 16 Dec 2009 22:11: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/2009/Dec/16/t1260997861vznrzerxb1vtv3u.htm/},
    year = {2009},
}
@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 = {2009},
    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:
KDGP2W21
 
Dataseries X:
» Textbox « » Textfile « » CSV «
0.96 1 1.05 1.03 1.07 1.12 1.1 1.06 1.11 1.08 1.07 1.02 1 1.04 1.02 1.07 1.12 1.08 1.02 1.01 1.04 0.98 0.95 0.94 0.94 0.96 0.97 1.03 1.01 0.99 1 1 1.02 1.01 0.99 0.98 1.01 1.03 1.03 1 0.96 0.97 0.98 1.02 1.04 1.01 1.01 1 1.01 1.02 1.03 1.06 1.12 1.12 1.13 1.13 1.13 1.17 1.14 1.08 1.07 1.12 1.14 1.21 1.2 1.23 1.29 1.31 1.37 1.35 1.26 1.26 1.28 1.28 1.27 1.35 1.37 1.37 1.4 1.4 1.28 1.23 1.23 1.25 1.21 1.22 1.29 1.32 1.36 1.36 1.37 1.32 1.33 1.36 1.42 1.39 1.42 1.4 1.42 1.44 1.49 1.54 1.55 1.47 1.47 1.35 1.2 1.12 1.11 1.15 1.17 1.2 1.24
 
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'Gwilym Jenkins' @ 72.249.127.135


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.9597110.20190
20.9041469.61120
30.852239.05930
40.7997118.5010
50.7560478.03690
60.7309487.77010
70.7158697.60980
80.6999897.4410
90.6875947.30920
100.6807447.23640
110.6626047.04360
120.6233246.6260
130.5808846.17490
140.5512075.85940
150.5175625.50180
160.4843115.14831e-06
170.460024.89012e-06
180.441394.6924e-06
190.4247014.51468e-06
200.415154.41311.2e-05
210.4166514.42911.1e-05
220.4117314.37681.3e-05
230.3956334.20562.6e-05
240.3735523.97096.3e-05
250.3468023.68660.000175
260.3069663.26310.000729
270.2580232.74280.003543
280.2147722.28310.012148
290.1775821.88770.030814
300.1444521.53550.063723
310.1196231.27160.103062
320.0993931.05660.146482
330.0833870.88640.188637
340.059750.63510.263308
350.0342140.36370.358382
360.0031310.03330.486752
37-0.037375-0.39730.345948
38-0.07843-0.83370.203099
39-0.114961-1.22210.112115
40-0.149238-1.58640.057719
41-0.177906-1.89120.030582
42-0.205034-2.17950.015683
43-0.22749-2.41820.008596
44-0.241984-2.57230.005699
45-0.25196-2.67840.004251
46-0.258826-2.75140.003457
47-0.268001-2.84890.002607
48-0.283082-3.00920.001615


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.9597110.20190
2-0.214007-2.27490.012398
30.0557420.59250.277336
4-0.062148-0.66060.255093
50.1017231.08130.140927
60.1715541.82360.035425
70.0499660.53110.298181
8-0.03617-0.38450.350668
90.0546710.58120.281146
100.0800580.8510.198276
11-0.122882-1.30630.09706
12-0.217035-2.30710.011435
130.0106820.11350.454899
140.182721.94230.027292
15-0.11331-1.20450.115456
16-0.069824-0.74220.22974
17-0.012668-0.13470.44656
180.0812580.86380.194769
190.0569390.60530.273108
200.0073630.07830.468875
210.0783280.83260.203402
22-0.023705-0.2520.400756
23-0.01976-0.21010.417003
24-0.107463-1.14230.127862
25-0.079632-0.84650.199532
26-0.106915-1.13650.129071
27-0.089814-0.95470.170874
28-0.028097-0.29870.38287
29-0.015269-0.16230.435676
30-0.029581-0.31450.376878
31-0.042741-0.45430.325226
32-0.070105-0.74520.228842
330.1124951.19580.117132
34-0.063331-0.67320.251093
35-0.028455-0.30250.381421
36-0.085425-0.90810.182885
37-0.025759-0.27380.39236
380.0524150.55720.289254
39-0.070013-0.74430.229135
40-0.099194-1.05440.146964
410.0330880.35170.362848
42-0.083342-0.88590.188766
43-0.015126-0.16080.436273
440.0195980.20830.417674
450.0230860.24540.403292
460.0674980.71750.237268
47-0.067233-0.71470.238135
480.0035350.03760.485045
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/16/t1260997861vznrzerxb1vtv3u/13wg71260997738.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/16/t1260997861vznrzerxb1vtv3u/13wg71260997738.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/16/t1260997861vznrzerxb1vtv3u/2nwof1260997738.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/16/t1260997861vznrzerxb1vtv3u/2nwof1260997738.ps (open in new window)


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