Home » date » 2010 » Dec » 20 »

*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, 20 Dec 2010 09:59:09 +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/20/t1292839293nyxrqgjiej5ktw2.htm/, Retrieved Mon, 20 Dec 2010 11:01:33 +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/20/t1292839293nyxrqgjiej5ktw2.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 «
2539.91 2502.66 2466.92 2513.17 2443.27 2293.41 2070.83 2029.60 2052.02 1864.44 1670.07 1810.99 1905.41 1862.83 2014.45 2197.82 2962.34 3047.03 3032.60 3504.37 3801.06 3857.62 3674.40 3720.98 3844.49 4116.68 4105.18 4435.23 4296.49 4202.52 4562.84 4621.40 4696.96 4591.27 4356.98 4502.64 4443.91 4290.89 4199.75 4138.52 3970.10 3862.27 3701.61 3570.12 3801.06 3895.51 3917.96 3813.06 3667.03
 
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'RServer@AstonUniversity' @ vre.aston.ac.uk


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.2487281.72320.045641
20.0322110.22320.412178
30.2065441.4310.079458
40.2314781.60370.057667
50.2688131.86240.034338
6-0.061709-0.42750.335451
7-0.094881-0.65740.257046
80.1123760.77860.22003
9-0.022596-0.15660.438127
10-0.222217-1.53960.065117
110.0648270.44910.327678
12-0.096772-0.67050.252891
13-0.135107-0.93610.176966
14-0.001244-0.00860.49658
15-0.124025-0.85930.197232
160.0016280.01130.495524
17-0.183908-1.27410.104373
18-0.243287-1.68550.049187
190.0256430.17770.42987
20-0.109118-0.7560.226674
21-0.217163-1.50460.069496
22-0.20117-1.39370.084907
23-0.170751-1.1830.121319
24-0.084101-0.58270.281423
25-0.041057-0.28450.388644
26-0.121176-0.83950.202666
27-0.045234-0.31340.37767
280.0625190.43310.333426
290.0155930.1080.457211
300.0566940.39280.348108
31-0.011701-0.08110.467862
320.0062550.04330.482806
330.073730.51080.305911
340.0313120.21690.414588
350.0224870.15580.438424
360.0380150.26340.396694
370.0463140.32090.374849
380.0360690.24990.401868
390.0067070.04650.481564
40-0.004146-0.02870.488603
410.0334610.23180.408829
420.034340.23790.40648
430.0134220.0930.46315
440.0047340.03280.486986
450.0020810.01440.494278
460.0097520.06760.473205
470.0056290.0390.484526
48NANANA


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.2487281.72320.045641
2-0.031611-0.2190.413787
30.2199551.52390.067049
40.140350.97240.167869
50.2170741.50390.069575
6-0.224971-1.55860.062825
7-0.096133-0.6660.25429
80.0259480.17980.429043
9-0.104513-0.72410.236263
10-0.209376-1.45060.076698
110.2914642.01930.024528
12-0.207956-1.44080.078072
13-0.031012-0.21490.415394
140.1328070.92010.181057
15-0.073291-0.50780.306969
16-0.091469-0.63370.264638
17-0.109743-0.76030.22539
18-0.109105-0.75590.2267
19-0.006123-0.04240.483168
20-0.093032-0.64450.261145
210.0146780.10170.459714
22-0.208694-1.44590.077355
23-0.030812-0.21350.415932
24-0.028838-0.19980.421243
250.0405030.28060.390107
260.0419730.29080.386229
27-0.034255-0.23730.406708
280.0814950.56460.287483
290.0337020.23350.408185
30-0.141468-0.98010.16597
31-0.003198-0.02220.491207
32-0.078483-0.54370.294566
33-0.076817-0.53220.29852
340.005140.03560.48587
350.0092980.06440.474451
360.0307860.21330.416001
370.0135910.09420.462687
380.0115230.07980.468351
39-0.125965-0.87270.193583
40-0.101166-0.70090.243374
410.0047250.03270.487012
42-0.060147-0.41670.339375
430.0058040.04020.484046
44-0.038604-0.26750.395131
45-0.047323-0.32790.37222
460.0210510.14580.442327
47-0.036072-0.24990.401861
48NANANA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/20/t1292839293nyxrqgjiej5ktw2/1uu041292839146.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/20/t1292839293nyxrqgjiej5ktw2/1uu041292839146.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/20/t1292839293nyxrqgjiej5ktw2/2uu041292839146.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/20/t1292839293nyxrqgjiej5ktw2/2uu041292839146.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