Home » date » 2009 » Jun » 01 »

*Unverified author*
R Software Module: rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Mon, 01 Jun 2009 06:43:44 -0600
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2009/Jun/01/t1243860236esdupytv3log2kk.htm/, Retrieved Mon, 01 Jun 2009 14:43:58 +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/2009/Jun/01/t1243860236esdupytv3log2kk.htm/},
    year = {2009},
}
@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 = {2009},
    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 «
27,00 26,88 27,38 26,82 27,00 26,15 25,85 26,17 25,66 25,72 25,42 25,10 26,20 26,39 26,27 26,63 21,10 20,30 20,61 21,05 20,45 20,91 21,22 20,85 21,90 22,71 22,40 22,81 23,96 23,37 23,55 23,01 22,63 22,63 22,00 22,15 22,00 22,00 21,84 22,10 22,37 21,83 21,77 21,89 20,76 20,21 20,19 20,01 19,16 18,50 17,41 18,14 18,60 18,32 18,40 18,16 17,29 16,65 16,36 16,32 17,37 17,30 18,10 19,00 18,38 18,41 18,10 17,87 18,70 18,81 18,88 19,44 18,60 18,80 18,62 18,24 17,84 17,85 17,67 17,99 18,15 18,39 18,07 18,39
 
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


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.9423828.63710
20.8817218.08110
30.819777.51330
40.7580546.94770
50.7038826.45120
60.6575016.02610
70.6109215.59920
80.5639385.16861e-06
90.5235384.79833e-06
100.4872664.46591.2e-05
110.451444.13754.1e-05
120.4131983.7870.000143
130.3755123.44160.000452
140.3298373.0230.001659
150.290712.66440.004623
160.2432682.22960.014221
170.230992.11710.018606
180.2260012.07130.020698
190.2163061.98250.025347
200.2073241.90020.030422
210.2076541.90320.030221
220.2023441.85450.033588
230.1946121.78360.039047
240.1925921.76510.040588
250.1808511.65750.050572
260.1617091.48210.071029
270.1452891.33160.093297
280.126751.16170.124326
290.0933690.85570.197287
300.0654840.60020.275003
310.0354810.32520.372924
320.011060.10140.459752
33-0.016115-0.14770.441468
34-0.051417-0.47120.319345
35-0.084243-0.77210.221111
36-0.11194-1.02590.153931
37-0.133226-1.2210.112744
38-0.153143-1.40360.082065
39-0.173863-1.59350.057405
40-0.198388-1.81830.036295
41-0.22846-2.09390.019643
42-0.262328-2.40430.009202
43-0.296717-2.71950.003972
44-0.330706-3.0310.00162
45-0.352345-3.22930.000886
46-0.371265-3.40270.000512
47-0.383069-3.51090.000361
48-0.389032-3.56550.000301


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.9423828.63710
2-0.056846-0.5210.301869
3-0.043128-0.39530.346823
4-0.031399-0.28780.387113
50.0327150.29980.38252
60.0347630.31860.375408
7-0.03532-0.32370.37348
8-0.034798-0.31890.375285
90.0330620.3030.381314
100.0152480.13970.444596
11-0.021892-0.20060.42073
12-0.051146-0.46880.320227
13-0.015532-0.14240.44357
14-0.087656-0.80340.212012
150.0338630.31040.378529
16-0.111684-1.02360.154482
170.2925812.68150.00441
180.0224590.20580.418708
19-0.066556-0.610.271757
20-0.019428-0.17810.429553
210.1119321.02590.153949
22-0.035726-0.32740.372076
23-0.039399-0.36110.359467
240.025560.23430.407677
25-0.053447-0.48980.312759
26-0.052219-0.47860.316737
270.0133210.12210.451559
28-0.061134-0.56030.288381
29-0.133128-1.22010.112913
30-0.025447-0.23320.408077
31-0.013185-0.12080.452052
32-0.015505-0.14210.443668
330.0111490.10220.459429
34-0.104348-0.95640.170816
35-0.013327-0.12210.451539
360.0087330.080.468198
370.0926960.84960.198988
38-0.042466-0.38920.349053
39-0.078772-0.7220.236163
40-0.013791-0.12640.449859
41-0.078429-0.71880.237127
42-0.11702-1.07250.143283
43-0.045238-0.41460.33974
44-0.007954-0.07290.47103
45-0.036048-0.33040.370967
46-0.033535-0.30740.379667
470.0587860.53880.295732
480.011260.10320.459026
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/01/t1243860236esdupytv3log2kk/148ae1243860222.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/01/t1243860236esdupytv3log2kk/148ae1243860222.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/01/t1243860236esdupytv3log2kk/2s5ul1243860222.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/01/t1243860236esdupytv3log2kk/2s5ul1243860222.ps (open in new window)


 
Parameters (Session):
par1 = 48 ; par2 = 1 ; par3 = 0 ; par4 = 0 ; par5 = 12 ;
 
Parameters (R input):
par1 = 48 ; par2 = 1 ; par3 = 0 ; par4 = 0 ; par5 = 12 ;
 
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 (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='lags',ylab='ACF')
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