Home » date » 2010 » Aug » 19 »

Tijdreeks 1 - Stap 20

*Unverified author*
R Software Module: /rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Wed, 18 Aug 2010 22:15:33 +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/19/t1282169714jra5j7e70onh0qy.htm/, Retrieved Thu, 19 Aug 2010 00:15:15 +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/19/t1282169714jra5j7e70onh0qy.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:
Mathias Goossenaerts
 
Dataseries X:
» Textbox « » Textfile « » CSV «
36 35 34 32 52 51 36 26 27 27 28 30 28 29 25 28 55 53 42 32 37 41 37 38 39 32 36 39 83 83 66 53 72 77 69 72 81 71 63 66 114 116 109 97 111 120 110 106 115 110 103 112 163 166 156 140 166 176 163 162 171 167 163 168 222 216 197 178 204 220 196 195 213 218 216 225 280 272 252 230 248 259 240 237 252 250 255 255 313 291 271 247 268 283 259 259 267 270 279 269 334 326 301 276 301 313 291 287 289 298 320 312 385 380 351 322 350 363 344 345
 
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
10.9665610.58810
20.93412410.23280
30.9112219.98190
40.8965099.82080
50.8753629.58910
60.8477499.28660
70.8269599.05890
80.8022828.78860
90.7760458.50110
100.7544818.26490
110.7463598.1760
120.7407268.11430
130.7077757.75330
140.6747367.39140
150.6499367.11970
160.6336746.94160
170.6118816.70280
180.5831166.38770
190.5609386.14480
200.5355175.86630
210.5090465.57630
220.4864855.32920
230.4737385.18950
240.4625785.06731e-06
250.4290414.69994e-06
260.3946514.32321.6e-05
270.3680644.03194.9e-05
280.3503113.83751e-04
290.3292993.60730.000226
300.3013893.30150.000633
310.2785193.0510.001404
320.2514542.75450.003397
330.224822.46280.007603
340.202182.21480.014332
350.1871052.04960.02129
360.1724831.88950.030621
370.1410961.54560.062413
380.1081531.18480.119228
390.0817730.89580.186081
400.0629180.68920.246003
410.0423010.46340.321966
420.0151030.16540.434435
43-0.007619-0.08350.466812
44-0.032207-0.35280.362426
45-0.055804-0.61130.271079
46-0.07481-0.81950.207063
47-0.089132-0.97640.165417
48-0.102947-1.12770.130843


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.9665610.58810
2-0.001724-0.01890.492482
30.1284051.40660.081065
40.1186461.29970.098097
5-0.082527-0.9040.183892
6-0.080935-0.88660.188534
70.0819560.89780.18555
8-0.112947-1.23730.109201
9-0.030498-0.33410.369447
100.0801080.87750.190975
110.1729081.89410.030309
120.0550960.60350.273644
13-0.36173-3.96266.3e-05
14-0.002396-0.02620.489554
150.0184720.20230.419993
160.0141990.15550.43833
17-0.010266-0.11250.455324
18-0.051049-0.55920.288527
190.0374480.41020.341187
20-0.047134-0.51630.303287
21-0.006288-0.06890.472601
220.0534390.58540.27969
230.0002230.00240.499029
24-0.006605-0.07240.471221
25-0.183761-2.0130.023176
26-0.025119-0.27520.39183
270.0101330.1110.455898
280.0003420.00380.498507
290.0319480.350.363485
30-0.028155-0.30840.379149
31-0.001732-0.0190.492447
32-0.062472-0.68440.247537
33-0.008013-0.08780.465101
340.0313970.34390.365749
35-0.036154-0.3960.346386
36-0.029297-0.32090.37441
37-0.064033-0.70140.24219
38-0.040505-0.44370.329026
39-0.001898-0.02080.491724
40-0.022581-0.24740.402524
410.0163070.17860.429264
42-0.034966-0.3830.351185
43-0.004679-0.05130.479602
440.000560.00610.497557
45-0.019335-0.21180.416312
460.0269410.29510.384203
47-0.05136-0.56260.28737
48-0.025852-0.28320.388759
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Aug/19/t1282169714jra5j7e70onh0qy/1wo441282169729.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/19/t1282169714jra5j7e70onh0qy/1wo441282169729.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Aug/19/t1282169714jra5j7e70onh0qy/26flo1282169729.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/19/t1282169714jra5j7e70onh0qy/26flo1282169729.ps (open in new window)


 
Parameters (Session):
par1 = 48 ; par2 = 1 ; par3 = 0 ; par4 = 0 ; par5 = 12 ; par6 = White Noise ; par7 = 0.95 ;
 
Parameters (R input):
par1 = 48 ; par2 = 1 ; par3 = 0 ; 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