Home » date » 2007 » Dec » 16 » attachments

Paper

R Software Module: rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Sun, 16 Dec 2007 13:35:05 -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/16/t1197836307wsuhjt1cvko0mrt.htm/, Retrieved Sun, 16 Dec 2007 21:18:27 +0100
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
99,8 96,8 87,0 96,3 107,1 115,2 106,1 89,5 91,3 97,6 100,7 104,6 94,7 101,8 102,5 105,3 110,3 109,8 117,3 118,8 131,3 125,9 133,1 147,0 145,8 164,4 149,8 137,7 151,7 156,8 180,0 180,4 170,4 191,6 199,5 218,2 217,5 205,0 194,0 199,3 219,3 211,1 215,2 240,2 242,2 240,7 255,4 253,0 218,2 203,7 205,6 215,6 188,5 202,9 214,0 230,3 230,0 241,0 259,6 247,8 270,3
 
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 time3 seconds
R Server'Herman Ole Andreas Wold' @ 193.190.124.10:1001


Autocorrelation Function
Time lag kACF(k)T-STATP-value
017.7460
1-0.027722-0.21470.584648
2-0.157887-1.2230.886941
3-0.001689-0.01310.505197
40.0197850.15330.439355
50.079960.61940.269009
6-0.199372-1.54430.936117
70.0564040.43690.331876
8-0.195829-1.51690.932726
9-0.204927-1.58740.941156
100.2011251.55790.062257
110.1900521.47210.073106
12-0.027597-0.21380.584271
13-0.124832-0.96690.831273
140.0005190.0040.498402
150.1181930.91550.181792
16-0.12764-0.98870.836609
17-0.03756-0.29090.613949
18-0.062395-0.48330.684683
19-0.171119-1.32550.904982
200.1615141.25110.107881
210.0516870.40040.345155
22-0.018809-0.14570.557675
23-0.10811-0.83740.79716
24-0.033645-0.26060.602357
250.1797821.39260.084442
26-0.00499-0.03870.515352
27-0.018485-0.14320.556688
28-0.111386-0.86280.804156
29-0.093023-0.72060.763009
300.1473671.14150.129099
310.0116950.09060.464059
32-0.006396-0.04950.519675
33-0.042952-0.33270.629742
34-0.113982-0.88290.809593
350.1290060.99930.160837
36-0.005438-0.04210.516729
370.0227180.1760.430455
380.0301110.23320.408184
39-0.064293-0.4980.689851
400.0853490.66110.255535
410.0270150.20930.417478
420.0963670.74650.229153
43-0.030735-0.23810.593682
44-0.056-0.43380.666996
450.0130640.10120.459866
460.0330130.25570.399522
470.0330310.25590.399468
48-0.067442-0.52240.698344
49-0.019894-0.15410.560975
500.0404110.3130.377674
51-0.016379-0.12690.550266
520.0009860.00760.496967
53-0.033039-0.25590.600556
54-0.019116-0.14810.558609
550.0004250.00330.498692
56-0.020494-0.15870.562798
570.0243730.18880.425446
58-0.018056-0.13990.555382
59-0.012722-0.09850.539087


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
0-0.027722-0.21470.584648
1-0.158777-1.22990.888229
2-0.01146-0.08880.535219
3-0.00587-0.04550.518057
40.0804610.62320.267742
5-0.198232-1.53550.935041
60.077180.59780.276101
7-0.278273-2.15550.982428
8-0.208046-1.61150.943843
90.1209340.93680.176321
100.1928611.49390.070222
11-0.0249-0.19290.576147
12-0.013309-0.10310.540883
13-0.100923-0.78170.781281
14-0.001092-0.00850.50336
15-0.16211-1.25570.892953
16-0.045963-0.3560.638466
17-0.103391-0.80090.786814
18-0.079934-0.61920.730924
190.1909561.47910.072167
20-0.01173-0.09090.536048
21-0.135545-1.04990.851019
22-0.106554-0.82540.793784
23-0.103814-0.80410.787754
240.0009420.00730.497102
250.0544930.42210.337229
26-0.007238-0.05610.522262
27-0.092833-0.71910.762558
28-0.050134-0.38830.650429
290.0685070.53070.298808
30-0.132318-1.02490.845246
31-0.099094-0.76760.777126
320.0312390.2420.404813
33-0.102841-0.79660.785588
340.0295230.22870.409945
35-0.053909-0.41760.661127
36-0.103584-0.80240.787243
370.0620170.48040.316352
380.0780390.60450.273899
39-0.060333-0.46730.679023
40-0.037715-0.29210.614406
410.0733420.56810.286043
420.0160.12390.450889
430.0238550.18480.427012
44-0.088786-0.68770.752865
450.033960.26310.396706
460.0248690.19260.423947
470.0574880.44530.328853
480.030590.23690.406753
49-0.074769-0.57920.717674
50-0.041117-0.31850.62439
510.0294660.22820.410116
52-0.104689-0.81090.789691
530.0524150.4060.343091
540.0014680.01140.495482
550.001150.00890.496462
560.0282050.21850.4139
570.0107060.08290.467092
58-0.035466-0.27470.607761
59NANANA
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/16/t1197836307wsuhjt1cvko0mrt/1fdgv1197837298.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/16/t1197836307wsuhjt1cvko0mrt/1fdgv1197837298.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/16/t1197836307wsuhjt1cvko0mrt/2v0nd1197837298.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/16/t1197836307wsuhjt1cvko0mrt/2v0nd1197837298.ps (open in new window)


 
Parameters (Session):
 
Parameters (R input):
par1 = 60 ; par2 = 1 ; 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