Home » date » 2011 » May » 20 »

*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, 19 May 2011 23:12:50 +0000
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2011/May/20/t1305846527j15awg311dg26yo.htm/, Retrieved Fri, 20 May 2011 01:08:50 +0200
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
KDGP2W12
 
Dataseries X:
» Textbox « » Textfile « » CSV «
90 51 47 59 54 79 59 80 46 62 55 77 72 72 71 50 66 78 59 52 71 98 70 84 90 98 98 78 59 0 58 55 62 80 91 86 61 49 61 56 73 85 82 32 39 30 51 48 57 59 32 56 54 74 62 78 72 48 59 61 80 69 58 63 27 23 34 45 51 51 73 37 35 66 54 30 66 61 37 55 64 53 63 70 72 52 53 50 60 73 66 78
 
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'Herman Ole Andreas Wold' @ www.yougetit.org


Autocorrelation Function
Time lag kACF(k)T-STATP-value
1-0.279575-2.6670.004529
2-0.068203-0.65060.258466
3-0.060988-0.58180.281074
4-0.034938-0.33330.369841
5-0.170885-1.63010.053265
6-0.077277-0.73720.231455
70.3966723.7840.000138
8-0.1656-1.57970.05882
9-0.00861-0.08210.467359
100.0649210.61930.268632
11-0.08218-0.7840.217552
12-0.11215-1.06980.143759
13-0.083774-0.79920.213141
140.3684833.51510.000344
15-0.122316-1.16680.123165
160.0069830.06660.473517
17-0.054171-0.51680.303291
18-0.029212-0.27870.390566
19-0.002245-0.02140.491481
20-0.161321-1.53890.063649
210.4291094.09344.6e-05
22-0.176345-1.68220.047977
230.0159930.15260.439542
24-0.192133-1.83280.035049
250.0971790.9270.178182
26-0.095801-0.91390.181598
27-0.034746-0.33150.370533
280.3151883.00670.001707
29-0.076128-0.72620.234785
30-0.006414-0.06120.475672
31-0.088753-0.84670.199705
32-0.042919-0.40940.341598
33-0.040891-0.39010.348695
34-0.131351-1.2530.106707
350.3118612.9750.001876
36-0.006303-0.06010.476092
370.0017180.01640.49348
38-0.055389-0.52840.299261
39-0.013394-0.12780.449305
40-0.038049-0.3630.358736
41-0.150781-1.43840.076881
420.2447212.33450.010885
430.0182290.17390.431167
44-0.020067-0.19140.424311
45-0.154072-1.46970.072539
460.1439091.37280.086593
47-0.087903-0.83850.201962
48-0.064215-0.61260.270843
490.1882441.79570.037928
50-0.024802-0.23660.406751
51-0.067181-0.64090.26161
52-0.038341-0.36580.357699
530.0618740.59020.278245
54-0.100566-0.95930.169964
55-0.068101-0.64960.258781
560.1900111.81260.036596
57-0.036495-0.34810.364268
58-0.017768-0.16950.43289
590.0262240.25020.401515
60-0.028699-0.27380.39244


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.279575-2.6670.004529
2-0.158776-1.51460.066667
3-0.141858-1.35320.089666
4-0.124578-1.18840.118884
5-0.282745-2.69720.004166
6-0.332543-3.17230.001031
70.2040771.94680.027323
8-0.076742-0.73210.233002
9-0.100913-0.96260.169138
100.0217650.20760.417993
11-0.103295-0.98540.163528
12-0.094599-0.90240.184608
13-0.20086-1.91610.029247
140.1374431.31110.096558
150.0686850.65520.256992
16-0.010046-0.09580.461933
17-0.148068-1.41250.08061
18-0.070537-0.67290.251365
190.118271.12820.131095
20-0.157725-1.50460.067945
210.2326462.21930.014476
220.0390630.37260.355142
230.0251530.23990.405457
24-0.260071-2.48090.007471
25-0.015531-0.14820.441273
26-0.00621-0.05920.476445
270.0435140.41510.339525
280.0196060.1870.426025
290.002320.02210.491194
300.0591880.56460.286863
31-0.028806-0.27480.392048
32-0.117873-1.12440.131892
330.0353610.33730.368327
34-0.063719-0.60780.272402
35-0.07749-0.73920.230842
360.0631320.60220.274255
37-0.02068-0.19730.422028
380.1209961.15420.125714
390.0064980.0620.475354
400.0217480.20750.418058
41-0.016066-0.15330.439265
42-0.035551-0.33910.367646
430.135531.29290.099664
44-0.016768-0.160.436636
45-0.051457-0.49090.312352
460.0544880.51980.302239
470.0366590.34970.363685
480.0563550.53760.296084
490.0323670.30880.379105
50-0.037859-0.36110.359412
51-0.008763-0.08360.46678
520.0175280.16720.433789
530.0192380.18350.427399
54-0.071397-0.68110.248773
550.0036460.03480.486167
56-0.118179-1.12740.131278
57-0.154736-1.47610.071686
58-0.087301-0.83280.203569
590.1270851.21230.114265
600.0023830.02270.490959
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2011/May/20/t1305846527j15awg311dg26yo/191xi1305846769.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/20/t1305846527j15awg311dg26yo/191xi1305846769.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/May/20/t1305846527j15awg311dg26yo/26l7q1305846769.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/20/t1305846527j15awg311dg26yo/26l7q1305846769.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/May/20/t1305846527j15awg311dg26yo/3beyt1305846769.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/20/t1305846527j15awg311dg26yo/3beyt1305846769.ps (open in new window)


 
Parameters (Session):
par1 = 60 ; par2 = 1 ; par3 = 0 ; 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 (par8 != '') par8 <- as.numeric(par8)
ox <- x
if (par8 == '') {
if (par2 == 0) {
x <- log(x)
} else {
x <- (x ^ par2 - 1) / par2
}
} else {
x <- log(x,base=par8)
}
if (par3 > 0) x <- diff(x,lag=1,difference=par3)
if (par4 > 0) x <- diff(x,lag=par5,difference=par4)
bitmap(file='picts.png')
op <- par(mfrow=c(2,1))
plot(ox,type='l',main='Original Time Series',xlab='time',ylab='value')
if (par8=='') {
mytitle <- paste('Working Time Series (lambda=',par2,', d=',par3,', D=',par4,')',sep='')
mysub <- paste('(lambda=',par2,', d=',par3,', D=',par4,', CI=', par7, ', CI type=',par6,')',sep='')
} else {
mytitle <- paste('Working Time Series (base=',par8,', d=',par3,', D=',par4,')',sep='')
mysub <- paste('(base=',par8,', d=',par3,', D=',par4,', CI=', par7, ', CI type=',par6,')',sep='')
}
plot(x,type='l', main=mytitle,xlab='time',ylab='value')
par(op)
dev.off()
bitmap(file='pic1.png')
racf <- acf(x, par1, main='Autocorrelation', xlab='time lag', ylab='ACF', ci.type=par6, ci=par7, sub=mysub)
dev.off()
bitmap(file='pic2.png')
rpacf <- pacf(x,par1,main='Partial Autocorrelation',xlab='lags',ylab='PACF',sub=mysub)
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