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:08:49 +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/t1301569624dl86ke5rzpp2f3x.htm/, Retrieved Thu, 31 Mar 2011 13:07:06 +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 time1 seconds
R Server'Herman Ole Andreas Wold' @ www.yougetit.org


Autocorrelation Function
Time lag kACF(k)T-STATP-value
1-0.458868-2.71470.005115
20.1517560.89780.187714
30.1102680.65240.259216
4-0.000928-0.00550.497825
5-0.000486-0.00290.498861
6-0.000895-0.00530.497902
7-0.000493-0.00290.498844
80.0011070.00650.497406
9-0.243966-1.44330.078911
100.1913881.13230.13261
110.0415550.24580.40362
12-0.423003-2.50250.008576
130.2850781.68650.050293
14-0.14641-0.86620.196148
15-0.004211-0.02490.490133
16-0.000609-0.00360.498574
170.0001529e-040.499643
180.0007980.00470.49813
19-0.002153-0.01270.494955
20-0.000239-0.00140.499439
210.1333620.7890.217718
22-0.199362-1.17940.123089
230.1375410.81370.210658
24-0.07055-0.41740.339476
25-0.003107-0.01840.492719
260.0003910.00230.499085
270.0005190.00310.498784
280.0004180.00250.49902
29-0.000573-0.00340.498658
30-0.000676-0.0040.498417
310.0018480.01090.495669
32-0.002228-0.01320.494779
330.0025280.0150.494076
344.7e-053e-040.499889
35NANANA
36NANANA
37NANANA
38NANANA
39NANANA
40NANANA
41NANANA
42NANANA
43NANANA
44NANANA
45NANANA
46NANANA
47NANANA
48NANANA


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.458868-2.71470.005115
2-0.074489-0.44070.331077
30.1922281.13720.131582
40.181191.07190.145542
50.0519840.30750.380126
6-0.054176-0.32050.375244
7-0.071605-0.42360.337216
8-0.028302-0.16740.433995
9-0.322066-1.90540.032487
10-0.073218-0.43320.333777
110.2859411.69160.0498
12-0.300392-1.77710.042118
13-0.145123-0.85860.198212
14-0.01818-0.10760.457482
150.0556020.32890.37208
160.036970.21870.41407
17-0.027516-0.16280.435811
18-0.055548-0.32860.372199
190.0829420.49070.313353
20-0.012784-0.07560.470071
21-0.1263-0.74720.229967
22-0.074454-0.44050.331151
230.1188330.7030.243344
24-0.24716-1.46220.076301
25-0.11408-0.67490.252085
260.0095420.05650.477652
270.0820410.48540.315222
280.0727050.43010.33487
29-0.03985-0.23580.407498
30-0.035109-0.20770.41833
310.0012930.00770.49697
32-0.033405-0.19760.422239
33-0.073711-0.43610.332728
34-0.059461-0.35180.363557
35NANANA
36NANANA
37NANANA
38NANANA
39NANANA
40NANANA
41NANANA
42NANANA
43NANANA
44NANANA
45NANANA
46NANANA
47NANANA
48NANANA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2011/Mar/31/t1301569624dl86ke5rzpp2f3x/1fggv1301569728.png (open in new window)
http://www.freestatistics.org/blog/date/2011/Mar/31/t1301569624dl86ke5rzpp2f3x/1fggv1301569728.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/Mar/31/t1301569624dl86ke5rzpp2f3x/2vo651301569728.png (open in new window)
http://www.freestatistics.org/blog/date/2011/Mar/31/t1301569624dl86ke5rzpp2f3x/2vo651301569728.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/Mar/31/t1301569624dl86ke5rzpp2f3x/30b711301569728.png (open in new window)
http://www.freestatistics.org/blog/date/2011/Mar/31/t1301569624dl86ke5rzpp2f3x/30b711301569728.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 = 1 ; par4 = 1 ; 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