Home » date » 2007 » Nov » 30 » attachments

R Software Module: rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Fri, 30 Nov 2007 07:06:24 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2007/Nov/30/t1196430967xbqtgmnb8onxv6x.htm/, Retrieved Fri, 30 Nov 2007 14:56:09 +0100
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
103,1 103,1 103,3 103,5 103,3 103,5 103,8 103,9 103,9 104,2 104,6 104,9 105,2 105,2 105,6 105,6 106,2 106,3 106,4 106,9 107,2 107,3 107,3 107,4 107,55 107,87 108,37 108,38 107,92 108,03 108,14 108,3 108,64 108,66 109,04 109,03 109,03 109,54 109,75 109,83 109,65 109,82 109,95 110,12 110,15 110,2 109,99 110,14 110,14 110,81 110,97 110,99 109,73 109,81 110,02 110,18 110,21 110,25 110,36 110,51 110,64 110,95 111,18 111,19 111,69 111,7 111,83 111,77 111,73 112,01 111,86 112,04
 
Text written by user:
 
Output produced by software:


Summary of compuational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time1 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Autocorrelation Function
Time lag kACF(k)T-STATP-value
018.42610
10.0045840.03860.484649
2-0.07428-0.62590.733305
3-0.234657-1.97730.974052
40.0340980.28730.387354
50.118010.99440.16171
60.1182320.99620.161258
70.0722880.60910.272197
8-0.01003-0.08450.533556
9-0.188507-1.58840.941679
10-0.014245-0.120.547602
110.0657350.55390.290697
120.023580.19870.421537
130.071380.60150.274724
14-0.101961-0.85910.803422
15-0.002801-0.02360.509381
160.0442840.37310.355076
170.0372110.31350.377391
180.0362470.30540.380469
19-0.061564-0.51870.697224
20-0.043958-0.37040.643904
21-0.112908-0.95140.82768
22-0.022542-0.18990.57505
230.1007410.84890.199406
240.220491.85790.033666
250.0275730.23230.408475
26-0.166996-1.40710.918124
27-0.010716-0.09030.535845
28-0.001696-0.01430.50568
290.0088140.07430.470502
300.0323510.27260.392978
31-0.014222-0.11980.547525
32-0.035491-0.29910.617113
33-0.141679-1.19380.881737
34-0.051786-0.43640.668049
350.0712180.60010.275176
36-0.219669-1.8510.965833
370.0312350.26320.396583
38-0.039529-0.33310.62997
390.0901090.75930.225102
40-0.016202-0.13650.554102
41-0.099154-0.83550.796877
42-0.055897-0.4710.680456
43-0.022637-0.19070.575363
440.0437080.36830.356877
450.0228860.19280.423817
46-0.056404-0.47530.681971
47-0.024725-0.20830.58222


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
00.0045840.03860.484649
1-0.074303-0.62610.733367
2-0.235254-1.98230.974341
30.0285250.24040.405374
40.0894430.75370.226772
50.0741540.62480.267041
60.1095840.92340.17947
70.0547320.46120.323041
8-0.154898-1.30520.901979
90.0011670.00980.496091
100.0302650.2550.399722
11-0.086938-0.73260.766879
120.0800140.67420.251183
13-0.061854-0.52120.698072
140.009650.08130.467712
150.1059680.89290.187462
160.0049270.04150.483502
170.0093230.07860.468804
18-0.024331-0.2050.580926
19-0.042271-0.35620.638621
20-0.149944-1.26350.89472
21-0.043324-0.36510.641922
220.0418740.35280.362628
230.2038021.71730.045145
240.121141.02070.155421
25-0.091295-0.76930.777857
260.1306591.1010.137317
27-0.043886-0.36980.643681
28-0.163247-1.37550.913356
29-0.023133-0.19490.576995
30-0.102012-0.85960.803541
31-0.054645-0.46040.676697
32-0.048491-0.40860.657966
33-0.025463-0.21460.584634
340.0450660.37970.35264
35-0.254639-2.14560.982338
360.0340470.28690.387517
37-0.035297-0.29740.616493
380.0224630.18930.425209
39-0.041928-0.35330.637543
40-0.090543-0.76290.775985
41-0.017614-0.14840.558783
42-0.039508-0.33290.629904
430.1091680.91990.180379
44-0.036694-0.30920.620958
450.0026230.02210.491215
46-0.014142-0.11920.547258
470.0692150.58320.280798
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/30/t1196430967xbqtgmnb8onxv6x/18soy1196431582.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/30/t1196430967xbqtgmnb8onxv6x/18soy1196431582.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/30/t1196430967xbqtgmnb8onxv6x/2swv41196431582.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/30/t1196430967xbqtgmnb8onxv6x/2swv41196431582.ps (open in new window)


 
Parameters:
par1 = 48 ; par2 = 2.0 ; par3 = 1 ; par4 = 0 ; par5 = 12 ;
 
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 (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='lags',ylab='ACF')
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 1:par1) {
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(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-1,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(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:

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