Home » date » 2010 » Aug » 19 »

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: Thu, 19 Aug 2010 12:34:11 +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/t12822212591jmcckva3c8werp.htm/, Retrieved Thu, 19 Aug 2010 14:35:46 +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/t12822212591jmcckva3c8werp.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:
Quaglia Laura
 
Dataseries X:
» Textbox « » Textfile « » CSV «
93 92 91 89 87 86 87 89 90 90 91 93 93 87 89 92 98 92 92 87 92 98 101 102 102 90 87 92 105 90 88 83 98 109 118 118 115 107 101 111 128 115 111 105 120 132 135 142 139 127 113 130 143 139 137 134 139 157 152 153 147 132 117 123 139 134 134 128 118 144 140 151 144 135 122 124 146 146 147 148 132 161 159 173
 
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.026339-0.240.405478
2-0.126925-1.15630.125429
3-0.35982-3.27810.000764
4-0.193166-1.75980.041061
50.1838291.67480.048872
60.1995371.81790.036346
70.1927661.75620.041373
8-0.10267-0.93540.176157
9-0.335578-3.05730.001503
10-0.174911-1.59350.057423
11-0.098495-0.89730.186068
120.7205186.56420
130.1234741.12490.131938
14-0.143674-1.30890.097085
15-0.280301-2.55370.006244
16-0.23518-2.14260.017537
170.0877090.79910.213265
180.152041.38510.08486
190.1439731.31170.096626
20-0.010354-0.09430.462539
21-0.226113-2.060.021266
22-0.205869-1.87560.032116
23-0.090691-0.82620.205521
240.419853.8250.000126
250.2185561.99110.024877
26-0.118976-1.08390.140769
27-0.162817-1.48330.070887
28-0.266079-2.42410.008759
290.0514240.46850.320331
300.1220021.11150.134783
310.1190771.08480.140567
320.0460980.420.337796
33-0.120315-1.09610.138098
34-0.161717-1.47330.072225
35-0.075662-0.68930.246274
360.227972.07690.020452
370.2301512.09680.019529
38-0.068408-0.62320.267424
39-0.031944-0.2910.385878
40-0.253219-2.30690.011775
410.0564350.51410.304258
420.0349530.31840.375476
430.1186051.08050.141516
440.0076910.07010.472154
45-0.03276-0.29850.383051
46-0.103962-0.94710.173159
47-0.046668-0.42520.335907
480.1050320.95690.170702


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.026339-0.240.405478
2-0.127707-1.16350.123986
3-0.373297-3.40090.000518
4-0.293674-2.67550.004494
50.0324670.29580.384064
60.0309660.28210.38928
70.1145211.04330.149911
80.0155520.14170.443837
9-0.215482-1.96310.02649
10-0.173307-1.57890.059081
11-0.30345-2.76460.003511
120.5797635.28191e-06
130.1532721.39640.083163
14-0.172537-1.57190.05989
150.0552370.50320.308065
160.072720.66250.25474
17-0.168383-1.5340.064411
18-0.176287-1.6060.056031
19-0.12684-1.15560.125587
20-0.04817-0.43890.330955
210.0598790.54550.293429
22-0.071795-0.65410.257433
230.0729190.66430.254163
24-0.125321-1.14170.128426
25-0.056111-0.51120.305286
26-0.040665-0.37050.355985
270.0287740.26210.39693
28-0.205689-1.87390.032231
290.0051880.04730.481208
300.0738830.67310.251375
31-0.017279-0.15740.43765
32-0.062749-0.57170.284547
330.0047930.04370.482637
340.0910920.82990.204492
35-0.022293-0.20310.419778
36-0.061516-0.56040.288346
37-0.009628-0.08770.465159
380.0141570.1290.448843
390.0784720.71490.238334
400.0033330.03040.487924
410.1075250.97960.165066
42-0.118769-1.0820.141185
430.0329820.30050.38228
44-0.09973-0.90860.183099
45-0.035441-0.32290.373796
46-0.049796-0.45370.325627
470.0624330.56880.285516
480.0299880.27320.392689
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Aug/19/t12822212591jmcckva3c8werp/13puj1282221248.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/19/t12822212591jmcckva3c8werp/13puj1282221248.ps (open in new window)


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