Home » date » 2007 » Dec » 17 » attachments

ACF - versie 2 - Serie 2 - Paper

R Software Module: rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Mon, 17 Dec 2007 13:00:54 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2007/Dec/17/t1197920669xi433g2ghbunaje.htm/, Retrieved Mon, 17 Dec 2007 20:44:31 +0100
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
8.4 8.4 8.6 8.7 8.7 8.6 8 8.1 8.1 8.5 8.6 8.6 8.3 8.3 8.5 9.2 9.2 9 7.4 7.3 7.4 8.6 8.7 8.7 8.5 8.4 8.6 8.4 8.4 8.2 7.7 7.6 7.7 8.1 8.2 8.3 8.1 8 8.2 7.6 7.7 7.6 6.9 6.9 7 7.4 7.4 7.5 7.4 7.4 7.8 6.6 6.6 6.2 6.1 6.2 6.3 6 6.2 6.3
 
Text written by user:
 
Output produced by software:


Summary of compuational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time2 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Autocorrelation Function
Time lag kACF(k)T-STATP-value
016.85570
1-0.000986-0.00680.502681
2-0.066025-0.45260.673557
3-0.649994-4.45610.999974
4-0.004742-0.03250.512899
50.0202340.13870.445134
60.2001781.37240.088234
7-0.043992-0.30160.617854
8-0.011184-0.07670.530396
90.2354811.61440.05657
100.0106730.07320.47099
11-0.014841-0.10170.540304
12-0.328931-2.2550.985586
13-0.009114-0.06250.524778
140.0459890.31530.37697
150.2293341.57220.061303
16-0.068359-0.46860.679256
17-0.046883-0.32140.625339
18-0.001711-0.01170.504655
190.0432610.29660.384046
200.1038960.71230.239907
21-0.156504-1.07290.855612
22-0.061042-0.41850.661251
23-0.089689-0.61490.729199
240.2626551.80070.039087
25-0.013476-0.09240.536608
260.058490.4010.345122
27-0.214441-1.47010.925905
280.0639180.43820.331625
290.0117760.08070.468
300.013090.08970.464439
31-0.084477-0.57910.717371
32-0.045404-0.31130.621515
330.1598691.0960.139329
340.0693020.47510.318455
350.0507860.34820.364632
36-0.236675-1.62260.944314
37-0.020971-0.14380.556852
38-0.006126-0.0420.516662
390.1575221.07990.142846
40-0.013297-0.09120.536122
41-0.003718-0.02550.510113
42-0.064991-0.44560.671019
430.0195060.13370.447095
440.0006240.00430.498302
450.0009050.00620.497539
468.6e-056e-040.499767
47NANANA


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
0-0.000986-0.00680.502681
1-0.066026-0.45270.673559
2-0.652976-4.47660.999976
3-0.067406-0.46210.676934
4-0.122854-0.84220.798042
5-0.421342-2.88860.997082
6-0.257742-1.7670.958138
7-0.295046-2.02270.975595
80.1730971.18670.120656
9-0.184911-1.26770.894423
10-0.110781-0.75950.774319
110.0766560.52550.300843
12-0.068048-0.46650.678499
130.083520.57260.284827
14-0.005255-0.0360.514292
15-0.0912-0.62520.732581
160.0090710.06220.475337
170.0112870.07740.469324
18-0.103944-0.71260.760194
190.1303560.89370.188024
20-0.036186-0.24810.597423
21-0.060101-0.4120.658906
220.0013250.00910.496396
230.1628241.11630.134992
240.0172280.11810.453243
250.0170530.11690.453715
260.0783520.53720.296848
270.1455790.9980.161685
280.0523070.35860.36075
29-0.159242-1.09170.859737
300.0479590.32880.371888
31-0.073659-0.5050.692034
32-0.085621-0.5870.71999
33-0.026328-0.18050.571231
34-0.117786-0.80750.788278
35-0.007424-0.05090.520188
36-0.062239-0.42670.664224
37-0.072414-0.49640.689053
380.0285530.19580.422824
390.0098420.06750.473246
400.0710490.48710.314231
41-0.085395-0.58540.719473
42-0.032771-0.22470.588395
43-0.052396-0.35920.639475
440.0097110.06660.473602
45-0.057485-0.39410.652354
46NANANA
47NANANA
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/17/t1197920669xi433g2ghbunaje/1jt0t1197921652.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/17/t1197920669xi433g2ghbunaje/1jt0t1197921652.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/17/t1197920669xi433g2ghbunaje/2wied1197921652.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/17/t1197920669xi433g2ghbunaje/2wied1197921652.ps (open in new window)


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

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