Home » date » 2008 » Dec » 19 »

*Unverified author*
R Software Module: rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Fri, 19 Dec 2008 03:50:22 -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/19/t1229683893jq5lj4z7hvi24dc.htm/, Retrieved Fri, 19 Dec 2008 11:51:39 +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/19/t1229683893jq5lj4z7hvi24dc.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 «
101.7 101.9 102 102.2 102.4 102.6 102.6 102.5 102.5 102.6 102.7 102.9 103.1 103.2 103.2 103 102.8 102.6 102.4 102.2 101.9 101.6 101.3 101.2 111.7 111.4 111.1 111.1 111.3 111.9 112.4 112.9 113 113 112.7 112.4 112.3 112.5 112.8 113.2 114 114.9 115.6 115.5 115 114.9 115.2 115.4 115 114.6 114.5 114.4 113.9 113.2 112.7 112.6 112.5 112.3 112 111.7 119.2
 
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.9117417.12090
20.8660286.76390
30.8226266.42490
40.7806126.09680
50.7389465.77140
60.695435.43151e-06
70.6519445.09182e-06
80.6069374.74037e-06
90.5607434.37952.4e-05
100.5132654.00878.4e-05
110.4673273.64990.000273
120.4245823.31610.000771
130.3822262.98530.002037
140.3358592.62310.005495
150.287952.2490.014069
160.2393111.86910.033207
170.1876141.46530.073986
180.128861.00640.159093
190.0623580.4870.313991
20-0.004841-0.03780.484982
21-0.069137-0.540.295589
22-0.131594-1.02780.154056
23-0.19577-1.5290.065716
24-0.261134-2.03950.022868
25-0.280914-2.1940.016027
26-0.298606-2.33220.011504
27-0.317401-2.4790.007978
28-0.337644-2.63710.005297
29-0.355195-2.77420.003667
30-0.368312-2.87660.002766
31-0.376254-2.93860.002324
32-0.381702-2.98120.00206
33-0.384139-3.00020.001952
34-0.384772-3.00520.001924
35-0.384069-2.99970.001955
36-0.383692-2.99670.001971
37-0.428039-3.34310.00071
38-0.414747-3.23930.000971
39-0.400065-3.12460.001362
40-0.38445-3.00270.001938
41-0.366142-2.85970.002899
42-0.34511-2.69540.004536
43-0.321557-2.51140.007344
44-0.298568-2.33190.011512
45-0.277712-2.1690.016995
46-0.257425-2.01060.024399
47-0.236939-1.85060.034539
48-0.215875-1.6860.048449
49-0.196403-1.5340.065106
50-0.177995-1.39020.084763
51-0.159113-1.24270.109366
52-0.140332-1.0960.138688
53-0.122845-0.95950.170559
54-0.107587-0.84030.202015
55-0.094737-0.73990.231093
56-0.082997-0.64820.259634
57-0.071297-0.55690.289833
58-0.060052-0.4690.320363
59-0.049269-0.38480.350862
60-0.039925-0.31180.37812


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.9117417.12090
20.2059881.60880.05641
30.0487220.38050.352437
40.006670.05210.479313
5-0.010723-0.08370.466766
6-0.030661-0.23950.405771
7-0.029243-0.22840.410053
8-0.037628-0.29390.384922
9-0.040982-0.32010.375002
10-0.043851-0.34250.36658
11-0.028525-0.22280.412223
12-0.010052-0.07850.46884
13-0.017507-0.13670.445845
14-0.049805-0.3890.349319
15-0.053096-0.41470.33991
16-0.050446-0.3940.34748
17-0.065325-0.51020.305875
18-0.10113-0.78990.216337
19-0.129881-1.01440.157199
20-0.107786-0.84180.201585
21-0.074968-0.58550.280179
22-0.064381-0.50280.308446
23-0.083576-0.65270.258186
24-0.096786-0.75590.226303
250.2052991.60340.057002
260.1296761.01280.157577
270.0513540.40110.34488
280.0034540.0270.489283
290.0002880.00220.499106
300.0051860.04050.483911
310.0179340.14010.444534
320.0064410.05030.480023
330.0053070.04140.483536
340.0025740.02010.492013
350.0119140.09310.463083
360.0128010.10.460344
37-0.321616-2.51190.007335
380.1582241.23580.110641
390.1063970.8310.204611
400.0338270.26420.39626
418.6e-057e-040.499734
42-0.024231-0.18930.425263
43-0.051395-0.40140.344761
44-0.062003-0.48430.314968
45-0.073837-0.57670.283136
46-0.070958-0.55420.290733
47-0.076365-0.59640.276548
48-0.045125-0.35240.362864
490.0645520.50420.30798
500.0275410.21510.415201
510.0229320.17910.429226
520.0182270.14240.443634
530.0216070.16880.433273
540.0231960.18120.428419
550.0001560.00120.499517
56-0.047226-0.36880.356759
57-0.054541-0.4260.335812
58-0.037322-0.29150.385831
59-0.01584-0.12370.450974
60-0.063276-0.49420.31147
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/19/t1229683893jq5lj4z7hvi24dc/1xebg1229683820.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/19/t1229683893jq5lj4z7hvi24dc/1xebg1229683820.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/19/t1229683893jq5lj4z7hvi24dc/251as1229683820.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/19/t1229683893jq5lj4z7hvi24dc/251as1229683820.ps (open in new window)


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