Home » date » 2008 » Dec » 18 »

*Unverified author*
R Software Module: rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Thu, 18 Dec 2008 04:07:16 -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/18/t1229598460wkjx5udgf9d0mo8.htm/, Retrieved Thu, 18 Dec 2008 12:07:45 +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/18/t1229598460wkjx5udgf9d0mo8.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 «
6.3 6.1 6.1 6.3 6.3 6 6.2 6.4 6.8 7.5 7.5 7.6 7.6 7.4 7.3 7.1 6.9 6.8 7.5 7.6 7.8 8 8.1 8.2 8.3 8.2 8 7.9 7.6 7.6 8.2 8.3 8.4 8.4 8.4 8.6 8.9 8.8 8.3 7.5 7.2 7.5 8.8 9.3 9.3 8.7 8.2 8.3 8.5 8.6 8.6 8.2 8.1 8 8.6 8.7 8.8 8.5 8.4 8.5 8.7
 
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'George Udny Yule' @ 72.249.76.132


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.4937283.42060.000642
2-0.163657-1.13380.131245
3-0.685537-4.74959e-06
4-0.585826-4.05879e-05
5-0.18389-1.2740.104394
60.1789321.23970.11056
70.3635132.51850.007587
80.3174082.19910.016362
90.2229441.54460.064506
10-0.056218-0.38950.349318
11-0.235041-1.62840.054992
12-0.325881-2.25780.014273
13-0.149848-1.03820.152195
140.0628840.43570.332513
150.2030561.40680.082962
160.1596911.10640.13704
170.0413970.28680.387748
180.0375170.25990.398017
19-0.064287-0.44540.32902
20-0.072115-0.49960.30981
21-0.16263-1.12670.132728
22-0.067239-0.46580.321716
230.0674510.46730.321194
240.1867191.29360.100992
250.1454441.00770.159333
26-0.007504-0.0520.479376
27-0.115021-0.79690.214719
28-0.134184-0.92970.178601
29-0.07066-0.48950.313342
30-0.036448-0.25250.400858
310.0109560.07590.469904
320.095570.66210.255528
330.1659221.14950.128014
340.0987270.6840.248632
35-0.07206-0.49920.309944
36-0.170286-1.17980.121952
37-0.145179-1.00580.15977
380.02830.19610.422693
390.1125880.780.2196
400.1006260.69720.244535
410.0032350.02240.491105
42-0.044078-0.30540.380697
43-0.040247-0.27880.390783
44-0.008451-0.05850.476778
45-0.00016-0.00110.499561
46-0.000277-0.00190.499239
470.0001178e-040.499678
48NANANA
49NANANA
50NANANA
51NANANA
52NANANA
53NANANA
54NANANA
55NANANA
56NANANA
57NANANA
58NANANA
59NANANA
60NANANA


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.4937283.42060.000642
2-0.538755-3.73260.000251
3-0.550005-3.81050.000197
4-0.043744-0.30310.381574
5-0.209054-1.44840.077007
6-0.422332-2.9260.002616
7-0.110559-0.7660.223721
8-0.076935-0.5330.29824
90.0715860.4960.311091
10-0.201644-1.3970.084415
110.031940.22130.412904
120.0415530.28790.387336
130.0553750.38360.351466
14-0.031236-0.21640.414792
150.0029580.02050.491868
16-0.061722-0.42760.335418
17-0.031295-0.21680.414635
180.2094121.45090.076663
19-0.196082-1.35850.090329
200.0426670.29560.384402
210.0082040.05680.477456
220.0122270.08470.466423
230.0793570.54980.292502
240.0530470.36750.357422
250.0766880.53130.298828
260.102270.70850.241017
270.0195740.13560.446347
280.141670.98150.165629
29-0.074973-0.51940.302925
30-0.064776-0.44880.327803
31-0.104573-0.72450.236136
320.0353220.24470.403859
33-0.103919-0.720.237517
34-0.131987-0.91440.182529
35-0.101253-0.70150.243189
360.0157120.10890.456886
37-0.045154-0.31280.377881
38-0.004935-0.03420.486434
390.0608060.42130.337716
400.0028830.020.492074
41-0.032341-0.22410.41183
420.0033830.02340.4907
43-0.064963-0.45010.32734
440.0120620.08360.466875
45-0.048513-0.33610.369126
46-0.035177-0.24370.404246
47-0.089428-0.61960.269234
48NANANA
49NANANA
50NANANA
51NANANA
52NANANA
53NANANA
54NANANA
55NANANA
56NANANA
57NANANA
58NANANA
59NANANA
60NANANA
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/18/t1229598460wkjx5udgf9d0mo8/13fcd1229598433.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/18/t1229598460wkjx5udgf9d0mo8/13fcd1229598433.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/18/t1229598460wkjx5udgf9d0mo8/2wuxk1229598433.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/18/t1229598460wkjx5udgf9d0mo8/2wuxk1229598433.ps (open in new window)


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