Home » date » 2009 » Jul » 28 »

*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, 28 Jul 2009 07:53:43 -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/Jul/28/t1248789441nwbkbi8s3qx9ejo.htm/, Retrieved Tue, 28 Jul 2009 15:57:21 +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/Jul/28/t1248789441nwbkbi8s3qx9ejo.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 «
6430 5124 4836 4629 4597 4490 4517 4560 4135 4559 4739 4886 5605 4616 4997 4607 4882 4555 4462 4476 4277 4369 4492 5183 6039 4923 4953 4892 4614 4363 4675 4556 4217 4664 4601 5428 5607 4869 5174 5031 4671 4491 4504 4615 4582 4800 4775 5791 5818 4714 4915 4598 4407 4383 4412 4274 4236 4637 4534 5271 5467 5204 5752 4724 4623 4451 4138 4140 4169 4603 4434 5185
 
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'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.4509263.82620.000137
20.2253491.91210.029918
3-0.009373-0.07950.468415
4-0.280859-2.38320.009902
5-0.377971-3.20720.001
6-0.45809-3.8870.000112
7-0.380314-3.22710.000942
8-0.33309-2.82640.003045
9-0.051955-0.44090.33032
100.0952450.80820.210825
110.3300642.80070.003272
120.632045.3630
130.2745852.32990.011309
140.2369882.01090.02404
150.0227660.19320.423683
16-0.188504-1.59950.057044
17-0.259718-2.20380.015369
18-0.350907-2.97750.001978
19-0.317518-2.69420.004387
20-0.269366-2.28560.01261
21-0.068451-0.58080.281584
220.0473340.40160.344567
230.347382.94760.002157
240.5358734.5471.1e-05
250.1744631.48040.071569
260.1284141.08960.139754
27-0.04367-0.37060.35603
28-0.224701-1.90660.030278
29-0.252473-2.14230.017776
30-0.282766-2.39940.009507
31-0.233141-1.97830.025862
32-0.192019-1.62930.053805
33-0.021152-0.17950.429031
340.0662280.5620.287944
350.29372.49210.0075
360.3678763.12150.001295
370.1547341.3130.096682
380.1730331.46820.073198
39-0.035181-0.29850.383083
40-0.16441-1.39510.083643
41-0.182635-1.54970.062798
42-0.229912-1.95090.027483
43-0.165021-1.40030.082867
44-0.119854-1.0170.15628
450.0190040.16130.436171
460.0849450.72080.236688
470.2712722.30180.01212
480.2761632.34330.010939


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.4509263.82620.000137
20.0276330.23450.407641
3-0.151548-1.28590.101294
4-0.295168-2.50460.007262
5-0.179239-1.52090.066333
6-0.237539-2.01560.023788
7-0.138328-1.17380.122181
8-0.261108-2.21560.014942
90.0251670.21360.41575
10-0.095621-0.81140.209913
110.1311311.11270.134773
120.4056563.44210.000482
13-0.340275-2.88730.002563
140.0730290.61970.268715
15-0.048261-0.40950.34169
16-0.059271-0.50290.308273
170.0617410.52390.300983
18-0.07736-0.65640.256823
19-0.030949-0.26260.396799
200.0258430.21930.413524
21-0.11284-0.95750.170765
220.0612620.51980.302389
230.1755771.48980.070319
240.1043570.88550.189417
25-0.258118-2.19020.015874
26-0.179857-1.52610.065678
270.045730.3880.349568
28-0.117427-0.99640.161196
29-0.0111-0.09420.46261
300.0337950.28680.387561
31-0.033289-0.28250.389199
32-0.059769-0.50720.306796
33-0.062559-0.53080.298585
34-0.072838-0.6180.269247
35-0.080662-0.68440.247947
36-0.088564-0.75150.227403
370.0721240.6120.271237
380.0085020.07210.471346
39-0.110214-0.93520.176407
400.0018020.01530.493921
41-0.033158-0.28140.389621
42-0.013211-0.11210.45553
430.0789340.66980.252571
44-0.002356-0.020.492052
450.0702280.59590.276554
46-0.043528-0.36930.356477
47-0.118162-1.00260.159698
480.0573220.48640.314084
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jul/28/t1248789441nwbkbi8s3qx9ejo/1ys4k1248789219.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jul/28/t1248789441nwbkbi8s3qx9ejo/1ys4k1248789219.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jul/28/t1248789441nwbkbi8s3qx9ejo/21jie1248789219.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jul/28/t1248789441nwbkbi8s3qx9ejo/21jie1248789219.ps (open in new window)


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