Home » date » 2007 » Nov » 29 » attachments

Autocorrelatie functie - opdracht 3 (d=1 ; D=1)

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:39:17 -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/t1196353814wnvt1vaigwfffkx.htm/, Retrieved Thu, 29 Nov 2007 17:30:17 +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 time1 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Autocorrelation Function
Time lag kACF(k)T-STATP-value
0111.78980
1-0.563766-6.64671
20.1021551.20440.115244
30.1385331.63330.052337
4-0.162957-1.92120.971625
50.0456360.5380.295706
60.0781110.92090.179346
7-0.109932-1.29610.901451
80.0247340.29160.38551
90.1781512.10040.018751
10-0.274739-3.23910.99925
110.233952.75820.003297
12-0.252923-2.98190.998308
130.0208880.24630.40292
140.0784440.92480.178327
150.0018790.02220.49118
16-0.105638-1.24540.892469
170.0531370.62650.266014
180.1315881.55140.061541
19-0.239395-2.82240.997267
200.2150262.53510.006174
21-0.149188-1.75890.959602
22-0.03428-0.40420.656641
230.1806752.13010.017461
24-0.087929-1.03670.849154
25-0.081822-0.96470.831806
260.1909722.25150.012961
27-0.107602-1.26860.89665
28-0.082712-0.97520.834413
290.1870072.20480.014557
30-0.193917-2.28620.988124
310.0566560.6680.252633
320.0738490.87070.192718
33-0.025767-0.30380.619127
34-0.046842-0.55230.709172
350.089491.05510.146612
36-0.161017-1.89840.97014
370.1259081.48440.069979
38-0.006096-0.07190.528596
39-0.162701-1.91820.971433
400.2292412.70270.003868
41-0.033498-0.39490.653254
42-0.164183-1.93570.972532
430.1941132.28860.011806
44-0.081066-0.95580.829573
45-0.147246-1.7360.95761
460.2161752.54870.00595
47-0.03958-0.46660.679258


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
0-0.563766-6.64671
1-0.316165-3.72750.99986
20.0587790.6930.244734
3-0.002874-0.03390.51349
4-0.068269-0.80490.788868
50.0472830.55750.289055
64.2e-055e-040.499804
7-0.068745-0.81050.790479
80.2040362.40550.008732
9-0.044351-0.52290.699058
100.0559880.66010.255144
11-0.265666-3.13220.998942
12-0.299094-3.52630.999714
13-0.192981-2.27520.987788
140.0904941.06690.143931
15-0.007795-0.09190.536543
16-0.156676-1.84720.966577
170.1503381.77250.039254
180.0220590.26010.397595
190.0611710.72120.236002
200.0439920.51870.302412
21-0.167716-1.97730.975009
22-0.020996-0.24750.597572
23-0.032829-0.38710.650346
24-0.193395-2.28010.987938
25-0.039762-0.46880.680024
260.1062981.25320.106112
27-0.081177-0.95710.829901
28-0.111288-1.31210.90417
290.0965421.13820.128495
30-0.016234-0.19140.575751
31-0.092039-1.08510.860127
320.1167521.37650.085443
33-0.038798-0.45740.675959
34-0.023538-0.27750.609101
35-0.147122-1.73450.957481
36-0.100305-1.18260.880502
37-0.026731-0.31520.623442
38-0.058735-0.69250.755102
390.0069330.08170.467485
400.1067031.2580.105248
41-0.023527-0.27740.60905
42-0.011622-0.1370.554395
43-0.033827-0.39880.65468
44-0.065963-0.77770.780965
45-0.120708-1.42310.92153
460.1016531.19850.116386
47-0.087901-1.03630.849078
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/29/t1196353814wnvt1vaigwfffkx/19r9j1196354355.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/29/t1196353814wnvt1vaigwfffkx/19r9j1196354355.ps (open in new window)


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


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