Home » date » 2010 » Jan » 03 »

*Unverified author*
R Software Module: /rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Sun, 03 Jan 2010 11:54:02 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2010/Jan/03/t12625448970j11xfcg6asr9u4.htm/, Retrieved Sun, 03 Jan 2010 19:54:59 +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/2010/Jan/03/t12625448970j11xfcg6asr9u4.htm/},
    year = {2010},
}
@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 = {2010},
    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 «
8 10 10 13 14 12 11 8 8 10 10 12 12 12 11 12 12 12 12 12 12 10 12 10 11 10 10 12 10 12 7 12 18 12 11 13 10 10 10 8 12 10 10 8 14 9 8 12 15 14 1 9 7 8 12 57 12 10 10 8 8 16 14 13 10 12 9 12 11 10 8 8 9 12 8 12 10 12 9 8 12 8 12 10 12 9 28 10 12 9 14 12 12 99 13 13 14 12 12 10 11 12 14 10 12 12 6 12 10 12 12 12 9 12 12 13 8 12 10 10 10 9 12 9 10 8 12 10 8 8 9 12 12 10 10 9 11 10 9 15 10 8 10 8 9 9 6 16 12 12 12 12 10 12 8 9 12 12 8 14 10 12 8 11 10 12 12 12 12 8 10 7 10 10 12 11 9 10 12 14 13 10 11 10 10 8 10 10 10 8 8 4 14 8 12 12 10 8 12 12 10 10 12 12 9 11 14 10 8 12 8 10 11 12 10 10 12 8 9 12 8 8 10 10 10 14 10 12 12 13 9 12 12 10 12 6 8 12 10 9 11 11 9 10 15 12 7 7 10 9 10 10 9 12 10 9 12 10 7 12 10 10 12 8 12 10 10 9 8 8 12 12 10 12 10 etc...
 
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
1-0.566916-16.59620
20.097822.86360.002145
3-0.065551-1.9190.02766
40.102452.99920.001393
5-0.098407-2.88080.002033
60.0463671.35740.087512
70.0010990.03220.487174
8-0.058252-1.70530.044251
90.041711.2210.111205
100.0327450.95860.169016
11-0.026098-0.7640.222538
12-0.020744-0.60730.271914
13-0.007385-0.21620.414442
140.0537811.57440.05788
15-0.067113-1.96470.024885
160.0710222.07910.018951
17-0.105696-3.09420.001019
180.1347513.94484.3e-05
19-0.167861-4.9141e-06
200.2036595.9620
21-0.125835-3.68380.000122
220.0112270.32870.371247
230.0162630.47610.31706
240.0315960.9250.177624
25-0.031609-0.92530.177527
26-0.034326-1.00490.157618
270.0282540.82710.204202
280.000130.00380.498483
29-0.012854-0.37630.353396
300.0604371.76930.038604
31-0.075501-2.21030.013676
320.0331540.97060.166015
330.0342591.00290.158091
34-0.040042-1.17220.120717
350.0070880.20750.417841
36-0.009996-0.29260.384944
37-0.042508-1.24440.106844
380.0975982.85710.002189
39-0.072758-2.130.01673
400.0146990.43030.333538
410.0163010.47720.316667
42-0.004047-0.11850.45286
430.0292470.85620.196062
44-0.06601-1.93240.026819
450.0317340.9290.176573
460.00380.11120.45573
470.036441.06680.14319
48-0.081607-2.3890.008555


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.566916-16.59620
2-0.32946-9.64480
3-0.295233-8.64280
4-0.120802-3.53640.000214
5-0.142742-4.17871.6e-05
6-0.116277-3.4040.000347
7-0.062646-1.83390.033504
8-0.152841-4.47434e-06
9-0.139269-4.0772.5e-05
10-0.053003-1.55160.06056
11-0.02939-0.86040.194912
12-0.048056-1.40680.079924
13-0.10742-3.14470.00086
14-0.045394-1.32890.092118
15-0.094837-2.77630.002809
16-0.027556-0.80670.210035
17-0.14484-4.24011.2e-05
18-0.02262-0.66220.254009
19-0.1934-5.66170
20-0.023559-0.68970.245287
21-0.008116-0.23760.406129
22-0.074908-2.19290.014291
23-0.036383-1.06510.143569
24-0.003809-0.11150.455625
250.0178710.52320.300497
26-0.042652-1.24860.106071
27-0.080285-2.35030.009492
28-0.062967-1.84330.032813
29-0.089663-2.62490.004412
30-0.00481-0.14080.444027
31-0.045966-1.34560.089388
32-0.053223-1.55810.059793
330.0544991.59540.055491
34-0.012695-0.37160.355127
350.0413361.21010.113287
36-0.004164-0.12190.451498
37-0.085794-2.51160.006101
38-0.007478-0.21890.413385
39-0.025779-0.75470.225328
40-0.071218-2.08490.018688
41-0.029377-0.860.195013
42-0.03093-0.90550.18274
430.0424031.24130.107411
44-0.044482-1.30220.096599
45-0.06601-1.93240.026819
46-0.018309-0.5360.296057
470.0710192.07910.018954
48-0.041331-1.20990.113316
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Jan/03/t12625448970j11xfcg6asr9u4/1bnkr1262544840.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jan/03/t12625448970j11xfcg6asr9u4/1bnkr1262544840.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Jan/03/t12625448970j11xfcg6asr9u4/27ods1262544840.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jan/03/t12625448970j11xfcg6asr9u4/27ods1262544840.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