Home » date » 2007 » Nov » 28 » attachments

Methode 2 op tijdreeks 3

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:25:22 -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/t1196244924r9amj8x0ldkbft5.htm/, Retrieved Wed, 28 Nov 2007 11:15:27 +0100
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
721.8 836.7 817.8 804.3 773.3 789.6 882.5 868.9 885.7 880.6 846.2 875.4 799.6 946.3 987.3 892.4 885.1 937.1 935.9 944.2 930.9 874.0 891.9 902.2 767.0 912.5 918.6 713.4 849.9 875.9 1010.9 1049.2 900.5 1111.6 898.2 1034.3 996.7 1188.9 1092.5 952.0 959.1 846.1 903.0 1089.5 879.9 1057.0 932.6 745.5 817.2 808.3 832.9 801.2 773.1 710.8 820.4 814.9 833.5 864.3 844.9 733.6
 
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.7460
10.4651113.60270.00032
20.4306633.33590.000731
30.3584332.77640.003661
40.2203811.70710.04649
50.3305882.56070.00649
60.2445211.89410.031521
70.1978551.53260.065318
80.0880270.68190.248976
9-0.113331-0.87790.808238
10-0.156789-1.21450.885339
11-0.171197-1.32610.905082
120.028830.22330.412025
13-0.194653-1.50780.93157
14-0.250234-1.93830.971352
15-0.158406-1.2270.887694
16-0.309211-2.39510.990124
17-0.1178-0.91250.817416
18-0.174969-1.35530.9098
19-0.131848-1.02130.844392
20-0.035299-0.27340.607268
21-0.162441-1.25830.893415
22-0.115544-0.8950.812818
230.0098530.07630.469709
240.0663340.51380.304632
250.0019210.01490.494089
26-0.052588-0.40730.657397
27-0.020184-0.15630.561855
28-0.11111-0.86070.803572
29-0.051582-0.39950.654546
30-0.114316-0.88550.810285
31-0.116079-0.89910.813914
32-0.070299-0.54450.705953
33-0.28148-2.18030.983417
34-0.18794-1.45580.924666
35-0.151124-1.17060.876806
36-0.142139-1.1010.862354
37-0.128052-0.99190.837381
38-0.128073-0.9920.837421
39-0.101125-0.78330.781738
40-0.091795-0.7110.760093
41-0.047539-0.36820.643004
42-0.032156-0.24910.597926
43-0.022944-0.17770.570231
440.0366290.28370.388797
45-0.01484-0.11490.545565
460.0450710.34910.364112
470.1239020.95970.170518
480.1022270.79190.215784
490.1081940.83810.202659
500.0861070.6670.253671
510.0861990.66770.253444
520.0819370.63470.264026
530.0813940.63050.265389
540.0660430.51160.305417
550.061270.47460.318399
560.0423050.32770.372141
570.0273340.21170.416517
580.02430.18820.425668
590.0416570.32270.374031


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
00.4651113.60270.00032
10.27352.11850.01914
20.1182030.91560.181772
3-0.062538-0.48440.685074
40.2002691.55130.063047
50.0258380.20010.421024
6-0.030766-0.23830.593775
7-0.150351-1.16460.875608
8-0.262968-2.03690.976963
9-0.170255-1.31880.903875
10-0.040494-0.31370.62257
110.324482.51340.00733
12-0.239124-1.85220.965544
13-0.201676-1.56220.938247
140.194891.50960.068195
150.0184060.14260.443553
160.073760.57130.284951
17-0.160517-1.24340.890714
18-0.02957-0.2290.590194
190.1012890.78460.217894
200.0627740.48620.314283
21-0.096129-0.74460.770293
220.0341420.26450.396165
230.0383750.29730.38365
24-0.08115-0.62860.733998
25-0.093839-0.72690.764934
26-0.13625-1.05540.85226
27-0.077551-0.60070.72485
28-0.053385-0.41350.659648
29-0.099135-0.76790.77722
30-0.048275-0.37390.645116
31-0.024999-0.19360.576445
32-0.087963-0.68140.750868
330.1158960.89770.18646
34-0.024886-0.19280.576103
35-0.02271-0.17590.56952
36-0.007845-0.06080.524128
370.0948560.73480.232676
38-0.014842-0.1150.545573
39-0.081893-0.63430.735865
40-0.008947-0.06930.52751
41-0.022841-0.17690.56992
42-0.14496-1.12290.867014
43-0.122754-0.95080.827251
440.1443451.11810.133992
45-0.058878-0.45610.675006
46-0.032487-0.25160.598911
470.0381390.29540.384346
48-0.034914-0.27040.606127
490.0400010.30980.378876
50-0.02142-0.16590.565611
51-0.05874-0.4550.674623
52-0.037638-0.29150.61418
530.0029730.0230.490853
540.010240.07930.468521
550.0300470.23270.408377
560.0335460.25980.397936
57-0.031746-0.24590.596703
58-0.044989-0.34850.63565
59NANANA
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/28/t1196244924r9amj8x0ldkbft5/1u8ak1196245518.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/28/t1196244924r9amj8x0ldkbft5/1u8ak1196245518.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/28/t1196244924r9amj8x0ldkbft5/27lbk1196245518.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/28/t1196244924r9amj8x0ldkbft5/27lbk1196245518.ps (open in new window)


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