Home » date » 2007 » Dec » 04 » attachments

Totaal invoer

R Software Module: rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Tue, 04 Dec 2007 14:01:21 -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/Dec/04/t119680142478bmjsb1wnwpf62.htm/, Retrieved Tue, 04 Dec 2007 21:50:24 +0100
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
9884.9 10174.5 11395.4 10760.2 10570.1 10536 9902.6 8889 10837.3 11624.1 10509 10984.9 10649.1 10855.7 11677.4 10760.2 10046.2 10772.8 9987.7 8638.7 11063.7 11855.7 10684.5 11337.4 10478 11123.9 12909.3 11339.9 10462.2 12733.5 10519.2 10414.9 12476.8 12384.6 12266.7 12919.9 11497.3 12142 13919.4 12656.8 12034.1 13199.7 10881.3 11301.2 13643.9 12517 13981.1 14275.7 13435 13565.7 16216.3 12970 14079.9 14235 12213.4 12581 14130.4 14210.8 14378.5 13142.8 13714.7 13621.9 15379.8 14441.8 15354.8 15537.8 14552.7
 
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 time4 seconds
R Server'Herman Ole Andreas Wold' @ 193.190.124.10:1001


Autocorrelation Function
Time lag kACF(k)T-STATP-value
017.41620
10.3174272.35410.011083
20.3626622.68960.004726
30.4035452.99280.002067
40.0592310.43930.331093
50.0376520.27920.390555
60.1037250.76920.222519
7-0.16338-1.21170.884588
80.0721150.53480.297466
90.0439330.32580.372899
10-0.156215-1.15850.874172
11-0.0321-0.23810.59364
12-0.145959-1.08250.858115
13-0.118224-0.87680.807788
140.0345880.25650.399258
15-0.052749-0.39120.651419
16-0.03615-0.26810.605186
170.1662831.23320.111375
180.0953640.70720.241203
19-0.025815-0.19150.575561
20-0.004206-0.03120.512385
21-0.019764-0.14660.557999
22-0.13844-1.02670.845471
23-0.020648-0.15310.560573
24-0.167246-1.24030.889941
25-0.154838-1.14830.872095
260.0039380.02920.488403
27-0.172026-1.27580.896303
28-0.156391-1.15980.874435
29-0.081667-0.60570.726383
30-0.245501-1.82070.962952
31-0.118293-0.87730.807925
32-0.085363-0.63310.735343
33-0.224549-1.66530.94923
34-0.021975-0.1630.564431
350.030090.22320.412122
36-0.0698-0.51770.696611
370.0943210.69950.243594
380.0102930.07630.469715
390.0114360.08480.466359
400.092970.68950.24671
410.0149980.11120.455919
420.0261290.19380.423533
430.1072580.79540.214887
440.0575470.42680.335603
450.0411230.3050.380768
460.0397170.29450.384724
47-0.036554-0.27110.606333


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
00.3174272.35410.011083
10.2912482.160.017576
20.2788762.06820.021668
3-0.22422-1.66290.948985
4-0.179119-1.32840.905231
50.0811350.60170.274919
6-0.121676-0.90240.814603
70.1901361.41010.082072
80.0640410.47490.318356
9-0.193542-1.43530.921575
10-0.152535-1.13120.868566
11-0.146048-1.08310.858259
120.1953991.44910.076492
130.2410721.78780.039656
140.0462780.34320.366376
15-0.20374-1.5110.931741
16-0.056136-0.41630.6606
170.194811.44480.077101
18-0.070181-0.52050.697591
19-0.178278-1.32210.904204
200.0135440.10040.460179
21-0.114065-0.84590.799371
220.0834130.61860.269365
23-0.090667-0.67240.747929
24-0.05881-0.43610.667781
250.0844090.6260.266955
26-0.15857-1.1760.877667
27-0.019981-0.14820.558629
280.0031550.02340.490709
29-0.073919-0.54820.707113
30-0.092916-0.68910.753165
31-0.101484-0.75260.772559
320.1088080.80690.211589
330.0333330.24720.402836
340.010050.07450.470427
35-0.044811-0.33230.629547
360.0302290.22420.411723
370.0458190.33980.367651
38-0.042233-0.31320.622346
39-0.039018-0.28940.613305
400.0817350.60620.273451
410.054780.40630.343066
42-0.029884-0.22160.587287
43-0.052589-0.390.650982
44-0.010874-0.08060.531992
45-0.031755-0.23550.592652
46-0.042199-0.3130.622252
470.0205450.15240.439727
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/04/t119680142478bmjsb1wnwpf62/1r8pg1196802075.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/04/t119680142478bmjsb1wnwpf62/1r8pg1196802075.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/04/t119680142478bmjsb1wnwpf62/2ugiz1196802075.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/04/t119680142478bmjsb1wnwpf62/2ugiz1196802075.ps (open in new window)


 
Parameters:
par1 = 48 ; par2 = 1 ; par3 = 0 ; par4 = 1 ; 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