Home » date » 2010 » Aug » 15 »

tijdreeks B - stap 18

*Unverified author*
R Software Module: /rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Sun, 15 Aug 2010 12:49:35 +0000
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2010/Aug/15/t1281876951l2zxa54uz7o1whg.htm/, Retrieved Sun, 15 Aug 2010 14:55:52 +0200
 
BibTeX entries for LaTeX users:
@Manual{KEY,
    author = {{YOUR NAME}},
    publisher = {Office for Research Development and Education},
    title = {Statistical Computations at FreeStatistics.org, URL http://www.freestatistics.org/blog/date/2010/Aug/15/t1281876951l2zxa54uz7o1whg.htm/},
    year = {2010},
}
@Manual{R,
    title = {R: A Language and Environment for Statistical Computing},
    author = {{R Development Core Team}},
    organization = {R Foundation for Statistical Computing},
    address = {Vienna, Austria},
    year = {2010},
    note = {{ISBN} 3-900051-07-0},
    url = {http://www.R-project.org},
}
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
Vanhille Olivier
 
Dataseries X:
» Textbox « » Textfile « » CSV «
31 30 29 27 25 24 25 27 28 28 29 31 31 27 25 16 20 21 25 24 28 27 23 36 37 30 27 22 22 25 33 35 35 29 25 34 31 29 21 19 18 25 23 22 20 15 17 25 26 26 23 24 24 42 40 45 47 40 39 49 55 54 48 44 48 62 57 60 56 57 54 62 65 68 69 67 72 82 72 77 79 78 76 79
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time2 seconds
R Server'RServer@AstonUniversity' @ vre.aston.ac.uk


Autocorrelation Function
Time lag kACF(k)T-STATP-value
1-0.055891-0.50920.305986
2-0.131441-1.19750.117263
3-0.231367-2.10790.01903
4-0.091486-0.83350.203485
50.0408980.37260.355198
60.3732983.40090.000518
70.0657830.59930.275297
8-0.165005-1.50330.068283
9-0.164762-1.5010.068569
10-0.158633-1.44520.076081
110.0423750.38610.350222
120.6189825.63920
13-0.079801-0.7270.23463
14-0.092814-0.84560.200111
15-0.305485-2.78310.003332
16-0.060932-0.55510.290155
17-0.0098-0.08930.464535
180.3410613.10720.001293
19-0.041216-0.37550.354125
20-0.109424-0.99690.160855
21-0.032103-0.29250.385327
22-0.215695-1.96510.026375
230.1530991.39480.083399
240.3900283.55330.000315
25-0.015565-0.14180.443789
26-0.122459-1.11570.133895
27-0.206232-1.87890.031886
28-0.087306-0.79540.214325
290.0476170.43380.332775
300.3401913.09930.001324
31-0.125228-1.14090.128601
32-0.055606-0.50660.306892
33-0.041375-0.37690.353588
34-0.135715-1.23640.109894
350.0945980.86180.195634
360.1827851.66520.049817
370.0342050.31160.378054
38-0.177436-1.61650.054888
39-0.100668-0.91710.180866
40-0.111216-1.01320.156948
410.0781190.71170.239323
420.1824821.66250.050093
43-0.08941-0.81460.208826
44-0.007713-0.07030.472075
45-0.038963-0.3550.361756
46-0.068503-0.62410.26714
470.0290650.26480.395912
480.0665890.60670.272868


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.055891-0.50920.305986
2-0.134986-1.22980.111126
3-0.252628-2.30150.011934
4-0.161551-1.47180.072428
5-0.063483-0.57840.282294
60.3051072.77970.003365
70.112711.02680.153739
8-0.069821-0.63610.263232
9-0.039476-0.35960.360012
10-0.148465-1.35260.089931
11-0.079481-0.72410.235517
120.533214.85783e-06
13-0.068847-0.62720.266117
140.0588680.53630.296587
15-0.161913-1.47510.071984
16-0.048145-0.43860.331038
17-0.099528-0.90670.183583
18-0.049499-0.4510.326597
19-0.140943-1.28410.101348
200.0328630.29940.382694
210.2307842.10250.019268
22-0.088181-0.80340.212027
230.1601931.45940.074111
240.0346250.31550.376605
250.0770350.70180.242377
26-0.02772-0.25250.400625
27-0.012034-0.10960.45648
28-0.097878-0.89170.187564
290.081270.74040.230572
300.0399420.36390.358434
31-0.088132-0.80290.212157
32-0.017962-0.16360.435207
33-0.02672-0.24340.404137
340.075390.68680.247051
35-0.145226-1.32310.094723
36-0.14197-1.29340.099729
370.0168890.15390.439044
38-0.002958-0.0270.489282
390.0319560.29110.385837
400.048010.43740.331481
41-0.048823-0.44480.328812
42-0.072083-0.65670.256593
430.0790140.71980.23682
44-0.064527-0.58790.279108
450.0338620.30850.379239
46-0.024609-0.22420.411575
47-0.015956-0.14540.442388
48-0.091946-0.83770.202312
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Aug/15/t1281876951l2zxa54uz7o1whg/1x24r1281876572.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/15/t1281876951l2zxa54uz7o1whg/1x24r1281876572.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Aug/15/t1281876951l2zxa54uz7o1whg/2x24r1281876572.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/15/t1281876951l2zxa54uz7o1whg/2x24r1281876572.ps (open in new window)


 
Parameters (Session):
par1 = 48 ; par2 = 1 ; par3 = 1 ; par4 = 0 ; par5 = 12 ; par6 = White Noise ; par7 = 0.95 ;
 
Parameters (R input):
par1 = 48 ; par2 = 1 ; par3 = 1 ; par4 = 0 ; par5 = 12 ; par6 = White Noise ; par7 = 0.95 ;
 
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 (par6 == 'White Noise') par6 <- 'white' else par6 <- 'ma'
par7 <- as.numeric(par7)
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='time lag', ylab='ACF', ci.type=par6, ci=par7, sub=paste('(lambda=',par2,', d=',par3,', D=',par4,', CI=', par7, ', CI type=',par6,')',sep=''))
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 2:(par1+1)) {
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(abs(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,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(abs(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:

  • personalize online software applications according to your needs
  • enforce strict security rules with respect to the data that you upload (e.g. statistical data)
  • manage user sessions of online applications
  • alert you about important changes or upgrades in resources or applications

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