Home » date » 2008 » Dec » 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: Tue, 16 Dec 2008 10:33:03 -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/16/t1229448887j3l3bzcutb0nfkp.htm/, Retrieved Tue, 16 Dec 2008 18:34:49 +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/16/t1229448887j3l3bzcutb0nfkp.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 «
108.65 107.03 104.21 108.65 101.45 100.34 112.6 118.56 119.32 116.97 109.56 109.58 110.74 110.41 109.44 107.3 105.78 105.99 120.23 122.17 121.66 120.64 118.46 119.16 120.77 120.27 118.62 118.44 116.51 117.94 132.44 134.86 134.46 131.54 127.33 129.06 130.81 130.47 129.19 126.46 124.84 126.25 138.07 142.08 142.51 142.21 138.22 138.52 137.45 137.11 135.95 133.32 132.01 132.37 144.4 146.3 146.14 142.4 138.51 138.91 138.04 137.27 134.88 133.58 133.24 133.28 144.13 145.58 144.21 136.7 131.61 129.64 130.41 127.68 123.68 122.34 118.88 116 129.19 131.34 126 122.61 118.6 119.63
 
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.914228.3790
20.7937117.27450
30.6976126.39370
40.6475345.93470
50.6291095.76590
60.6005315.5040
70.558485.11861e-06
80.5234634.79763e-06
90.5270334.83033e-06
100.5609885.14151e-06
110.5984215.48460
120.6027125.52390
130.5048284.62687e-06
140.3834243.51410.000357
150.2879382.6390.004954
160.2238382.05150.021666
170.1905641.74650.042186
180.1529951.40220.082266
190.1143821.04830.148747
200.0761020.69750.243712
210.0690790.63310.264189
220.0868720.79620.214082
230.1108591.0160.156264
240.1077580.98760.163088
250.0214120.19620.422448
26-0.082901-0.75980.224751
27-0.160537-1.47130.072467
28-0.206671-1.89420.030822
29-0.226761-2.07830.020367
30-0.251776-2.30760.011741
31-0.273806-2.50950.007006
32-0.291925-2.67550.004484
33-0.283365-2.59710.005549
34-0.255794-2.34440.010709
35-0.226598-2.07680.020438
36-0.215303-1.97330.025876
37-0.267853-2.45490.008078
38-0.335399-3.0740.001424
39-0.382215-3.50310.00037
40-0.40596-3.72070.000179
41-0.408991-3.74850.000163
42-0.412668-3.78220.000145
43-0.416325-3.81570.000129
44-0.415865-3.81150.000131
45-0.392131-3.59390.000274
46-0.349706-3.20510.000955
47-0.30653-2.80940.003086
48-0.27795-2.54750.006337
49-0.303953-2.78580.0033
50-0.339924-3.11550.001257
51-0.353263-3.23770.000863
52-0.349499-3.20320.00096
53-0.330287-3.02710.001639
54-0.312692-2.86590.002627
55-0.292651-2.68220.004403
56-0.268457-2.46040.007963
57-0.229425-2.10270.019242
58-0.187412-1.71770.044772
59-0.147876-1.35530.089477
60-0.118687-1.08780.139901


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.914228.3790
2-0.256322-2.34920.01058
30.132491.21430.11402
40.1705081.56270.060938
50.0915160.83880.201993
6-0.084094-0.77070.221514
70.0116790.1070.457505
80.0887840.81370.209054
90.2047541.87660.032022
100.1120921.02730.153605
110.0747640.68520.247546
12-0.06026-0.55230.291108
13-0.540468-4.95352e-06
14-0.034057-0.31210.377854
15-0.05217-0.47810.316893
16-0.141348-1.29550.099352
170.0640010.58660.279529
180.0224060.20540.418897
190.058340.53470.297137
20-0.13243-1.21370.114124
210.0162590.1490.440948
220.0180150.16510.434626
230.0537080.49220.311916
24-0.025725-0.23580.407092
25-0.174533-1.59960.056718
260.033440.30650.379998
27-0.039541-0.36240.358981
28-0.042004-0.3850.350614
29-0.022916-0.210.417077
30-0.000625-0.00570.497722
310.0401850.36830.356786
32-0.040183-0.36830.356794
33-0.003585-0.03290.486933
34-0.011917-0.10920.456643
350.0234350.21480.415227
360.0322590.29570.384109
37-0.040101-0.36750.357075
38-0.005345-0.0490.480521
39-0.019424-0.1780.429568
40-0.051858-0.47530.31791
41-0.040267-0.36910.356509
420.0082370.07550.470002
43-0.060853-0.55770.289256
440.0086430.07920.468525
450.0130950.120.452379
460.0123560.11320.455052
470.0051260.0470.481319
480.0097690.08950.464436
49-0.024343-0.22310.411996
500.0358070.32820.371798
510.0419630.38460.350754
52-0.031181-0.28580.387877
530.0332950.30520.380501
540.0245770.22520.411167
550.0165150.15140.440027
56-0.000175-0.00160.499363
57-0.034766-0.31860.375397
58-0.083616-0.76640.222807
590.003220.02950.488264
60-0.019714-0.18070.428525
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/16/t1229448887j3l3bzcutb0nfkp/16mpe1229448782.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/16/t1229448887j3l3bzcutb0nfkp/16mpe1229448782.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/16/t1229448887j3l3bzcutb0nfkp/28zli1229448782.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/16/t1229448887j3l3bzcutb0nfkp/28zli1229448782.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