Home » date » 2011 » Mar » 31 »

Badge4u

*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, 31 Mar 2011 11:12:04 +0000
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2011/Mar/31/t1301569717q682iqxa73d3c2k.htm/, Retrieved Thu, 31 Mar 2011 13:08:38 +0200
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
25525 26197 26555 57364 62022 34392 37258 76262 50423 32959 38601 31705 40754 41827 43983 91590 99026 54911 59487 121762 80508 52623 61632 50621 70206 68382 73039 157780 170589 94594 102477 209757 138689 90652 106172 87204 110160 112200 113832 245616 265608 147288 159528 326400 215832 141168 165240 135864
 
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.7702525.33651e-06
20.5779274.0040.000108
30.6139114.25334.8e-05
40.572093.96360.000122
50.4344763.01010.002077
60.3487752.41640.009764
70.3338852.31320.01252
80.3859452.67390.005109
90.3654172.53170.00734
100.2544561.76290.04214
110.3190632.21050.015934
120.4044022.80180.003653
130.2261671.56690.061851
140.073790.51120.305766
150.0964220.6680.253656
160.0674350.46720.321234
17-0.037697-0.26120.397539
18-0.107589-0.74540.229833
19-0.123361-0.85470.19849
20-0.086782-0.60120.275253
21-0.104519-0.72410.236251
22-0.18393-1.27430.104345
23-0.140267-0.97180.168012
24-0.0875-0.60620.273613
25-0.195018-1.35110.091496
26-0.290194-2.01050.025006
27-0.2653-1.83810.036124
28-0.261459-1.81140.038166
29-0.312894-2.16780.017582
30-0.343156-2.37750.010732
31-0.340919-2.3620.011141
32-0.3004-2.08120.021385
33-0.293328-2.03220.023842
34-0.320805-2.22260.015494
35-0.281657-1.95140.028431
36-0.241937-1.67620.050102
37-0.275332-1.90760.031221
38-0.303622-2.10360.020341
39-0.269429-1.86670.034032
40-0.227463-1.57590.060808
41-0.222484-1.54140.064892
42-0.21093-1.46140.075215
43-0.183589-1.27190.104761
44-0.134677-0.93310.177727
45-0.099555-0.68970.24684
46-0.069257-0.47980.316764
47-0.029362-0.20340.419831
48NANANA


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.7702525.33651e-06
2-0.037771-0.26170.397342
30.445773.08840.001671
4-0.136961-0.94890.173714
5-0.028302-0.19610.422688
6-0.098001-0.6790.250209
70.0563320.39030.349028
80.2672961.85190.035099
9-0.052661-0.36480.358413
10-0.107902-0.74760.229183
110.2767891.91760.030558
12-0.070122-0.48580.314653
13-0.35817-2.48150.008319
14-0.076556-0.53040.299142
15-0.050667-0.3510.363549
16-0.020869-0.14460.442822
17-0.014606-0.10120.45991
18-0.016617-0.11510.454414
19-0.04554-0.31550.376871
20-0.047915-0.3320.37068
21-0.006045-0.04190.483382
220.0094610.06550.474005
230.0054790.0380.48494
24-0.058905-0.40810.342506
25-0.01491-0.10330.459077
26-0.085923-0.59530.277222
27-0.032723-0.22670.410804
280.0105560.07310.471001
29-0.0088-0.0610.475819
300.0147750.10240.459446
31-0.071163-0.4930.31212
32-0.027404-0.18990.425109
33-0.011641-0.08070.468028
340.0154250.10690.457671
35-0.020752-0.14380.44314
36-0.044325-0.30710.380049
370.0570480.39520.347207
38-0.032251-0.22340.412069
39-0.008944-0.0620.475423
400.0693590.48050.316517
41-0.019438-0.13470.446718
420.0593170.4110.341464
43-0.04175-0.28930.386817
440.0187640.130.448555
450.0255450.1770.430133
460.069380.48070.316464
47-0.001708-0.01180.495305
48NANANA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2011/Mar/31/t1301569717q682iqxa73d3c2k/1s8ev1301569920.png (open in new window)
http://www.freestatistics.org/blog/date/2011/Mar/31/t1301569717q682iqxa73d3c2k/1s8ev1301569920.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/Mar/31/t1301569717q682iqxa73d3c2k/203w01301569920.png (open in new window)
http://www.freestatistics.org/blog/date/2011/Mar/31/t1301569717q682iqxa73d3c2k/203w01301569920.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/Mar/31/t1301569717q682iqxa73d3c2k/39x031301569920.png (open in new window)
http://www.freestatistics.org/blog/date/2011/Mar/31/t1301569717q682iqxa73d3c2k/39x031301569920.ps (open in new window)


 
Parameters (Session):
par1 = 12 ; par2 = 0.0 ; par3 = 1 ; par4 = 1 ; par5 = 12 ; par6 = 0 ; par7 = 1 ; par8 = 1 ; par9 = 0 ; par10 = FALSE ;
 
Parameters (R input):
par1 = 48 ; par2 = 0.0 ; par3 = 0 ; par4 = 0 ; par5 = 12 ; par6 = MA ; par7 = 0.95 ; par9 = 0 ; par10 = FALSE ;
 
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 (par8 != '') par8 <- as.numeric(par8)
ox <- x
if (par8 == '') {
if (par2 == 0) {
x <- log(x)
} else {
x <- (x ^ par2 - 1) / par2
}
} else {
x <- log(x,base=par8)
}
if (par3 > 0) x <- diff(x,lag=1,difference=par3)
if (par4 > 0) x <- diff(x,lag=par5,difference=par4)
bitmap(file='picts.png')
op <- par(mfrow=c(2,1))
plot(ox,type='l',main='Original Time Series',xlab='time',ylab='value')
if (par8=='') {
mytitle <- paste('Working Time Series (lambda=',par2,', d=',par3,', D=',par4,')',sep='')
mysub <- paste('(lambda=',par2,', d=',par3,', D=',par4,', CI=', par7, ', CI type=',par6,')',sep='')
} else {
mytitle <- paste('Working Time Series (base=',par8,', d=',par3,', D=',par4,')',sep='')
mysub <- paste('(base=',par8,', d=',par3,', D=',par4,', CI=', par7, ', CI type=',par6,')',sep='')
}
plot(x,type='l', main=mytitle,xlab='time',ylab='value')
par(op)
dev.off()
bitmap(file='pic1.png')
racf <- acf(x, par1, main='Autocorrelation', xlab='time lag', ylab='ACF', ci.type=par6, ci=par7, sub=mysub)
dev.off()
bitmap(file='pic2.png')
rpacf <- pacf(x,par1,main='Partial Autocorrelation',xlab='lags',ylab='PACF',sub=mysub)
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