Home » date » 2007 » Nov » 28 » attachments

methode 2 op tijdreeks 4

R Software Module: rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Wed, 28 Nov 2007 03:20:29 -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/Nov/28/t1196244639fhjn81u29iqgcz1.htm/, Retrieved Wed, 28 Nov 2007 11:10:42 +0100
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
105.3 102.5 101.8 94.7 104.6 100.7 97.6 91.3 89.5 106.1 115.2 107.1 96.3 87.0 96.8 99.8 94.1 90.8 87.1 90.6 90.1 83.9 70.6 68.4 66.0 66.3 75.0 90.5 91.0 88.5 95.1 97.2 92.1 90.0 96.4 90.8 90.6 114.2 111.5 113.4 103.8 99.3 103.4 96.9 83.3 96.3 95.0 88.6 87.6 85.0 78.2 80.7 71.8 66.6 58.5 57.4 56.1 46.9 38.4 40.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
017.68110
10.0703420.54030.29551
2-0.219686-1.68740.951601
3-0.04046-0.31080.621469
40.0159910.12280.45133
50.0958190.7360.232323
60.0616010.47320.318921
7-0.153039-1.17550.877744
80.0338860.26030.397777
90.0080740.0620.475378
100.1665991.27970.102836
110.16671.28050.102699
12-0.048312-0.37110.644052
13-0.192623-1.47960.927845
14-0.04605-0.35370.637595
15-0.131324-1.00870.841387
16-0.085143-0.6540.742173
170.0090380.06940.472445
180.1040640.79930.213651
190.014630.11240.455453
20-0.106611-0.81890.791929
21-0.082154-0.6310.734772
220.1061050.8150.209174
230.003250.0250.490084
24-0.129916-0.99790.838799
25-0.059663-0.45830.675782
26-0.102328-0.7860.782492
270.0103290.07930.468515
280.1484761.14050.12935
29-0.042507-0.32650.627401
30-0.0595-0.4570.675335
31-0.045144-0.34680.634997
320.0252440.19390.42346
330.08350.64140.26188
34-0.118033-0.90660.815855
350.0239250.18380.427412
360.100970.77560.220551
370.0341130.2620.397108
38-0.046046-0.35370.637582
39-0.029748-0.22850.589975
40-0.042075-0.32320.626152
410.1140390.8760.192304
420.0051960.03990.484148
43-0.082284-0.6320.735096
44-0.041694-0.32030.625047
450.0259640.19940.421304
460.0278960.21430.415538
470.0238470.18320.427647
48-0.100901-0.7750.779292
49-0.019233-0.14770.55847
500.0122850.09440.462571
510.0334960.25730.398925
520.0074720.05740.477214
53-0.01925-0.14790.558521
54-0.012966-0.09960.539498
550.0233840.17960.429034
56-0.002268-0.01740.50692
570.0043230.03320.486811
58-0.0016-0.01230.504883
59NANANA


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
00.0703420.54030.29551
1-0.225751-1.7340.955932
2-0.005971-0.04590.518213
3-0.031384-0.24110.594831
40.0917420.70470.241891
50.0455340.34980.363886
6-0.130126-0.99950.839186
70.091580.70340.242274
8-0.068658-0.52740.700044
90.2105481.61730.055579
100.1207210.92730.178781
110.0249760.19180.424261
12-0.131715-1.01170.842099
13-0.062865-0.48290.684515
14-0.223383-1.71580.954281
15-0.166392-1.27810.896887
16-0.021721-0.16680.565966
170.116140.89210.187985
180.0388480.29840.383224
19-0.107488-0.82560.79383
20-0.088544-0.68010.750456
210.0111930.0860.465889
220.008360.06420.47451
23-0.029785-0.22880.590086
240.0967160.74290.230247
25-0.088373-0.67880.750042
26-0.004991-0.03830.515224
27-0.025559-0.19630.577485
28-0.132433-1.01720.843404
29-0.031668-0.24320.595671
30-0.028903-0.2220.587464
310.0700530.53810.296271
320.0139570.10720.457494
33-0.105128-0.80750.78869
340.1152420.88520.189825
350.005630.04320.482827
360.0949410.72930.234365
37-0.057364-0.44060.66945
38-0.027627-0.21220.583661
39-0.111118-0.85350.801586
400.0527430.40510.343423
41-0.027824-0.21370.58425
42-0.069007-0.53010.700967
43-0.026085-0.20040.579058
44-0.050415-0.38720.650015
45-0.074156-0.56960.714444
46-0.097126-0.7460.770697
470.0063390.04870.480665
480.0515450.39590.346795
490.0247720.19030.424871
500.0423960.32560.372922
510.0303560.23320.408218
52-0.063097-0.48470.685142
530.0108740.08350.466857
54-0.058582-0.450.672812
550.0514260.3950.347131
560.0254690.19560.422786
57-0.003832-0.02940.511691
58NANANA
59NANANA
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/28/t1196244639fhjn81u29iqgcz1/1sstl1196245227.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/28/t1196244639fhjn81u29iqgcz1/1sstl1196245227.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/28/t1196244639fhjn81u29iqgcz1/2tvml1196245227.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/28/t1196244639fhjn81u29iqgcz1/2tvml1196245227.ps (open in new window)


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