Home » date » 2010 » Nov » 16 »

*Unverified author*
R Software Module: /rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Tue, 16 Nov 2010 12:22:30 +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/Nov/16/t12899102343v96lrip4s0q697.htm/, Retrieved Tue, 16 Nov 2010 13:23:57 +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/Nov/16/t12899102343v96lrip4s0q697.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:
KDGP2W12
 
Dataseries X:
» Textbox « » Textfile « » CSV «
98.1 98.0 98.3 98.5 98.7 99.3 99.5 99.8 100.3 99.3 99.6 99.3 99.4 99.7 100.0 99.3 100.3 100.8 101.4 101.1 100.6 99.5 99.1 98.8 99.1 98.8 98.5 99.0 99.0 100.6 101.0 101.8 101.8 101.8 101.8 102.4 103.0 103.3 103.6 104.1 104.5 105.6 105.9 106.0 106.3 107.3 107.1 107.3 107.7 108.0 108.9 108.5 109.0 108.9 109.0 108.9 110.3 109.4 108.6 108.0 108.4 108.0 108.0 107.6 107.5 107.9 108.0 107.5 106.8 106.7 107.2 107.8 106.6 106.3 105.7 105.9 106.5 107.2 108.3
 
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
R Framework
error message
Warning: there are blank lines in the 'Data' field.
Please, use NA for missing data - blank lines are simply
 deleted and are NOT treated as missing values.


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.9677968.6020
20.9357348.3170
30.9036188.03150
40.876347.78910
50.8483437.54020
60.8196017.28480
70.7865346.99090
80.7510226.67520
90.7203776.40290
100.6867056.10360
110.6525925.80040
120.6097465.41950
130.56375.01032e-06
140.5175094.59978e-06
150.4736054.20953.4e-05
160.4233793.76310.00016
170.3783863.36320.000595
180.3365822.99160.00185
190.2996432.66330.004687
200.2636712.34360.010808
210.2264762.0130.023763
220.1786141.58760.058191
230.1271211.12990.130973
240.0788150.70050.242831
250.0323310.28740.387292
26-0.01762-0.15660.437975
27-0.069542-0.61810.269143
28-0.117297-1.04260.150165
29-0.165461-1.47070.072679
30-0.202663-1.80130.037735
31-0.235343-2.09180.019836
32-0.263099-2.33850.010946
33-0.290146-2.57890.005884
34-0.318514-2.8310.002941
35-0.344224-3.05950.001514
36-0.366144-3.25440.000837
37-0.387471-3.44390.00046
38-0.408104-3.62730.000253
39-0.42535-3.78060.000151
40-0.439015-3.9021e-04
41-0.45159-4.01386.7e-05
42-0.456186-4.05475.8e-05
43-0.461452-4.10154.9e-05
44-0.46298-4.11514.7e-05
45-0.460957-4.09715e-05
46-0.452201-4.01936.6e-05
47-0.44677-3.9717.8e-05
48-0.442081-3.92939.1e-05


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.9677968.6020
2-0.014125-0.12550.450206
3-0.017421-0.15480.438672
40.0595230.52910.299126
5-0.025788-0.22920.409649
6-0.027256-0.24230.404603
7-0.078771-0.70010.24295
8-0.059265-0.52680.299918
90.0559280.49710.310251
10-0.075321-0.66950.252574
11-0.031873-0.28330.388845
12-0.148406-1.31910.09548
13-0.085319-0.75830.225253
14-0.030903-0.27470.392143
15-0.022642-0.20120.420511
16-0.142112-1.26310.105131
170.0580610.51610.303628
180.0313410.27860.390653
190.0543570.48310.315169
20-0.010914-0.0970.461483
21-0.037469-0.3330.369998
22-0.182404-1.62120.054476
23-0.087901-0.78130.218485
24-0.019421-0.17260.431696
25-0.025669-0.22810.41006
26-0.129593-1.15180.126429
27-0.054427-0.48380.314947
280.0198740.17660.430119
29-0.079347-0.70530.241364
300.0750750.66730.253269
310.0513520.45640.324668
320.0499710.44420.329072
330.0574560.51070.305499
34-0.030007-0.26670.395195
350.0283310.25180.40092
360.028150.25020.401541
37-0.00946-0.08410.466604
38-0.012753-0.11340.455018
39-0.041661-0.37030.356078
40-0.008325-0.0740.470602
41-0.047627-0.42330.336607
420.0602420.53540.296925
43-0.05068-0.45050.32681
440.0511430.45460.325332
450.0187220.16640.434133
460.1121080.99640.16104
47-0.035823-0.31840.375512
480.0121690.10820.457071
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Nov/16/t12899102343v96lrip4s0q697/1cmtt1289910148.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/16/t12899102343v96lrip4s0q697/1cmtt1289910148.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/16/t12899102343v96lrip4s0q697/2cmtt1289910148.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/16/t12899102343v96lrip4s0q697/2cmtt1289910148.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