Home » date » 2009 » Nov » 27 »

ws8 module3

*The author of this computation has been verified*
R Software Module: /rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Fri, 27 Nov 2009 03:02:23 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2009/Nov/27/t1259316197j15awg311dg26yo.htm/, Retrieved Fri, 27 Nov 2009 11:03:20 +0100
 
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/2009/Nov/27/t1259316197j15awg311dg26yo.htm/},
    year = {2009},
}
@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 = {2009},
    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:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
29571 30167 30524 30996 31033 31198 30937 31649 33115 34106 33926 33382 32851 32948 36112 36113 35210 35193 34383 35349 37058 38076 36630 36045 35638 35114 35465 35254 35299 35916 36683 37288 38536 38977 36407 34955 34951 32680 34791 34178 35213 34871 35299 35443 37108 36419 34471 33868 34385 33643 34627 32919 35500 36110 37086 37711 40427 39884 38512 38767
 
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'Gwilym Jenkins' @ 72.249.127.135


Autocorrelation Function
Time lag kACF(k)T-STATP-value
1-0.019582-0.13420.446891
20.0010040.00690.497268
3-0.083324-0.57120.285279
4-0.044485-0.3050.380867
5-0.032223-0.22090.41306
60.1031230.7070.241536
7-0.062495-0.42840.335142
80.1120260.7680.22316
90.1633581.11990.134218
100.1655541.1350.131069
110.0741220.50820.306862
12-0.313359-2.14830.018438
13-0.067883-0.46540.321904
14-0.023786-0.16310.435582
15-0.014943-0.10240.459421
160.1312920.90010.18633
170.0133630.09160.463698
18-0.016112-0.11050.456259
190.1336950.91660.182025
20-0.111763-0.76620.223692
21-0.12664-0.86820.194848
22-0.113979-0.78140.219242
23-0.169564-1.16250.125456
240.1623821.11320.135635
250.0267630.18350.427606
260.0070730.04850.480765
27-0.140808-0.96530.169659
280.0126570.08680.465611
290.0178960.12270.451438
30-0.066891-0.45860.324324
31-0.156063-1.06990.145061
32-0.013413-0.0920.463563
33-0.034579-0.23710.406818
34-0.017818-0.12220.451649
350.0990010.67870.250323
36-0.121286-0.83150.204948
37-0.110868-0.76010.225503
380.0675230.46290.322781
390.0216450.14840.441334
40-0.009108-0.06240.475237
41-0.005287-0.03620.48562
420.037530.25730.399038
43-0.027029-0.18530.426896
440.0211760.14520.442597
450.0411750.28230.389483
46-0.00907-0.06220.475342
47NANANA
48NANANA


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.019582-0.13420.446891
20.0006210.00430.498311
3-0.083324-0.57120.285279
4-0.048094-0.32970.37154
5-0.034547-0.23680.406904
60.0955150.65480.257888
7-0.067078-0.45990.323866
80.1047170.71790.238186
90.1852851.27020.105124
100.183751.25970.106994
110.1197520.8210.207901
12-0.304165-2.08520.021252
13-0.045196-0.30980.379023
14-0.025236-0.1730.431694
15-0.0809-0.55460.290891
160.088830.6090.272732
17-0.045034-0.30870.379444
18-0.003006-0.02060.491822
190.0627650.43030.334473
20-0.122455-0.83950.202717
21-0.048516-0.33260.370454
22-0.036365-0.24930.402107
23-0.113133-0.77560.220936
240.0928930.63680.263658
25-0.063308-0.4340.333132
26-0.018004-0.12340.451147
27-0.219554-1.50520.069484
280.0600950.4120.341111
290.1196450.82020.208109
30-0.108314-0.74260.23072
310.0266110.18240.428013
32-0.049519-0.33950.367879
33-0.044377-0.30420.381146
34-0.121272-0.83140.204977
35-0.058742-0.40270.344492
360.0388030.2660.395693
37-0.107919-0.73990.231533
380.0960990.65880.256612
390.0112010.07680.469558
40-0.000324-0.00220.499118
410.092680.63540.264131
420.0414410.28410.388788
43-0.031138-0.21350.41594
440.0010040.00690.497269
450.0186480.12780.44941
460.0284770.19520.423027
47NANANA
48NANANA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Nov/27/t1259316197j15awg311dg26yo/15pok1259316138.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/27/t1259316197j15awg311dg26yo/15pok1259316138.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/27/t1259316197j15awg311dg26yo/295191259316138.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/27/t1259316197j15awg311dg26yo/295191259316138.ps (open in new window)


 
Parameters (Session):
par1 = 48 ; par2 = 1 ; par3 = 1 ; par4 = 1 ; par5 = 12 ; par6 = White Noise ; par7 = 0.95 ;
 
Parameters (R input):
par1 = 48 ; par2 = 1 ; par3 = 1 ; 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