Home » date » 2007 » Dec » 13 » attachments

paper tijdreeks 4 autocorr 1

R Software Module: rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Thu, 13 Dec 2007 03:11:52 -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/13/t1197539847saz9c0vrz3b74pl.htm/, Retrieved Thu, 13 Dec 2007 10:57:30 +0100
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
98.6 98.0 106.8 96.6 100.1 107.7 91.5 97.8 107.4 117.5 105.6 97.4 99.5 98.0 104.3 100.6 101.1 103.9 96.9 95.5 108.4 117.0 103.8 100.8 110.6 104.0 112.6 107.3 98.9 109.8 104.9 102.2 123.9 124.9 112.7 121.9 100.6 104.3 120.4 107.5 102.9 125.6 107.5 108.8 128.4 121.1 119.5 128.7 108.7 105.5 119.8 111.3 110.6 120.1 97.5 107.7 127.3 117.2 119.8 116.2
 
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 time1 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Autocorrelation Function
Time lag kACF(k)T-STATP-value
017.7460
10.3495722.70780.004406
20.1522491.17930.121464
30.4624043.58180.000342
40.0758020.58720.27965
50.1826581.41490.081139
60.4875363.77640.000184
70.0745190.57720.282974
80.1250150.96840.168376
90.34042.63670.005321
100.0332350.25740.398861
110.292722.26740.01349
120.5860274.53931.4e-05
130.1341.0380.151728
140.1129640.8750.192526
150.2005751.55360.062764
16-0.093721-0.7260.764657
170.0642690.49780.310213
180.1493221.15660.126001
19-0.117045-0.90660.815885
20-0.046254-0.35830.639304
21-0.01333-0.10330.540948
22-0.164819-1.27670.896683
230.0545820.42280.33698
240.1527161.18290.120751
25-0.046416-0.35950.639771
26-0.067842-0.52550.699414
27-0.12683-0.98240.835081
28-0.263166-2.03850.977042
29-0.170912-1.32390.904718
30-0.116341-0.90120.81445
31-0.210528-1.63070.945908
32-0.17431-1.35020.908989
33-0.172062-1.33280.906179
34-0.228223-1.76780.958911
35-0.123199-0.95430.828119
36-0.001634-0.01270.505029
37-0.126459-0.97950.834378
38-0.181516-1.4060.917562
39-0.142871-1.10670.863574
40-0.239789-1.85740.965918
41-0.208492-1.6150.944218
42-0.099801-0.77310.778737
43-0.162158-1.25610.893021
44-0.192769-1.49320.929685
45-0.162984-1.26250.894167
46-0.161309-1.24950.891832
47-0.089768-0.69530.755238


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
00.3495722.70780.004406
10.0342310.26520.3959
20.4551223.52540.000408
3-0.307873-2.38480.989867
40.3862982.99230.002008
50.1200830.93020.178008
6-0.106135-0.82210.792867
70.0727640.56360.287555
80.0269440.20870.417692
90.0149740.1160.454025
100.3028482.34590.011153
110.2823642.18720.016319
12-0.123195-0.95430.82811
13-0.163565-1.2670.894968
14-0.200983-1.55680.937612
15-0.060435-0.46810.679305
16-0.155874-1.20740.883991
17-0.160931-1.24660.891299
18-0.003001-0.02320.509234
19-0.174999-1.35550.909836
20-0.060343-0.46740.679052
21-0.074778-0.57920.717697
22-0.019829-0.15360.560779
23-0.003138-0.02430.509656
240.0831480.64410.260995
25-0.06655-0.51550.695949
26-0.044536-0.3450.634339
27-0.100807-0.78080.781018
28-0.060462-0.46830.67938
290.0789490.61150.271576
300.020010.1550.438673
310.1510871.17030.123252
320.0579270.44870.327632
330.0366910.28420.388614
34-0.040849-0.31640.623607
350.1102220.85380.198311
36-0.145173-1.12450.867361
370.0284730.22060.413095
380.0581650.45050.32697
390.0381410.29540.384339
400.0234450.18160.428253
41-0.060222-0.46650.678717
420.067520.5230.301448
43-0.181936-1.40930.918041
44-0.111739-0.86550.804901
450.0492960.38180.351963
46-0.047931-0.37130.644128
47-0.039447-0.30560.619498
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/13/t1197539847saz9c0vrz3b74pl/177vd1197540710.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/13/t1197539847saz9c0vrz3b74pl/177vd1197540710.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/13/t1197539847saz9c0vrz3b74pl/27vh71197540710.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/13/t1197539847saz9c0vrz3b74pl/27vh71197540710.ps (open in new window)


 
Parameters:
par1 = 1 ; par2 = 1 ; par3 = 1 ; par4 = 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