Home » date » 2010 » Apr » 29 »

6.2.1 bis

*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, 29 Apr 2010 16:03:54 +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/29/t1272557096amqxchb4jbkwafs.htm/, Retrieved Thu, 29 Apr 2010 18:04:58 +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/29/t1272557096amqxchb4jbkwafs.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 «
81.28 69.39 67.63 51.25 103.97 133.83 162.37 172.91 163.01 151.50 111.73 88.58 74.29 63.98 61.18 76.48 107.98 124.97 145.57 140.20 143.84 138.80 104.06 74.70 60.18 55.16 35.62 56.18 85.44 114.08 133.64 67.14 95.58 89.37 75.24 69.18 54.49 57.50 62.16 76.67 110.04 127.38 156.47 167.56 153.54 124.08 100.97 79.17 68.13 61.77 54.31 60.30 84.18 104.05 114.66 105.55 96.61 70.94 63.91 58.61 44.53 49.58 57.39 76.76 104.57 125.41 143.11 136.35 135.15 131.70 96.87 70.63 66.29 63.49 62.97 66.43 101.49 127.69 133.21 158.72 148.61 134.31 100.99 75.16 59.74 52.87 52.07 57.38 79.43 101.40 120.19 134.38 135.97 113.83 84.38 70.28 65.96 56.36 49.57 68.33 90.32 117.06 134.69 131.67 129.25 118.77 88.44 76.79 75.28 73.89 76.24 88.58 105.83 115.84 127.76 131.75 119.63 93.38 75.55 51.79
 
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.8247489.03470
20.4918525.3880
30.0747450.81880.207264
4-0.325659-3.56740.00026
5-0.602151-6.59620
6-0.719135-7.87770
7-0.615901-6.74690
8-0.355482-3.89418.1e-05
9-0.015498-0.16980.432739
100.3209823.51620.000309
110.5588336.12170
120.6359386.96640
130.5128395.61790
140.2415022.64550.004624
15-0.102824-1.12640.131127
16-0.418668-4.58636e-06
17-0.640606-7.01750
18-0.694114-7.60360
19-0.563064-6.16810
20-0.302194-3.31040.000615
210.0198020.21690.414318
220.3203613.50940.000317
230.5432475.9510
240.6050896.62840
250.4949195.42160
260.2622732.87310.002404
27-0.035782-0.3920.347886
28-0.287918-3.1540.001018
29-0.467703-5.12341e-06
30-0.512914-5.61870
31-0.409844-4.48968e-06
32-0.203353-2.22760.013885
330.0681890.7470.228271
340.3305593.62110.000215
350.514335.63420
360.5714566.260
370.466085.10571e-06
380.2440862.67380.004272
39-0.023892-0.26170.396994
40-0.282968-3.09980.001207
41-0.455879-4.99391e-06
42-0.508307-5.56820
43-0.426095-4.66764e-06
44-0.246618-2.70160.00395
45-0.035664-0.39070.348363
460.1797121.96860.02565
470.3401993.72670.000149
480.3830134.19572.6e-05
490.3082593.37680.000494
500.1341581.46960.07214
51-0.070221-0.76920.221634
52-0.263152-2.88270.002337
53-0.398314-4.36331.4e-05
54-0.422562-4.62895e-06
55-0.337662-3.69890.000164
56-0.165121-1.80880.036492
570.0410740.44990.326783
580.2359732.5850.005468
590.3771854.13193.3e-05
600.4196264.59685e-06


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.8247489.03470
2-0.589006-6.45220
3-0.402497-4.40911.1e-05
4-0.249567-2.73390.003604
5-0.045726-0.50090.308678
6-0.111415-1.22050.112336
70.2220472.43240.008238
80.0665320.72880.233767
90.0507370.55580.289692
100.0787550.86270.195006
110.0524840.57490.283208
12-0.068978-0.75560.225679
13-0.183662-2.01190.023234
14-0.099343-1.08820.139333
15-0.113286-1.2410.108516
16-0.026046-0.28530.387944
17-0.156245-1.71160.044779
180.0118770.13010.448349
190.0003710.00410.498381
20-0.062144-0.68080.248669
21-0.071915-0.78780.216186
220.017450.19120.424363
230.1041141.14050.128173
24-0.082943-0.90860.182693
25-0.033864-0.3710.355661
260.0266610.29210.385373
27-0.027462-0.30080.382034
280.1309191.43410.077065
29-0.078966-0.8650.194374
30-0.050877-0.55730.28917
31-0.026926-0.2950.384266
32-0.021446-0.23490.407334
330.0467480.51210.30476
340.1360931.49080.069316
350.0077620.0850.466191
360.0501670.54960.291822
37-0.066348-0.72680.234379
38-0.01364-0.14940.440737
390.0633520.6940.244516
40-0.030265-0.33150.370408
410.0464750.50910.305807
42-0.039359-0.43120.333565
430.0120670.13220.447529
44-0.110407-1.20940.114435
45-0.115009-1.25990.105082
460.0193250.21170.416353
470.0226420.2480.402266
48-0.138715-1.51950.065628
49-0.018758-0.20550.418772
50-0.025139-0.27540.391747
510.0181970.19930.421168
52-0.040337-0.44190.329688
53-0.048705-0.53350.297324
54-0.010051-0.11010.456254
550.0046760.05120.479617
560.0001020.00110.499556
57-0.027277-0.29880.382804
580.0044550.04880.480579
59-0.021612-0.23670.406627
600.0207140.22690.41044
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Apr/29/t1272557096amqxchb4jbkwafs/10o161272557031.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Apr/29/t1272557096amqxchb4jbkwafs/10o161272557031.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Apr/29/t1272557096amqxchb4jbkwafs/20o161272557031.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Apr/29/t1272557096amqxchb4jbkwafs/20o161272557031.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 = 0 ; 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