Home » date » 2009 » Aug » 16 »

*Unverified author*
R Software Module: rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Sun, 16 Aug 2009 09:36:11 -0600
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2009/Aug/16/t1250436991r5nefp4adup1g4b.htm/, Retrieved Sun, 16 Aug 2009 17:36:33 +0200
 
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/Aug/16/t1250436991r5nefp4adup1g4b.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 «
105.46 104.66 103.52 103.71 103.78 103.67 103.66 102.76 102 101.5 101.5 99.22 98.97 98.9 99.78 104.4 106.21 105.46 108.33 111.72 111.88 112.86 113.09 116.9 114.62 118.86 124.71 122.53 127.89 136.16 134.12 130.26 135.35 131.43 129.61 123.96 121.1 125.38 123.1 129.92 136.68 131.17 124.82 122.47 126.15 118.74 116.8 116.64 116.53 117.68 119.46 126.19 124.39 121.9 122.53 122.93 124.66 124.41 120.93 120.18 123.44 126.1 125.82 122.18 117.27 117.86 119.09 123.08 125.42 121.81 121.66 121.27 120.92 122.16 124.17 127.26 134.16 134.09 135.57 136.13 136.23 140.6 136.5 130.59 129.5 135.25 138.06 146.28 145.04 147.96 156.71 160.97 168.17 163.91 153.05 151.76
 
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
10.1817461.77140.039847
2-0.127827-1.24590.107931
3-0.004759-0.04640.48155
4-0.115091-1.12180.132395
50.006690.06520.474074
6-0.054674-0.53290.297676
7-0.086337-0.84150.201087
8-0.143469-1.39840.082631
9-0.132107-1.28760.100503
100.0927420.90390.184158
110.368723.59380.000259
120.0507260.49440.311078
13-0.128716-1.25460.106357
140.0983530.95860.170091
15-0.058134-0.56660.286155
16-0.07252-0.70680.240699
17-0.0557-0.54290.294236
18-0.122647-1.19540.11745
19-0.025158-0.24520.403413
20-0.079939-0.77910.218915
21-0.010928-0.10650.457699
220.0382050.37240.35522
23-0.046716-0.45530.324954
240.030020.29260.385232
250.1122991.09460.13824
26-0.093615-0.91240.181923
27-0.126991-1.23780.109428
280.0005730.00560.497779
29-0.01328-0.12940.448643
300.0625590.60970.271743
310.0426630.41580.339236
32-0.075149-0.73250.232845
33-0.10139-0.98820.162775
34-0.046622-0.45440.325283
350.015260.14870.441037
360.1438951.40250.082011
370.0326230.3180.375601
38-0.013904-0.13550.446246
390.0151520.14770.441454
40-0.056684-0.55250.290958
410.1135331.10660.135633
42-0.000319-0.00310.498763
43-0.184534-1.79860.037628
44-0.134821-1.31410.095994
45-0.113512-1.10640.135679
46-0.019822-0.19320.423607
470.0799020.77880.21902
480.0821740.80090.212584


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.1817461.77140.039847
2-0.166354-1.62140.054121
30.0559150.5450.293518
4-0.156817-1.52850.06486
50.079050.77050.221462
6-0.128865-1.2560.106095
7-0.022947-0.22370.411751
8-0.189813-1.85010.033706
9-0.0681-0.66380.254226
100.0658660.6420.261214
110.3476753.38870.000512
12-0.135075-1.31650.095579
13-0.031117-0.30330.381165
140.099190.96680.168054
15-0.076755-0.74810.228118
16-0.076237-0.74310.229639
17-0.067584-0.65870.255833
18-0.040689-0.39660.346282
190.0783310.76350.223537
20-0.067828-0.66110.255071
21-0.071976-0.70150.242341
22-0.133064-1.29690.098896
230.0050670.04940.480358
240.0406050.39580.346581
25-0.01284-0.12520.450334
26-0.169403-1.65110.051006
27-0.013975-0.13620.44597
280.0105450.10280.459178
290.0233840.22790.410101
30-0.014547-0.14180.443775
310.0426690.41590.339216
32-0.061734-0.60170.274399
33-0.091388-0.89070.187659
34-0.044343-0.43220.333285
35-0.112885-1.10030.136998
360.1339641.30570.0974
370.0866690.84470.200187
380.0606240.59090.277999
39-0.113688-1.10810.135309
40-0.064155-0.62530.266634
410.0932370.90880.182889
42-0.135969-1.32530.094132
43-0.179831-1.75280.041433
44-0.086656-0.84460.200223
45-0.037306-0.36360.358478
46-0.004715-0.0460.48172
47-0.046504-0.45330.325697
48-0.052187-0.50870.306087
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Aug/16/t1250436991r5nefp4adup1g4b/19okj1250436969.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Aug/16/t1250436991r5nefp4adup1g4b/19okj1250436969.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Aug/16/t1250436991r5nefp4adup1g4b/2bag41250436969.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Aug/16/t1250436991r5nefp4adup1g4b/2bag41250436969.ps (open in new window)


 
Parameters (Session):
par2 = grey ; par3 = FALSE ; par4 = Unknown ;
 
Parameters (R input):
par1 = 48 ; 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 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