Home » date » 2009 » 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: Wed, 16 Dec 2009 06:58: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/2009/Dec/16/t12609720554zojhuio3wqmald.htm/, Retrieved Wed, 16 Dec 2009 15:00:57 +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/2009/Dec/16/t12609720554zojhuio3wqmald.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:
KDGP2W21
 
Dataseries X:
» Textbox « » Textfile « » CSV «
1.61 1.58 1.69 1.78 1.76 1.83 1.8 1.57 1.45 1.4 1.55 1.58 1.58 1.59 1.8 1.99 2.06 2.06 2.08 2 1.85 1.77 1.7 1.66 1.67 1.73 1.91 2.02 2.07 2.15 2.1 1.68 1.68 1.65 1.72 1.73 1.76 1.84 1.99 2.05 2.12 2.13 2.08 1.88 1.81 1.81 1.88 1.87 1.87 1.9 2.01 2.05 2.16 2.18 2.15 2.12 2.04 2.04 2.06 1.93 1.86 1.94 2.35 2.46 2.59 2.66 2.41 2.18 2.13 2.11 2.12 2.16 2.07 2.2 2.29 2.32 2.37 2.38 2.38 2.28 2.22 2.25 2.3 2.3 2.23 2.27 2.3 2.32 2.41 2.43 2.45 2.47 2.46 2.5 2.46 2.43 2.37 2.45 2.53 2.56 2.62 2.67 2.62 2.6 2.53 2.49 2.48 2.44
 
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.3930564.06584.6e-05
20.0356950.36920.356344
3-0.144744-1.49720.068637
4-0.273835-2.83260.002759
5-0.354972-3.67190.000189
6-0.320451-3.31480.000626
7-0.289273-2.99230.001719
8-0.123419-1.27670.102244
9-0.057793-0.59780.275615
100.0894070.92480.178568
110.3301763.41540.000451
120.5007055.17931e-06
130.2730062.8240.002829
140.0380820.39390.347209
15-0.085415-0.88350.189462
16-0.120849-1.25010.107001
17-0.244374-2.52780.006469
18-0.209636-2.16850.016168
19-0.240049-2.48310.007289
20-0.135535-1.4020.081907
21-0.166415-1.72140.044033
220.0181910.18820.42555
230.3232423.34360.00057
240.4521614.67724e-06
250.2155982.23020.013912
260.0675090.69830.243247
27-0.005775-0.05970.476239
28-0.05303-0.54850.292229
29-0.161417-1.66970.04895
30-0.185118-1.91490.029089
31-0.326442-3.37670.000512
32-0.19925-2.06110.020861
33-0.143297-1.48230.070604
34-0.029986-0.31020.378513
350.343313.55120.000286
360.4667124.82772e-06
370.220582.28170.012243
380.0803980.83160.203731
39-0.012967-0.13410.446777
40-0.136959-1.41670.079736
41-0.146278-1.51310.066599
42-0.239771-2.48020.007345
43-0.176626-1.8270.035241
44-0.08695-0.89940.185225
45-0.0892-0.92270.179121
460.0583160.60320.273818
470.2366142.44760.008005
480.2597072.68640.004187


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.3930564.06584.6e-05
2-0.140506-1.45340.074519
3-0.127313-1.31690.095337
4-0.194411-2.0110.02342
5-0.229866-2.37780.009597
6-0.185744-1.92140.028674
7-0.26938-2.78650.003153
8-0.148653-1.53770.063539
9-0.303305-3.13740.001101
10-0.196352-2.03110.022363
110.0028070.0290.488447
120.1709781.76860.039905
13-0.101668-1.05170.147663
14-0.102673-1.06210.1453
15-0.011032-0.11410.454681
160.0870380.90030.184983
17-0.047836-0.49480.31087
180.0672960.69610.243931
19-0.108741-1.12480.131589
20-0.020761-0.21480.415183
21-0.263021-2.72070.003802
22-0.085668-0.88620.18876
230.0690520.71430.238305
240.0505160.52250.301186
25-0.151266-1.56470.060302
26-0.070913-0.73350.232419
270.0382480.39560.346581
280.048970.50650.306757
290.0298330.30860.379114
300.0463870.47980.316164
31-0.245522-2.53970.006266
320.0037650.03890.484505
33-0.03632-0.37570.353944
34-0.172219-1.78150.038838
350.1282811.32690.093675
360.0275160.28460.38824
37-0.054332-0.5620.287641
38-0.089736-0.92820.177686
390.0213830.22120.412683
40-0.152123-1.57360.059269
410.0680650.70410.241461
42-0.170758-1.76630.040096
430.1228751.2710.103237
440.0510390.5280.299312
450.0432540.44740.327738
460.0077290.07990.468215
47-0.010764-0.11130.455775
48-0.08344-0.86310.195003
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/16/t12609720554zojhuio3wqmald/107pi1260971895.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/16/t12609720554zojhuio3wqmald/107pi1260971895.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/16/t12609720554zojhuio3wqmald/22s5v1260971895.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/16/t12609720554zojhuio3wqmald/22s5v1260971895.ps (open in new window)


 
Parameters (Session):
par1 = 48 ; par2 = 1 ; par3 = 1 ; par4 = 0 ; par5 = 12 ; par6 = White Noise ; par7 = 0.95 ;
 
Parameters (R input):
par1 = 48 ; par2 = 1 ; par3 = 1 ; par4 = 0 ; par5 = 12 ; par6 = White Noise ; par7 = 0.95 ;
 
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 (par6 == 'White Noise') par6 <- 'white' else par6 <- 'ma'
par7 <- as.numeric(par7)
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='time lag', ylab='ACF', ci.type=par6, ci=par7, sub=paste('(lambda=',par2,', d=',par3,', D=',par4,', CI=', par7, ', CI type=',par6,')',sep=''))
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