Home » date » 2008 » Dec » 08 »

Workshop 8

*The author of this computation has been verified*
R Software Module: rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Mon, 08 Dec 2008 10:16:45 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2008/Dec/08/t1228756670197iq8yiasi5n8z.htm/, Retrieved Mon, 08 Dec 2008 17:17:53 +0000
 
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/2008/Dec/08/t1228756670197iq8yiasi5n8z.htm/},
    year = {2008},
}
@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 = {2008},
    note = {{ISBN} 3-900051-07-0},
    url = {http://www.R-project.org},
}
 
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
 
Feedback Forum:
2008-11-27 13:41:43 [a2386b643d711541400692649981f2dc] [reply
test

Post a new message
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
103.68 103.64 103.37 104.3 104.15 104.09 104.21 104.27 104 103.36 104.2 104.12 103.79 104.65 103.84 103.98 103.83 104.34 103.76 103.57 103.06 103.06 102.6 103.41 103.15 103.33 103.96 104.91 104.23 103.68 104.16 104.49 104.23 104.21 103.74 103.96 104.02 104.15 103.74 103.23 103.69 103.46 102.14 102.39 102.19 102.02 102.64 103.52 103.32 103.65 104.25 101.74 102.08 101.35 102.79 102.21 101.78 101.25 101.8 103 104.17 104.08 105.24 104.72 104.77 104.39 104.14 105.15 105.07 104.54 106.03 107.24 108.2 109.15 110.1 109.48 109.96 110.13 110.53 110.82 110.06 110.05 109.49 109.95
 
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
1-0.087326-0.79560.214275
20.0807750.73590.231935
3-0.029519-0.26890.394327
40.0446410.40670.342638
5-0.067774-0.61740.269314
60.0486710.44340.329309
7-0.049386-0.44990.326969
8-0.074345-0.67730.250045
9-0.077441-0.70550.24123
100.1472121.34120.091762
11-0.08229-0.74970.227779
120.1347781.22790.11148
130.1753951.59790.05693
140.1500041.36660.087721
15-0.098202-0.89470.186778
16-0.0716-0.65230.258001
170.0293890.26770.39478
18-0.053823-0.49030.312591
19-0.076271-0.69490.244543
20-0.020523-0.1870.42607
21-0.141886-1.29260.099861
22-0.046892-0.42720.335168
230.0675860.61570.269877
240.1827781.66520.049823
25-0.098881-0.90080.185138
26-0.121255-1.10470.136244
270.1666841.51860.066336
28-0.164875-1.50210.068436
290.0199110.18140.42825
30-0.049138-0.44770.327779
310.0404710.36870.356641
32-0.116908-1.06510.144963
330.0944770.86070.195934
34-0.067025-0.61060.271558
35-0.003178-0.0290.488484
36-0.023839-0.21720.414298
370.1634331.48890.070146
38-0.166759-1.51920.06625
39-0.009085-0.08280.467116
40-0.041915-0.38190.35177
41-0.004758-0.04330.482766
42-0.059824-0.5450.293598
430.0434880.39620.34649
440.0600610.54720.292861
45-0.049816-0.45380.325562
460.0133970.12210.451577
470.1148061.04590.149314
48-0.079468-0.7240.235554
490.0536330.48860.3132
50-0.064442-0.58710.279368
510.0154610.14090.444161
52-0.063627-0.57970.281855
53-0.067347-0.61360.27059
54-0.028383-0.25860.3983
55-0.023664-0.21560.414918
56-0.031817-0.28990.386322
570.0489520.4460.32839
58-0.058949-0.53710.296335
59-0.022597-0.20590.418698
600.0238520.21730.414255


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.087326-0.79560.214275
20.0737110.67150.251871
3-0.016766-0.15270.439484
40.0354530.3230.373758
5-0.058817-0.53590.296747
60.0330540.30110.382032
7-0.033059-0.30120.382016
8-0.091849-0.83680.202557
9-0.080573-0.73410.232491
100.1434661.3070.097405
11-0.046622-0.42470.336061
120.1065090.97030.167348
130.2177881.98410.025272
140.1660831.51310.067028
15-0.085459-0.77860.219223
16-0.162668-1.4820.071067
170.0266160.24250.404503
18-0.026603-0.24240.404548
19-0.093633-0.8530.198046
20-0.036397-0.33160.370516
21-0.051915-0.4730.318739
22-0.041687-0.37980.352536
230.0316880.28870.386769
240.1778061.61990.054525
25-0.083002-0.75620.225841
26-0.305061-2.77920.003369
270.0878470.80030.212904
28-0.071084-0.64760.259513
290.0164660.150.440559
30-0.040125-0.36560.357813
310.1165391.06170.14572
320.0128120.11670.453681
330.0908860.8280.20502
34-0.039283-0.35790.36067
350.0249810.22760.410262
36-0.114437-1.04260.150088
37-0.052197-0.47550.317827
38-0.06232-0.56780.285864
390.0488110.44470.328851
400.0322340.29370.384872
41-0.09583-0.87310.192577
420.0393490.35850.360446
430.0495540.45150.32642
440.0961740.87620.191729
45-0.09194-0.83760.202327
46-0.04945-0.45050.326758
47-0.00014-0.00130.499493
48-0.059097-0.53840.29587
490.0772060.70340.241892
500.0054280.04950.480338
51-0.049938-0.4550.325164
520.0631970.57580.283169
53-0.069188-0.63030.265105
54-0.089548-0.81580.20847
550.0071950.06560.473946
56-0.129769-1.18230.12024
57-0.072648-0.66190.25495
58-0.0491-0.44730.327903
590.0167840.15290.439419
60-0.012941-0.11790.453218
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/08/t1228756670197iq8yiasi5n8z/14ho11228756603.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/08/t1228756670197iq8yiasi5n8z/14ho11228756603.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/08/t1228756670197iq8yiasi5n8z/2d0ua1228756603.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/08/t1228756670197iq8yiasi5n8z/2d0ua1228756603.ps (open in new window)


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