Home » date » 2010 » May » 05 »

*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, 05 May 2010 15:42:58 +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/May/05/t12730742218kqc1urw54fic3i.htm/, Retrieved Wed, 05 May 2010 17:43: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/May/05/t12730742218kqc1urw54fic3i.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 «
1772.2 1769.5 1768 1794.8 1823.4 1856.9 1866.9 1869.8 1843.8 1837.1 1857.7 1840.3 1914.6 1972.9 2050.1 2086.2 2112.5 2147.6 2190.4 2194.1 2216.2 2218.6 2233.5 2307.2 2350.4 2368.2 2353.8 2316.5 2305.5 2308.4 2334.4 2381.2 2449.7 2490.3 2523.5 2537.6 2526.1 2545.9 2542.7 2584.3 2600.2 2593.9 2618.9 2591.3 2521.2 2536.6 2596.1 2656.6 2710.3 2778.8 2775.5 2785.2 2847.7 2834.4 2839 2802.6 2819.3 2872 2918.4 2977.8 3031.2 3064.7 3093 3100.6 3141.1 3180.4 3240.3 3265 3338.2 3376.6 3422.5 3432 3516.3 3564 3636.3 3724 3815.4 3828.1 3853.3 3884.5 3918.7 3919.6 3950.8 3981 4063 4132 4160.3 4178.3 4244.1 4256.5 4283.4 4263.3 4256.6 4264.3 4302.3 4256.6 4374 4398.8 4433.9 4446.3 4525.8 4633.1 4677.5 4754.5 4876.2 4932.6 4906.3 4953.1 4909.6 4922.2 4873.5 4854.3 4795.3 4831.9 4913.3 4977.5 5090.7 5128.9 5154.1 5191.5 5251.8 5356.1 5451.9 5450.8 5469.4 5684.6 5740.3 5816.2 5825.9 5831.4 5873.3 etc...
 
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'RServer@AstonUniversity' @ vre.aston.ac.uk


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.4368086.92030
20.3287795.20880
30.1246191.97430.02472
40.1241971.96770.025105
50.0378070.5990.274865
60.0894011.41640.078952
70.0390870.61930.268154
80.0199120.31550.376336
90.1433372.27090.012001
100.1250081.98050.024369
110.0695681.10220.135723
12-0.060738-0.96230.168419
13-2.6e-05-4e-040.499838
140.0175430.27790.390647
150.0274380.43470.332077
160.0887271.40570.080526
170.0435650.69020.245351
180.0653711.03570.150677
190.1077111.70650.044579
200.1145621.8150.035358
210.0377690.59840.275063
220.0601430.95280.170795
230.0630570.9990.159376
240.131282.07990.019276
250.1414812.24150.012935
260.0835081.3230.093517
270.0411650.65220.25744
280.0949271.50390.066929
290.1381092.18810.014794
300.0728671.15440.12471
310.1105021.75070.040611
320.101321.60520.054853
330.0377170.59750.27534
340.0613080.97130.166165
35-0.006911-0.10950.456453
36-0.009115-0.14440.442649
37-0.034663-0.54920.291688
380.0118530.18780.425598
39-0.012369-0.1960.4224
400.0242150.38360.350788
410.0278870.44180.329505
420.1035541.64060.051067
430.0795731.26070.1043
440.080161.270.102634
450.1011261.60210.055191
460.0181620.28770.38689
470.0400180.6340.263329
480.0344980.54650.292588


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.4368086.92030
20.1705122.70140.003688
3-0.087806-1.39110.082712
40.0628670.9960.160105
5-0.031113-0.49290.31125
60.0694841.10080.136011
7-0.011888-0.18830.425379
8-0.035535-0.5630.286975
90.1909543.02530.001371
100.0131740.20870.417422
11-0.071008-1.1250.130837
12-0.126898-2.01040.022727
130.0677981.07410.141898
140.0805671.27640.101494
15-0.044376-0.7030.24134
160.0906081.43550.076196
17-0.017401-0.27570.391512
180.0245910.38960.348582
190.0698911.10730.134616
20-0.005707-0.09040.464016
21-0.003737-0.05920.47642
220.0459580.72810.233614
230.0250830.39740.345708
240.0907241.43730.075934
250.0292550.46350.321709
26-0.055129-0.87340.191636
27-0.013819-0.21890.413442
280.1088941.72520.042861
290.0658921.04390.148762
30-0.076527-1.21240.113245
310.09621.52410.064372
320.0601250.95260.170865
33-0.12019-1.90420.029016
340.0211660.33530.368824
35-0.078458-1.2430.107512
360.0526970.83490.202289
370.0018490.02930.488329
38-0.069969-1.10850.134351
390.0057860.09170.46352
400.0307180.48670.313459
410.0110660.17530.430483
420.0808311.28060.100759
430.0095150.15070.440148
440.0103880.16460.434704
450.0396470.62810.265246
46-0.053381-0.84570.199259
47-0.004822-0.07640.469585
48-0.019958-0.31620.376056
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/May/05/t12730742218kqc1urw54fic3i/1wwxv1273074174.png (open in new window)
http://www.freestatistics.org/blog/date/2010/May/05/t12730742218kqc1urw54fic3i/1wwxv1273074174.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/May/05/t12730742218kqc1urw54fic3i/276ff1273074174.png (open in new window)
http://www.freestatistics.org/blog/date/2010/May/05/t12730742218kqc1urw54fic3i/276ff1273074174.ps (open in new window)


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