Home » date » 2010 » Nov » 23 »

WERKLOOSHEID

*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, 23 Nov 2010 19:40:36 +0000
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2010/Nov/23/t1290541155qqls0ivwdxlwqk7.htm/, Retrieved Tue, 23 Nov 2010 20:39:16 +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/Nov/23/t1290541155qqls0ivwdxlwqk7.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:
KDGP2W12
 
Dataseries X:
» Textbox « » Textfile « » CSV «
8.6 8.5 8.4 8.0 7.9 8.1 8.6 8.8 8.8 8.6 8.3 8.3 8.3 8.4 8.4 8.5 8.6 8.6 8.6 8.6 8.6 8.5 8.4 8.4 8.4 8.5 8.5 8.6 8.6 8.4 8.2 8.0 8.0 8.0 8.0 7.9 7.9 7.8 7.9 8.0 7.9 7.4 7.2 7.0 7.0 7.1 7.2 7.2 7.0 6.9 6.8 6.8 6.8 6.9 7.2 7.3 7.2 7.1 7.1 7.3 7.5 7.6 7.7 7.7 7.7 7.8 8.0 8.1 8.1 8.0 8.1 8.2 8.3 8.4 8.6 8.6 8.7 8.8 8.9
 
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'Gwilym Jenkins' @ 72.249.127.135


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.5142834.5421e-05
20.0285670.25230.400738
3-0.340787-3.00970.00176
4-0.259094-2.28830.012415
5-0.047534-0.41980.33789
60.1995881.76270.040933
70.3172932.80230.003199
80.2180271.92560.028902
90.1066070.94150.174671
100.0471790.41670.339031
110.0998370.88170.190314
120.1059060.93530.176252
130.0129420.11430.454648
14-0.016101-0.14220.443643
15-0.033441-0.29530.384259
16-0.085891-0.75860.225197
17-0.085675-0.75670.225766
18-0.056199-0.49630.310526
190.1080960.95470.171346
200.1670561.47540.072065
210.1317111.16320.124139
22-0.026749-0.23620.406932
23-0.184984-1.63370.053172
24-0.295954-2.61380.005371
25-0.230691-2.03740.0225
26-0.008103-0.07160.471567
270.1267081.11910.133276
280.038920.34370.365985
29-0.125617-1.10940.135329
30-0.143856-1.27050.103841
31-0.033579-0.29660.383794
320.0658940.5820.281134
330.001740.01540.493889
34-0.056563-0.49950.3094
35-0.290872-2.56890.006055
36-0.273776-2.41790.008971
37-0.139866-1.23530.110221
380.1576721.39250.08386
390.1869231.65090.051394
400.1518031.34070.091956
41-0.018811-0.16610.434241
42-0.130681-1.15410.125983
43-0.160399-1.41660.08029
44-0.143077-1.26360.105064
45-0.043379-0.38310.351341
460.0621720.54910.292256
470.1382381.22090.112903
480.1197741.05780.146703


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.5142834.5421e-05
2-0.320757-2.83280.002935
3-0.295876-2.61310.005381
40.158831.40270.082331
50.0189530.16740.433747
60.1014290.89580.186559
70.171311.5130.067165
8-0.024597-0.21720.414296
90.1518481.34110.091892
100.1565991.3830.085298
110.1244881.09940.137478
120.0498350.44010.33053
13-0.098593-0.87080.193281
140.0921580.81390.209085
15-0.039554-0.34930.363893
16-0.260565-2.30120.012024
17-0.054077-0.47760.317136
18-0.154639-1.36570.087974
190.0861370.76070.224553
200.0147810.13050.448237
21-0.104565-0.92350.1793
220.0058180.05140.479577
23-0.079624-0.70320.242005
24-0.128218-1.13240.13047
250.0222970.19690.422202
260.0051360.04540.48197
27-0.02213-0.19540.422775
28-0.160068-1.41370.080717
29-0.091926-0.81190.209668
300.1490261.31620.095988
310.0534280.47190.31917
320.0651330.57520.283391
33-0.080127-0.70770.240631
340.0893570.78920.216199
35-0.228265-2.0160.023623
360.0752430.66450.254155
370.0423520.3740.354694
380.0463190.40910.341801
39-0.059091-0.52190.301616
400.1527841.34940.090563
41-0.066917-0.5910.278116
420.0135720.11990.452448
430.0701530.61960.268671
44-0.028498-0.25170.400973
45-0.000806-0.00710.497171
460.0333380.29440.384604
470.0618350.54610.293275
48-0.026789-0.23660.406796
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Nov/23/t1290541155qqls0ivwdxlwqk7/11llq1290541233.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/23/t1290541155qqls0ivwdxlwqk7/11llq1290541233.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/23/t1290541155qqls0ivwdxlwqk7/21llq1290541233.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/23/t1290541155qqls0ivwdxlwqk7/21llq1290541233.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