Home » date » 2007 » Nov » 29 » attachments

Autocorrelation function - Opdracht 3 (d=0 ;D=0)

R Software Module: rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Thu, 29 Nov 2007 09:18:57 -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/29/t1196352569dd6hql6cqfpwpuc.htm/, Retrieved Thu, 29 Nov 2007 17:09:29 +0100
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
138,1 138,6 160,8 151,5 142,7 157,4 138,9 141,0 150,9 149,9 153,0 144,3 128,1 123,3 155,9 144,1 134,1 153,1 131,0 129,8 139,9 135,6 126,8 134,4 113,5 107,5 133,8 119,0 125,9 130,1 114,2 111,6 131,2 124,1 127,1 123,4 100,7 100,3 121,6 110,5 110,3 122,7 102,6 101,8 113,6 107,2 116,8 112,5 89,0 95,2 110,6 102,6 106,4 112,7 103,2 104,2 111,3 115,7 111,6 112,2 92,2 97,1 108,1 107,2 107,2 110,3 97,6 100,6 102,8 105,3 109,5 105,7 93,7 91,7 111,6 109,2 101,2 114,3 100,9 106,0 109,0 110,4 110,7 105,7 89,6 83,1 103,5 104,8 93,5 106,7 93,7 84,7 99,2 91,9 94,9 94,1 80,8 72,6 94,0 80,0 85,4 91,5 76,1 76,1 89,5 85,3 91,0 93,0 73,4 76,6 95,0 84,5 88,7 93,1 83,4 82,2 95,6 83,7 94,3 93,0 71,8 75,3 91,8 80,7 84,8 83,1 78,4 78,7 84,7 80,5 91,8 83,5 66,6 68,6 83,6 79,7 79,9 81,2 74,3 73,0 78,8 81,6 85,0 91,1 68,2 59,8 83,1 76,7 73,2 83,9 73,0 70,9
 
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 time5 seconds
R Server'Herman Ole Andreas Wold' @ 193.190.124.10:1001


Autocorrelation Function
Time lag kACF(k)T-STATP-value
0112.32880
10.86369410.64830
20.802629.89540
30.82909210.22170
40.756489.32650
50.7715249.5120
60.82239610.13920
70.7213568.89350
80.6712818.27610
90.6875118.47620
100.60957.51440
110.6341197.81790
120.7066628.71230
130.5979877.37250
140.5458486.72970
150.5551016.84370
160.4874766.010
170.5021946.19150
180.5414626.67560
190.4492185.53830
200.4085915.03741e-06
210.4138765.10260
220.350794.32481.4e-05
230.38624.76142e-06
240.4447275.4830
250.3577994.41121e-05
260.3178483.91876.7e-05
270.3257964.01674.6e-05
280.2769983.41510.000409
290.2941933.62710.000195
300.3319614.09273.4e-05
310.2620793.23110.000756
320.2306622.84380.002536
330.234892.89590.002169
340.1812322.23440.013458
350.2081022.56570.005633
360.2640273.25510.000699
370.1971832.4310.00811
380.1582981.95160.02641
390.1712752.11160.018177
400.1362731.68010.047498
410.1531371.8880.030466
420.1864412.29860.011445
430.1322161.63010.052579
440.1021721.25970.104861
450.1125051.38710.083728
460.0745310.91890.179808
470.0972831.19940.116121


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
00.86369410.64830
10.2230152.74950.003346
20.4053674.99771e-06
3-0.177084-2.18320.984724
40.3625694.478e-06
50.192512.37340.009437
6-0.31088-3.83280.999907
7-0.126185-1.55570.939071
80.0475750.58650.279189
9-0.129506-1.59670.943791
100.2384312.93960.0019
110.2525263.11330.001105
12-0.308861-3.80790.999899
13-0.139511-1.720.956267
14-0.026479-0.32650.627735
150.0756360.93250.176278
16-0.023833-0.29380.615358
17-0.034572-0.42620.664731
18-0.038044-0.4690.680143
19-0.01362-0.16790.566564
200.0033440.04120.483587
210.0962911.18720.11851
220.1266761.56180.060211
230.031880.3930.34742
24-0.120387-1.48420.930091
25-0.081533-1.00520.841801
260.0285590.35210.362627
270.0497590.61350.270241
28-0.109041-1.34430.909581
29-0.000662-0.00820.503248
300.0385810.47570.317498
310.004490.05540.477965
320.0240480.29650.383635
33-0.008364-0.10310.540995
34-0.027518-0.33930.632559
350.0558080.6880.246237
36-0.041449-0.5110.694961
37-0.05993-0.73890.769437
380.0454210.560.288158
390.0315340.38880.348991
40-0.028358-0.34960.636447
41-0.072151-0.88950.812439
420.0555930.68540.247071
43-0.00523-0.06450.525662
440.037880.4670.320578
450.0080940.09980.460324
460.0179750.22160.412459
47-0.025838-0.31850.624747
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/29/t1196352569dd6hql6cqfpwpuc/1ig071196353130.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/29/t1196352569dd6hql6cqfpwpuc/1ig071196353130.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/29/t1196352569dd6hql6cqfpwpuc/2jnhb1196353130.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/29/t1196352569dd6hql6cqfpwpuc/2jnhb1196353130.ps (open in new window)


 
Parameters:
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 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