Home » date » 2010 » Dec » 14 »

*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: Tue, 14 Dec 2010 12:02:33 +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/14/t12923281748ahdtlt7nqrguh1.htm/, Retrieved Tue, 14 Dec 2010 13:02:55 +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/14/t12923281748ahdtlt7nqrguh1.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 «
46 61 66 59 58 61 41 27 58 70 49 59 44 36 72 45 56 54 53 35 61 52 47 51 52 63 74 45 51 64 36 30 55 64 39 40 63 45 59 55 40 64 27 28 45 57 45 69 60 56 58 50 51 53 37 22 55 70 62 58 39 49 58 47 42 62 39 40 72 70 54 64
 
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.0696160.59070.278281
2-0.237467-2.0150.023821
30.0657340.55780.289365
4-0.143035-1.21370.114415
5-0.210745-1.78820.038973
60.0704710.5980.275869
7-0.100935-0.85650.197293
8-0.053624-0.4550.325234
90.1183631.00430.159288
10-0.113681-0.96460.168983
110.1163970.98770.163313
120.4666383.95968.7e-05
13-0.040597-0.34450.365746
14-0.27176-2.3060.011998
150.0561520.47650.317594
16-0.131249-1.11370.134559
17-0.17815-1.51170.0675
180.0471220.39980.345227
19-0.101786-0.86370.195316
200.0276220.23440.407676
210.1995691.69340.047351
22-0.058949-0.50020.309231
230.0601530.51040.305661
240.3740053.17350.001108
25-0.007759-0.06580.473844
26-0.315766-2.67940.004568
270.0428920.36390.358482
28-0.136677-1.15970.124993
29-0.147283-1.24970.107722
300.066730.56620.286502
31-0.009244-0.07840.46885
320.0517460.43910.330959
330.094510.80190.212613
34-0.179335-1.52170.066232
35-0.03118-0.26460.396047
360.233031.97730.025917
37-0.032138-0.27270.392931
38-0.154691-1.31260.096744
390.0162050.13750.445509
40-0.103999-0.88250.190231
41-0.171229-1.45290.075294
420.0823240.69850.243543
430.0805670.68360.2482
440.0050270.04270.483048
450.0647170.54910.292304
46-0.082903-0.70350.242019
470.0343210.29120.38586
480.1910581.62120.054675
49-0.003502-0.02970.488187
50-0.125989-1.06910.144309
51-0.025182-0.21370.415702
52-0.098123-0.83260.203911
53-0.020353-0.17270.431687
540.0941670.7990.213449
550.0167980.14250.443526
56-0.012825-0.10880.456823
570.0375770.31890.375381
58-0.076825-0.65190.258276
590.0094060.07980.468303
600.1065790.90440.184413


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.0696160.59070.278281
2-0.243493-2.06610.021208
30.1102830.93580.176256
4-0.236013-2.00260.024491
5-0.138865-1.17830.121277
60.0035090.02980.488165
7-0.205533-1.7440.042713
8-0.005323-0.04520.482049
9-0.038661-0.32810.371912
10-0.180454-1.53120.065051
110.1816441.54130.063814
120.3505572.97460.001995
13-0.014839-0.12590.450077
14-0.121724-1.03290.152562
150.0444510.37720.353576
16-0.055449-0.47050.31971
17-0.033212-0.28180.389447
18-0.08339-0.70760.240743
19-0.159779-1.35580.089704
200.0555170.47110.319505
210.0484070.41080.341238
22-0.041739-0.35420.362124
23-0.005339-0.04530.481995
240.1879791.59510.05754
250.1719471.4590.074454
26-0.128288-1.08860.139989
270.0657840.55820.289221
28-0.111527-0.94630.173571
290.0681580.57830.28242
30-0.039875-0.33830.368043
31-0.053553-0.45440.325449
32-0.012422-0.10540.458173
33-0.179208-1.52060.066366
34-0.16079-1.36440.088353
35-0.159244-1.35120.090426
36-0.127426-1.08120.141599
370.0227980.19340.423577
380.0376870.31980.37503
39-0.018236-0.15470.438729
40-0.046382-0.39360.347533
41-0.087741-0.74450.229498
420.0262110.22240.412315
430.084890.72030.23683
44-0.113743-0.96510.168851
45-0.090887-0.77120.221556
460.0001410.00120.499525
470.0684840.58110.281492
48-0.032322-0.27430.392333
49-0.04829-0.40980.3416
50-0.004055-0.03440.486323
510.008190.06950.472393
52-0.049291-0.41830.338504
530.1379651.17070.122796
54-0.04468-0.37910.352855
550.0514760.43680.331785
560.020070.17030.432627
570.0368510.31270.377709
580.0025770.02190.491309
59-0.045214-0.38370.351184
60-0.092932-0.78860.21648
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/14/t12923281748ahdtlt7nqrguh1/1iv5d1292328150.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/14/t12923281748ahdtlt7nqrguh1/1iv5d1292328150.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/14/t12923281748ahdtlt7nqrguh1/2iv5d1292328150.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/14/t12923281748ahdtlt7nqrguh1/2iv5d1292328150.ps (open in new window)


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