Home » date » 2009 » May » 14 »

Autocorrelation 6b bis - Kelly Michielsen - MAR 201b

*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, 14 May 2009 05:45:44 -0600
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2009/May/14/t1242301590prpfa4aihh5gv1t.htm/, Retrieved Thu, 14 May 2009 13:46:32 +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/2009/May/14/t1242301590prpfa4aihh5gv1t.htm/},
    year = {2009},
}
@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 = {2009},
    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:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
104.9 110.9 104.8 94.1 95.8 99.3 101.1 104.0 99.0 105.4 107.1 110.7 117.1 118.7 126.5 127.5 134.6 131.8 135.9 142.7 141.7 153.4 145.0 137.7 148.3 152.2 169.4 168.6 161.1 174.1 179.0 190.6 190.0 181.6 174.8 180.5 196.8 193.8 197.0 216.3 221.4 217.9 229.7 227.4 204.2 196.6 198.8 207.5 190.7 201.6 210.5 223.5 223.8 231.2 244.0 234.7 250.2 265.7 287.6 283.3 295.4 312.3 333.8 347.7 383.2 407.1 413.6 362.7 321.9 239.4 191.0 159.7 166.7
 
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'George Udny Yule' @ 72.249.76.132


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.8329846.50580
20.5709934.45961.8e-05
30.2808322.19340.016051
40.0347090.27110.393621
5-0.127918-0.99910.160853
6-0.215637-1.68420.048629
7-0.24307-1.89840.031186
8-0.256487-2.00320.024801
9-0.268654-2.09830.020016
10-0.282034-2.20280.0157
11-0.28828-2.25150.013982
12-0.297646-2.32470.011717
13-0.264834-2.06840.021424
14-0.216516-1.6910.047966
15-0.135344-1.05710.147323
16-0.073083-0.57080.285116
17-0.02491-0.19460.423194
18-0.003987-0.03110.487629
190.0215660.16840.433398
200.051950.40570.343175
210.0722870.56460.287215
220.0797790.62310.267772
230.0863840.67470.251214
240.0940610.73460.232686
250.0845340.66020.255796
260.0827380.64620.260286
270.0560610.43790.33152
280.0199120.15550.438464
29-0.01406-0.10980.456458
30-0.024608-0.19220.424113
31-0.012125-0.09470.462432
32-0.010293-0.08040.468094
330.0038370.030.488096
340.0112550.08790.465121
350.0084580.06610.473774
360.0155990.12180.451716
370.0169630.13250.447518
380.0114420.08940.464543
39-0.004041-0.03160.487463
40-0.019641-0.15340.439296
41-0.01283-0.10020.460254
42-0.005699-0.04450.48232
43-0.007163-0.05590.477784
44-0.007641-0.05970.476305
45-0.016618-0.12980.448578
46-0.010668-0.08330.466934
47-0.009665-0.07550.470038
48-0.025431-0.19860.42161


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.8329846.50580
2-0.401351-3.13470.001323
3-0.200023-1.56220.061704
4-0.032845-0.25650.399203
50.0180920.14130.444049
6-0.046002-0.35930.36031
7-0.038762-0.30270.381558
8-0.133501-1.04270.150607
9-0.091452-0.71430.238895
10-0.071404-0.55770.28955
11-0.056016-0.43750.331646
12-0.136815-1.06860.144739
130.053170.41530.339699
14-0.088384-0.69030.246311
150.0358150.27970.390317
16-0.145325-1.1350.130402
17-0.028023-0.21890.413742
18-0.093735-0.73210.233456
190.0705740.55120.291756
20-0.034794-0.27170.393366
21-0.067255-0.52530.300647
22-0.08924-0.6970.24423
230.0414770.32390.373543
24-0.021387-0.1670.433947
25-0.050576-0.3950.347106
260.0027220.02130.491554
27-0.089219-0.69680.244281
28-0.066068-0.5160.303857
290.0198120.15470.43877
30-0.000432-0.00340.498659
310.0217620.170.4328
32-0.118851-0.92830.178467
330.0772150.60310.274349
34-0.057117-0.44610.328554
35-0.016613-0.12980.448594
360.0396490.30970.378933
37-0.032076-0.25050.401514
38-0.025126-0.19620.422536
39-0.048941-0.38220.351805
40-0.003603-0.02810.488821
410.0516940.40370.343908
42-0.025909-0.20240.420157
43-0.04386-0.34260.366555
44-0.001538-0.0120.495226
45-0.008674-0.06770.473105
460.0307980.24050.405358
47-0.041946-0.32760.372164
48-0.082975-0.64810.259692
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/May/14/t1242301590prpfa4aihh5gv1t/1ewvg1242301542.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/May/14/t1242301590prpfa4aihh5gv1t/1ewvg1242301542.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/May/14/t1242301590prpfa4aihh5gv1t/2blzm1242301542.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/May/14/t1242301590prpfa4aihh5gv1t/2blzm1242301542.ps (open in new window)


 
Parameters (Session):
par1 = 48 ; par2 = 1 ; par3 = 0 ; par4 = 1 ; par5 = 12 ;
 
Parameters (R input):
par1 = 48 ; par2 = 1 ; par3 = 0 ; par4 = 1 ; par5 = 12 ;
 
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 (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='lags',ylab='ACF')
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