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: Thu, 19 Aug 2010 18:53:13 +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/t1282244012c00bkmbm2wu58tb.htm/, Retrieved Thu, 19 Aug 2010 20:53:32 +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/t1282244012c00bkmbm2wu58tb.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:
Aerts Ellen
 
Dataseries X:
» Textbox « » Textfile « » CSV «
25 24 23 21 41 40 25 15 16 16 17 19 18 19 20 21 46 47 30 16 15 18 30 31 32 36 30 31 61 57 45 33 31 36 46 49 34 40 41 48 75 77 71 54 50 56 66 66 48 63 71 70 88 92 91 80 81 81 98 106 85 93 96 92 115 109 119 107 107 106 132 143 120 123 132 136 158 151 155 138 143 139 168 182 154 158 167 170 197 190 196 174 180 171 200 215 184 186 197 186 211 205 218 199 213 207 236 248 211 220 235 223 245 236 253 246 255 248 274 288
 
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'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.95760110.490
20.92354110.11690
30.899369.8520
40.8780169.61820
50.8648889.47440
60.8452079.25880
70.8207718.99110
80.7889848.64290
90.7666958.39870
100.7448378.15930
110.7304858.00210
120.7239097.930
130.68267.47750
140.647787.09610
150.6230646.82530
160.6021346.5960
170.5908556.47250
180.5703336.24770
190.5439655.95880
200.510685.59420
210.4881175.34710
220.4656555.1011e-06
230.4502854.93261e-06
240.4406124.82672e-06
250.4029464.41411.1e-05
260.3709544.06364.3e-05
270.3476853.80870.000111
280.3271243.58350.000246
290.3147353.44770.00039
300.2926653.2060.000863
310.26422.89420.002259
320.2285932.50410.006809
330.2045072.24030.013457
340.1827532.0020.023772
350.1663271.8220.035471
360.1555511.7040.045486
370.1199561.31410.095667
380.0887450.97220.166466
390.0663160.72650.234486
400.0483290.52940.298745
410.0376750.41270.340279
420.0203970.22340.411789
43-0.002738-0.030.488062
44-0.03309-0.36250.358813
45-0.053155-0.58230.280733
46-0.071585-0.78420.217242
47-0.08526-0.9340.176096
48-0.094447-1.03460.151465


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.95760110.490
20.0788080.86330.194847
30.1116021.22250.11195
40.0471120.51610.303371
50.1149741.25950.105152
6-0.051025-0.5590.288617
7-0.051959-0.56920.285147
8-0.122169-1.33830.091666
90.0710510.77830.218955
10-0.030172-0.33050.370791
110.0944371.03450.151491
120.1061791.16310.123543
13-0.366168-4.01125.3e-05
140.0153810.16850.433242
150.0567940.62220.267511
160.0250390.27430.392168
170.0800240.87660.191222
18-0.072059-0.78940.215728
19-0.043683-0.47850.316576
20-0.059931-0.65650.256375
210.0315750.34590.365015
22-0.024937-0.27320.392594
230.0457530.50120.308574
240.0147950.16210.435762
25-0.159541-1.74770.041539
260.0020270.02220.491159
270.0213810.23420.407608
28-0.011187-0.12250.451337
290.0215150.23570.407039
30-0.062763-0.68750.246537
31-0.041654-0.45630.3245
32-0.066138-0.72450.235083
330.0142980.15660.437902
340.0045550.04990.480144
350.0112110.12280.45123
360.0170820.18710.425939
37-0.101388-1.11070.134469
38-0.021443-0.23490.407344
390.0172650.18910.425157
400.0097850.10720.457407
410.0095970.10510.458225
42-0.002768-0.03030.48793
43-0.022147-0.24260.40436
44-0.051474-0.56390.286949
45-0.013522-0.14810.441246
46-0.02901-0.31780.375599
470.0065180.07140.471598
48-0.005428-0.05950.476344
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Aug/19/t1282244012c00bkmbm2wu58tb/16ifb1282243990.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/19/t1282244012c00bkmbm2wu58tb/16ifb1282243990.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Aug/19/t1282244012c00bkmbm2wu58tb/26ifb1282243990.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/19/t1282244012c00bkmbm2wu58tb/26ifb1282243990.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