Home » date » 2010 » Aug » 20 »

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: Fri, 20 Aug 2010 08:20:56 +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/20/t1282292582x1n7xua4h607irv.htm/, Retrieved Fri, 20 Aug 2010 10:25:18 +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/20/t1282292582x1n7xua4h607irv.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:
Willem Van Tendeloo MAR 201 A
 
Dataseries X:
» Textbox « » Textfile « » CSV «
76 75 74 72 70 69 70 72 73 73 74 76 74 67 66 58 55 58 64 68 66 76 75 88 85 83 77 66 65 65 63 62 57 68 69 79 74 76 82 75 75 76 78 77 67 74 68 87 76 88 95 96 96 105 108 113 101 107 102 116 105 121 134 140 131 141 131 128 123 129 125 144 135 141 156 159 146 154 145 133 126 127 122 148
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time3 seconds
R Server'George Udny Yule' @ 72.249.76.132


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.9301587.89270
20.851037.22120
30.7434476.30840
40.6430235.45620
50.5425594.60389e-06
60.4693683.98278.1e-05
70.4013253.40540.000542
80.347612.94960.002145
90.3140912.66510.004747
100.2879212.44310.008508
110.2681562.27540.012931
120.2661632.25850.013474
130.2669132.26480.013267
140.2580452.18960.015898
150.2328681.97590.025996
160.185141.5710.060287
170.1266211.07440.143112
180.0758960.6440.260811
190.0282810.240.405516
20-0.020968-0.17790.429644
21-0.07108-0.60310.274156
22-0.131525-1.1160.13406
23-0.190062-1.61270.055589
24-0.23764-2.01640.023742
25-0.278831-2.3660.010339
26-0.297774-2.52670.006856
27-0.293237-2.48820.007577
28-0.266542-2.26170.013369
29-0.236345-2.00550.024337
30-0.204325-1.73380.043621
31-0.184977-1.56960.060449
32-0.17449-1.48060.071539
33-0.174669-1.48210.071336
34-0.192294-1.63170.053558
35-0.223401-1.89560.031012
36-0.253843-2.15390.017297
37-0.287159-2.43660.008649
38-0.320077-2.71590.004135
39-0.338575-2.87290.00267
40-0.339629-2.88190.002604
41-0.340758-2.89140.002534
42-0.321285-2.72620.00402
43-0.295947-2.51120.007139
44-0.257194-2.18240.016173
45-0.227564-1.93090.028714
46-0.20423-1.73290.043693
47-0.1887-1.60120.056859
48-0.183989-1.56120.061431


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.9301587.89270
2-0.105069-0.89150.187804
3-0.251928-2.13770.017969
40.0151650.12870.448986
5-0.026328-0.22340.411927
60.124251.05430.147635
7-0.033271-0.28230.389255
8-0.016533-0.14030.444411
90.1180541.00170.159917
10-0.014991-0.12720.449566
11-0.004942-0.04190.483332
120.1199381.01770.156113
130.0009070.00770.496941
14-0.093809-0.7960.214325
15-0.126188-1.07070.143932
16-0.144892-1.22940.111454
17-0.00256-0.02170.491365
180.0942150.79940.213331
19-0.026408-0.22410.411666
20-0.098074-0.83220.204029
21-0.102115-0.86650.194553
22-0.161624-1.37140.087251
23-0.017131-0.14540.442415
240.0508120.43120.333822
25-0.05516-0.4680.320583
260.0780390.66220.254983
270.0639520.54270.294522
280.0731160.62040.268475
290.0285520.24230.40463
30-0.020376-0.17290.43161
31-0.058178-0.49370.311524
32-0.04711-0.39970.345265
33-0.08667-0.73540.232236
34-0.116553-0.9890.162991
35-0.012877-0.10930.456649
360.0819860.69570.244436
370.004350.03690.485329
38-0.06144-0.52130.301867
390.002690.02280.490927
400.0505930.42930.334496
41-0.137214-1.16430.124073
42-0.008578-0.07280.47109
430.0115260.09780.461181
440.1089950.92490.179066
45-0.05728-0.4860.314209
46-0.129993-1.1030.136844
470.0280410.23790.406304
48-0.050242-0.42630.335575
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Aug/20/t1282292582x1n7xua4h607irv/1gkzm1282292452.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/20/t1282292582x1n7xua4h607irv/1gkzm1282292452.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Aug/20/t1282292582x1n7xua4h607irv/2gkzm1282292452.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/20/t1282292582x1n7xua4h607irv/2gkzm1282292452.ps (open in new window)


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