Home » date » 2008 » Dec » 21 »

fdsq

*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, 21 Dec 2008 15:35:44 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2008/Dec/21/t1229898968tg2sgxo42yd7ktu.htm/, Retrieved Sun, 21 Dec 2008 23:36:10 +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/2008/Dec/21/t1229898968tg2sgxo42yd7ktu.htm/},
    year = {2008},
}
@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 = {2008},
    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 «
130.3 130.9 104.7 115.2 124.5 112.3 127.5 120.6 117.5 117.7 120.4 125 131.6 121.1 114.2 112.1 127 116.8 112 129.7 113.6 115.7 119.5 125.8 129.6 128 112.8 101.6 123.9 118.8 109.1 130.6 112.4 111 116.2 119.8 117.2 127.3 107.7 97.5 120.1 110.6 111.3 119.8 105.5 108.7 128.7 119.5 121.1 128.4 108.8 107.5 125.6 102.9 107.5 120.4 104.3 100.6 121.9 112.7 124.9 123.9 102.2 104.9 109.8 98.9 107.3 112.6 104 110.6 100.8 103.8 117 108.4 95.5 96.9 103.9 101.1 100.6 104.3 98 99.5 97.4 105.6 117.5 107.4 97.8 91.5 107.7 100.1 96.6 106.8 98 98.6
 
Output produced by software:


Summary of computational 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
10.4158674.0325.6e-05
20.2449522.37490.009793
30.5069494.91512e-06
40.2430852.35680.010254
50.3298233.19770.000944
60.5622415.45110
70.2533672.45650.007933
80.2223982.15620.016809
90.4009133.8879.5e-05
100.1662291.61160.055196
110.3414023.310.000662
120.6530996.3320
130.2589352.51050.006883
140.1454771.41040.080854
150.299222.9010.002316
160.0927190.89890.185489
170.1790321.73580.042939
180.3263983.16450.001047
190.0832780.80740.210734
200.0524150.50820.306258
210.1584011.53580.063979
22-0.001667-0.01620.493571
230.1693911.64230.051934
240.3446423.34140.000599
250.1058221.0260.153767
26-0.016911-0.1640.435058
270.0719110.69720.243699
28-0.066523-0.6450.260261
29-0.014015-0.13590.446102
300.1174131.13840.128931
31-0.040573-0.39340.34747
32-0.086854-0.84210.200941
33-0.031599-0.30640.380003
34-0.106375-1.03130.152514
350.0106270.1030.45908
360.2052031.98950.024775
370.0126310.12250.451399
38-0.112795-1.09360.138466
39-0.033707-0.32680.37227
40-0.117597-1.14010.128562
41-0.109276-1.05950.146051
420.0015380.01490.494068
43-0.097122-0.94160.174398
44-0.155131-1.5040.067961
45-0.106447-1.0320.15235
46-0.140721-1.36430.087858
47-0.087833-0.85160.198307
480.0865350.8390.201803
49-0.069501-0.67380.251033
50-0.185457-1.79810.037688
51-0.11248-1.09050.139134
52-0.155903-1.51150.067003
53-0.16465-1.59630.056885
54-0.094273-0.9140.181525
55-0.160062-1.55190.062028
56-0.230869-2.23840.013779
57-0.177051-1.71660.044675
58-0.234581-2.27430.01261
59-0.178127-1.7270.043726
60-0.032836-0.31840.375461


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.4158674.0325.6e-05
20.0870640.84410.200374
30.4602224.4621.1e-05
4-0.153009-1.48350.070646
50.3475313.36940.000547
60.2299062.2290.014097
7-0.061442-0.59570.276404
8-0.008483-0.08220.467312
90.064750.62780.265836
10-0.10813-1.04840.14858
110.2790212.70520.004053
120.373053.61690.000241
13-0.112377-1.08950.139352
14-0.208718-2.02360.022926
15-0.180988-1.75470.041281
16-0.114043-1.10570.135842
17-0.099979-0.96930.167434
18-0.082995-0.80470.211521
190.0352570.34180.36662
20-0.062151-0.60260.274121
21-0.017206-0.16680.433937
22-0.043712-0.42380.336337
230.0879660.85290.197953
240.0021930.02130.491541
250.1453861.40960.080984
26-0.147207-1.42720.078414
270.0312380.30290.381333
28-0.167639-1.62530.053721
29-0.017405-0.16870.433179
30-0.043521-0.42190.337013
310.1197451.1610.124297
320.0091430.08860.464778
330.024840.24080.405105
34-0.021558-0.2090.417446
350.0009650.00940.496276
360.1460821.41630.079994
37-0.019276-0.18690.426076
380.0148940.14440.442745
39-0.041673-0.4040.343551
400.0123630.11990.452424
41-0.103398-1.00250.159341
42-0.106922-1.03660.151279
430.0110650.10730.457399
44-0.003687-0.03570.485782
450.0470380.4560.324703
46-0.020589-0.19960.421104
47-0.052726-0.51120.305206
48-0.086606-0.83970.201611
49-0.086939-0.84290.20071
50-0.038919-0.37730.353388
51-0.003851-0.03730.485146
520.0743880.72120.236283
530.0208590.20220.420084
54-0.062797-0.60880.272051
55-0.068354-0.66270.254568
56-0.058875-0.57080.284744
57-0.020206-0.19590.422555
58-0.095012-0.92120.179658
590.0093010.09020.464169
600.0012710.01230.495098
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/21/t1229898968tg2sgxo42yd7ktu/1t5b91229898942.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/21/t1229898968tg2sgxo42yd7ktu/1t5b91229898942.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/21/t1229898968tg2sgxo42yd7ktu/2lcht1229898942.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/21/t1229898968tg2sgxo42yd7ktu/2lcht1229898942.ps (open in new window)


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