Home » date » 2010 » Dec » 25 »

*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: Sat, 25 Dec 2010 05:18:47 +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/25/t1293254213j1euvcb1lhuddyc.htm/, Retrieved Sat, 25 Dec 2010 06:16:54 +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/25/t1293254213j1euvcb1lhuddyc.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 «
19437.50 18885.1 16579 17203.6 19165.7 17107.6 17690.5 18664.9 15878.6 16014.6 16842.6 15986.9 16773.3 16263.1 13597.3 14285.6 15496.8 13916.8 14345.5 15761.3 14531.6 15076.6 15816.8 17180.4 20432.3 21289.5 18203.6 20159.5 21053.2 19673.6 21473.3 20244.7 19049.6 20194.3 18021.9 19537.3 20286.6 17967.7 16409.9 17802.7 18509.9 18161.3 16721.3 19106.9 16772.1 17463.6 16162.3 17862.9 17664.9 17180.8 15672.7 15189.8 17699.4 17444.6 15930.7 19691.6 16698 16896.2 17972.4 17637.4 15214
 
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.6207244.8484e-06
20.5062433.95390.000101
30.5870144.58471.2e-05
40.4237693.30970.000785
50.3143262.4550.008478
60.3266152.55090.006634
70.0916850.71610.238335
8-0.002633-0.02060.49183
9-0.08431-0.65850.256354
10-0.239815-1.8730.03293
11-0.257652-2.01230.024303
12-0.159252-1.24380.109167
13-0.372731-2.91110.002511
14-0.424272-3.31370.000776
15-0.370218-2.89150.002653
16-0.37039-2.89280.002643
17-0.366432-2.86190.002881
18-0.283327-2.21290.01533
19-0.287726-2.24720.014128
20-0.250756-1.95850.027376
21-0.261512-2.04250.022717
22-0.213042-1.66390.05063
23-0.119003-0.92940.178161
24-0.031214-0.24380.404105
25-0.0653-0.510.305942
26-0.092956-0.7260.235306
27-0.022761-0.17780.429745
280.0461420.36040.359905
290.0442010.34520.365559
300.0837530.65410.257742
310.0841690.65740.256705
320.0464250.36260.359082
330.0636950.49750.310321
340.0576460.45020.32707
350.0391180.30550.380504
360.1058690.82690.205769


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.6207244.8484e-06
20.1967541.53670.064769
30.3595742.80840.00334
4-0.115497-0.90210.185286
5-0.061812-0.48280.315494
60.0073360.05730.477247
7-0.329946-2.5770.006201
8-0.086374-0.67460.251239
9-0.251456-1.96390.02705
10-0.135473-1.05810.147096
110.0256660.20050.420894
120.2909422.27230.013302
13-0.170803-1.3340.093579
14-0.093292-0.72860.234507
15-0.134192-1.04810.14937
160.0758770.59260.277815
17-0.036537-0.28540.388165
18-0.024422-0.19070.424682
190.0280890.21940.413543
20-0.034161-0.26680.395259
21-0.146624-1.14520.128306
22-0.045873-0.35830.360685
230.0041170.03220.487227
240.010030.07830.468909
25-0.001939-0.01510.493984
26-0.182016-1.42160.080119
270.0417090.32580.372862
28-0.002403-0.01880.492544
290.0544640.42540.336028
30-0.049455-0.38630.350324
31-0.082709-0.6460.260357
32-0.109933-0.85860.196961
330.0812760.63480.263972
34-0.109802-0.85760.19724
35-0.119375-0.93230.177417
360.0197130.1540.439073
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/25/t1293254213j1euvcb1lhuddyc/1p1m71293254324.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/25/t1293254213j1euvcb1lhuddyc/1p1m71293254324.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/25/t1293254213j1euvcb1lhuddyc/2p1m71293254324.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/25/t1293254213j1euvcb1lhuddyc/2p1m71293254324.ps (open in new window)


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