Home » date » 2010 » Apr » 30 »

*Unverified author*
R Software Module: /rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Fri, 30 Apr 2010 12:33:59 +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/Apr/30/t12726309400av9ze65fobuwow.htm/, Retrieved Fri, 30 Apr 2010 14:35:42 +0200
 
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/Apr/30/t12726309400av9ze65fobuwow.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:
KDGP2W21
 
Dataseries X:
» Textbox « » Textfile « » CSV «
182900 191400 189300 192200 187900 193900 189100 193100 194800 200200 211500 202100 200300 199200 204900 207300 200000 197700 202200 200200 208300 215100 210700 208100 209000 211000 210200 205500 211400 211700 209300 207500 203300 207100 206900 228700 226900 226500 227100 228100 226500 225200 217800 221300 215300 231300 227100 237800 230200 233400 231100 237200 243700 239700 248400 241000 254500 242800 268300 253900 262100 264100 261000 269300 260400 263200 279200 272200 269200 289600 283200 284300 283000 289100 289600 289100 287400 279600 289300 295000 299600 293600 294400 290200 301000 307900 298800 310300 293900 305000 311300 317300 296200 306800 291800 301900 314600 321500 329400 311700 309700 306500 307100 301300 292200 310100 316800 284400 284600 301200 287600 314300 298200 299400 301900 265500 287100 274000 290100 263100 245200 258600 259800 269800 274600 274800 271100 257800 etc...
 
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.94882510.90120
20.93588110.75250
30.91683810.53370
40.8968310.30380
50.88881110.21170
60.8682549.97550
70.8538129.80950
80.8298079.53380
90.8093149.29830
100.7954519.1390
110.7846449.01490
120.7733378.8850
130.7553768.67860
140.7284328.36910
150.7118698.17880
160.6866477.8890
170.663717.62540
180.6365997.3140
190.6101397.010
200.5853256.72490
210.5562636.3910
220.534416.13990
230.506725.82180
240.4824575.5430
250.4644785.33650
260.4406855.06311e-06
270.4143854.76092e-06
280.3812214.37991.2e-05
290.3524984.04994.3e-05
300.3241443.72410.000145
310.2994243.44010.000389
320.2697113.09870.001188
330.2406352.76470.003257
340.2035682.33880.010423
350.1741862.00120.023709
360.1456651.67360.048292
370.1268671.45760.073665
380.1037841.19240.117623
390.0783120.89970.184948
400.0556730.63960.261759
410.0250430.28770.387007
420.0022690.02610.489623
43-0.024095-0.27680.391171
44-0.046601-0.53540.296635
45-0.078844-0.90590.183332
46-0.104147-1.19660.116811
47-0.131726-1.51340.066282
48-0.149226-1.71450.044394


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.94882510.90120
20.3570784.10253.6e-05
30.0819060.9410.174205
4-0.009052-0.1040.458662
50.1178271.35370.089067
6-0.045774-0.52590.29992
7-0.007158-0.08220.467291
8-0.098438-1.1310.13006
9-0.034837-0.40030.344809
100.0495960.56980.284887
110.0952481.09430.137905
120.0267510.30730.379532
13-0.056184-0.64550.259862
14-0.157984-1.81510.03589
150.0118620.13630.445901
16-0.07201-0.82730.204769
17-0.074428-0.85510.197019
18-0.107487-1.23490.109524
19-0.018782-0.21580.414745
200.0060210.06920.472477
21-0.020188-0.23190.408473
220.0036150.04150.483465
23-0.055376-0.63620.262866
24-0.021438-0.24630.402915
250.0844110.96980.166957
260.0019850.02280.49092
27-0.098708-1.13410.129411
28-0.155049-1.78140.038575
29-0.019835-0.22790.410046
300.0077040.08850.464803
310.0440190.50570.306943
32-0.076301-0.87660.19114
33-0.030116-0.3460.364945
34-0.095367-1.09570.137606
350.0306770.35240.362533
36-0.000201-0.00230.499079
370.0587830.67540.250313
38-0.036277-0.41680.338754
390.0119540.13730.445487
400.0403040.46310.322044
41-0.054694-0.62840.265417
42-0.066225-0.76090.224045
43-0.046207-0.53090.298199
440.0121190.13920.44474
45-0.074028-0.85050.198289
460.0191880.22050.41293
47-0.016243-0.18660.426125
480.0912131.0480.148285
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Apr/30/t12726309400av9ze65fobuwow/11wgy1272630838.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Apr/30/t12726309400av9ze65fobuwow/11wgy1272630838.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Apr/30/t12726309400av9ze65fobuwow/21wgy1272630838.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Apr/30/t12726309400av9ze65fobuwow/21wgy1272630838.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