Home » date » 2008 » Dec » 09 »

*Unverified author*
R Software Module: rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Tue, 09 Dec 2008 11:25:37 -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/09/t1228847164qvkf7y9j5pi6kpq.htm/, Retrieved Tue, 09 Dec 2008 18:26:05 +0000
 
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/09/t1228847164qvkf7y9j5pi6kpq.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},
}
 
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
 
Feedback Forum:
2008-11-27 13:41:43 [a2386b643d711541400692649981f2dc] [reply
test

Post a new message
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
106,7 110,2 125,9 100,1 106,4 114,8 81,3 87 104,2 108 105 94,5 92 95,9 108,8 103,4 102,1 110,1 83,2 82,7 106,8 113,7 102,5 96,6 92,1 95,6 102,3 98,6 98,2 104,5 84 73,8 103,9 106 97,2 102,6 89 93,8 116,7 106,8 98,5 118,7 90 91,9 113,3 113,1 104,1 108,7 96,7 101 116,9 105,8 99 129,4 83 88,9 115,9 104,2 113,4 112,2 100,8 107,3 126,6 102,9 117,9 128,8 87,5 93,8 122,7 126,2 124,6 116,7 115,2 111,1 129,9 113,3 118,5 137,9 103,6 101,7 127,4 137,5 128,3 118,2 117,1 124,2 126 132,1
 
Output produced by software:


Summary of computational 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
1-0.569951-4.93592e-06
20.0312380.27050.39375
30.2392592.0720.02085
4-0.223218-1.93310.028498
50.0368480.31910.375263
60.1684241.45860.074426
7-0.250651-2.17070.016559
80.1167961.01150.157519
90.0089170.07720.469326
10-0.051162-0.44310.329494
110.0973930.84340.20083
12-0.124986-1.08240.141269
130.0260480.22560.41107
14-0.033114-0.28680.387537
150.0519710.45010.326974
16-0.107046-0.9270.178438
170.0916850.7940.214847
18-0.041812-0.36210.359147
19-0.012018-0.10410.458692
200.037360.32350.373591
210.1454591.25970.10584
22-0.342854-2.96920.002004
230.3986683.45260.000458
24-0.227888-1.97360.026058
25-0.031564-0.27340.392666
260.2161611.8720.032552
27-0.169477-1.46770.073182
280.019830.17170.432055
290.1276021.10510.136332
30-0.129127-1.11830.13351
310.0204090.17670.430092
320.1232631.06750.144588
33-0.225217-1.95040.02743
340.1690161.46370.073724
35-0.043561-0.37730.353525
36-0.0789-0.68330.248264
370.0724270.62720.266204
38-0.019883-0.17220.431874
39-0.078936-0.68360.248165
400.104690.90660.183751
41-0.040554-0.35120.36321
42-0.065207-0.56470.286978
430.0550920.47710.317337
440.0453730.39290.347739
45-0.135557-1.1740.122063
460.1240271.07410.143109
47-0.012426-0.10760.457296
48-0.112735-0.97630.166023
490.1698331.47080.072765
50-0.087107-0.75440.226494
510.010850.0940.462693
520.014040.12160.451774
53-0.022043-0.19090.424562
540.0582570.50450.307688
550.0042110.03650.485504
56-0.108686-0.94130.174799
570.1192971.03310.152429
58-0.050887-0.44070.330352
59-0.041377-0.35830.360551
600.0817120.70760.24068


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.569951-4.93592e-06
2-0.434871-3.76610.000164
30.0309610.26810.394668
4-0.000607-0.00530.497911
5-0.083993-0.72740.234623
60.1148280.99440.161602
7-0.060747-0.52610.300191
8-0.095547-0.82750.205301
9-0.10493-0.90870.183204
100.0038860.03370.48662
110.1227331.06290.145619
12-0.060386-0.5230.301273
13-0.104751-0.90720.183611
14-0.236817-2.05090.021885
15-0.075403-0.6530.257873
16-0.181472-1.57160.060127
17-0.076268-0.66050.255478
18-0.016682-0.14450.442757
19-0.040982-0.35490.361826
20-0.07098-0.61470.270305
210.2346812.03240.022827
22-0.165531-1.43350.07793
230.1622371.4050.082073
240.0004280.00370.498527
25-0.028159-0.24390.403999
260.010470.09070.463998
270.0292310.25310.400424
280.0604190.52320.301174
29-0.003323-0.02880.488559
300.045520.39420.347271
31-0.054372-0.47090.319548
320.0906350.78490.217485
33-0.015497-0.13420.446799
34-0.003003-0.0260.489661
350.1095250.94850.172956
36-0.020945-0.18140.428276
370.0070670.06120.475679
38-0.083583-0.72380.235705
39-0.025993-0.22510.411253
40-0.06926-0.59980.275222
410.0435040.37680.353709
42-0.07449-0.64510.260416
43-0.054237-0.46970.319965
44-0.033706-0.29190.385584
45-0.019556-0.16940.432986
46-0.112365-0.97310.166814
47-0.013882-0.12020.452316
48-0.067665-0.5860.27982
49-0.056033-0.48530.314454
50-0.038859-0.33650.368706
510.0158920.13760.44545
52-0.097775-0.84680.199912
53-0.138957-1.20340.116303
540.106740.92440.179124
55-0.014447-0.12510.450384
56-0.041299-0.35770.360802
57-0.023959-0.20750.418094
58-0.055121-0.47740.317246
59-0.003782-0.03280.486978
60-0.083607-0.72410.23564
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/09/t1228847164qvkf7y9j5pi6kpq/1tdui1228847132.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/09/t1228847164qvkf7y9j5pi6kpq/1tdui1228847132.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/09/t1228847164qvkf7y9j5pi6kpq/28xkl1228847132.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/09/t1228847164qvkf7y9j5pi6kpq/28xkl1228847132.ps (open in new window)


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