Home » date » 2010 » Apr » 30 »

*Unverified author*
R Software Module: /rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Fri, 30 Apr 2010 11:52:38 +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/Apr/30/t1272628457ot2dxjznigntd4i.htm/, Retrieved Fri, 30 Apr 2010 13:54:19 +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/2010/Apr/30/t1272628457ot2dxjznigntd4i.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 «
4.50 4.65 4.71 15.80 14.99 15.26 17.21 16.94 16.80 18.37 18.53 18.48 18.73 18.63 19.15 19.76 20.02 20.26 20.32 20.52 20.81 21.26 22.15 23.05 24.01 24.69 25.38 26.33 27.36 28.55 30.10 32.20 36.28 40.91 44.66 47.83 49.97 52.20 55.67 59.92 65.15 70.14 74.60 78.23 79.24 80.47 81.41 83.94 86.83 89.61 91.79 94.32 96.56 97.98 100.00 101.63 102.60 103.75 106.39 109.02 110.81 112.57 114.93 118.13 120.25 122.44 127.94 127.87
 
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.2403991.96780.026619
20.2180391.78470.039416
30.3357242.7480.003848
40.1440661.17920.121238
50.1323091.0830.141346
60.2478712.02890.023222
70.2082141.70430.046479
80.1911911.5650.061151
90.1620511.32640.094598
100.0923020.75550.226292
110.0653040.53450.297369
120.0047310.03870.484613
13-0.063051-0.51610.303743
14-0.05938-0.48610.314259
15-0.06409-0.52460.300796
16-0.065145-0.53320.297818
17-0.066641-0.54550.293618
18-0.076547-0.62660.266538
19-0.087547-0.71660.238055
20-0.131079-1.07290.143577
21-0.136145-1.11440.134545
22-0.169822-1.39010.084556
23-0.119983-0.98210.164792
24-0.114521-0.93740.17596
25-0.112706-0.92250.179779
26-0.103986-0.85120.198856
27-0.124266-1.01720.156367
28-0.128085-1.04840.149106
29-0.056169-0.45980.323586
30-0.024015-0.19660.42238
31-0.045043-0.36870.356759
32-0.056749-0.46450.321894
33-0.077487-0.63430.264036
34-0.082263-0.67340.25152
35-0.059733-0.48890.313243
36-0.018253-0.14940.44084
370.023710.19410.423354
380.0118850.09730.461398
390.0099880.08180.467543
40-0.003434-0.02810.488829
41-0.096776-0.79210.215535
42-0.055461-0.4540.325659
43-0.066483-0.54420.294058
44-0.0089-0.07280.471072
450.0007570.00620.497539
46-0.011291-0.09240.463318
47-0.046338-0.37930.352835
48-0.013567-0.11110.455953
49-0.006663-0.05450.478335
50-0.056038-0.45870.32397
51-0.022015-0.18020.428771
52-0.028516-0.23340.408076
53-0.064794-0.53040.298807
54-0.052703-0.43140.333785
55-0.001089-0.00890.496457
560.0056050.04590.481773
57-0.011732-0.0960.461891
58-0.055401-0.45350.325836
59-0.012463-0.1020.459525
600.0638970.5230.301342


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.2403991.96780.026619
20.1700761.39210.084243
30.2746992.24850.013919
40.001890.01550.493851
50.0135470.11090.45602
60.1381791.1310.131035
70.1156780.94690.173555
80.0768430.6290.265749
9-0.013293-0.10880.456839
10-0.06073-0.49710.310375
11-0.048159-0.39420.347344
12-0.092612-0.75810.225535
13-0.137668-1.12690.13191
14-0.109596-0.89710.186443
15-0.069825-0.57150.284771
16-0.022246-0.18210.42803
17-0.018768-0.15360.439183
18-0.010142-0.0830.467042
190.0095920.07850.468828
20-0.01757-0.14380.443038
21-0.003227-0.02640.489502
22-0.050461-0.4130.340447
230.0254070.2080.417945
240.0099720.08160.467595
250.0011540.00940.496245
26-0.026589-0.21760.414184
27-0.052617-0.43070.334038
28-0.035147-0.28770.387235
290.0566990.46410.32204
300.0845530.69210.245636
310.0237820.19470.423123
32-0.044931-0.36780.357101
33-0.074734-0.61170.271395
34-0.051412-0.42080.337614
35-0.027307-0.22350.411907
360.0074550.0610.475763
370.0335070.27430.392361
38-0.001011-0.00830.496711
39-0.007931-0.06490.474215
40-0.028808-0.23580.407151
41-0.125514-1.02740.15397
42-0.047923-0.39230.348053
43-0.051376-0.42050.337722
440.0591840.48440.314827
450.0178670.14620.442084
46-0.017996-0.14730.441667
47-0.076403-0.62540.26692
48-0.00153-0.01250.495022
490.0582590.47690.317504
500.0090860.07440.470466
510.0265320.21720.414367
52-0.003857-0.03160.487455
53-0.049697-0.40680.34273
54-0.08261-0.67620.250622
55-0.025373-0.20770.418051
560.0228660.18720.426048
570.0277510.22720.410498
58-0.052403-0.42890.334672
59-0.003598-0.02940.488297
600.1007860.8250.206158
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Apr/30/t1272628457ot2dxjznigntd4i/1t7or1272628356.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Apr/30/t1272628457ot2dxjznigntd4i/1t7or1272628356.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Apr/30/t1272628457ot2dxjznigntd4i/2t7or1272628356.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Apr/30/t1272628457ot2dxjznigntd4i/2t7or1272628356.ps (open in new window)


 
Parameters (Session):
par1 = 60 ; par2 = 1 ; par3 = 1 ; par4 = 0 ; par5 = 12 ; par6 = White Noise ; par7 = 0.95 ;
 
Parameters (R input):
par1 = 60 ; 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