Home » date » 2008 » Dec » 11 »

autocorrelation

*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: Thu, 11 Dec 2008 09:35:54 -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/11/t1229013393htnqzepab2v3q0o.htm/, Retrieved Thu, 11 Dec 2008 16:36:36 +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/11/t1229013393htnqzepab2v3q0o.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:

Post a new message
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
1375.06 1334.38 1335.61 1307.24 1183.2 1187.79 1270.81 1238.67 1204.45 1178.5 1044.64 1076.59 1129.68 1144.93 1140.21 1100.29 1153.79 1114.2 1079.27 1014.05 903.69 912.55 867.81 854.54 911.17 899.26 895.87 837.61 846.62 890.19 935.96 988 992.55 989.53 1019.44 1038.73 1049.9 1080.64 1132.52 1143.37 1123.98 1133.07 1102.78 1132.76 1105.85 1088.93 1117.66 1118.07 1168.94 1199.21 1181.4 1199.63 1194.9 1164.42 1178.28 1202.25 1222.24 1224.27 1225.91 1191.96 1237.37 1262.07 1278.72 1276.65 1293.83 1302.18 1290 1253.12 1260.24 1287.15 1317.81 1363.38 1388.63 1416.42 1424.16 1444.65 1406.95 1463.65 1511.14 1514.49 1520.98 1454.62 1497.12 1539.66 1463.39 1479.23 1378.76 1354.87 1316.94 1370.47 1403.22 1341.25 1257.33 1281.47 1216.93 969.13 883.04
 
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.9394319.25230
20.8727588.59570
30.8321488.19570
40.7915617.7960
50.7552257.43810
60.7180247.07170
70.6806426.70350
80.6351856.25590
90.579195.70440
100.5243315.16411e-06
110.4709614.63845e-06
120.4238674.17463.3e-05
130.3731053.67470.000195
140.3318623.26850.000748
150.2877872.83440.002794
160.2414392.37790.009686
170.2007971.97760.025405
180.1612771.58840.057726
190.1240591.22180.112364
200.0839350.82670.205227
210.0501010.49340.311411
220.0287020.28270.389013
230.0082930.08170.467535
24-0.011315-0.11140.455748
25-0.031925-0.31440.376937
26-0.054315-0.53490.296957
27-0.075006-0.73870.230928
28-0.092564-0.91160.182107
29-0.109709-1.08050.141298
30-0.128031-1.2610.105173
31-0.141148-1.39010.083834
32-0.153093-1.50780.067429
33-0.168626-1.66080.049994
34-0.181944-1.79190.03813
35-0.194822-1.91880.028976
36-0.20634-2.03220.022433
37-0.220675-2.17340.016093
38-0.241241-2.3760.009734
39-0.254947-2.51090.006847
40-0.268674-2.64610.00475
41-0.281615-2.77360.003325
42-0.296711-2.92230.002162
43-0.316124-3.11350.001215
44-0.337822-3.32720.00062
45-0.353304-3.47960.000377
46-0.363994-3.58490.000265
47-0.37454-3.68880.000186
48-0.377368-3.71660.000169
49-0.384833-3.79020.000131
50-0.400286-3.94247.6e-05
51-0.409837-4.03645.4e-05
52-0.419515-4.13173.8e-05
53-0.422151-4.15773.5e-05
54-0.416715-4.10424.2e-05
55-0.413761-4.07514.7e-05
56-0.405229-3.9916.4e-05
57-0.393549-3.8769.7e-05
58-0.370607-3.65010.000212
59-0.342483-3.37310.000535
60-0.319294-3.14470.001104


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.9394319.25230
2-0.083191-0.81930.207302
30.1902691.87390.031975
4-0.049365-0.48620.313966
50.064980.640.261847
6-0.044109-0.43440.332474
70.0070190.06910.472513
8-0.105219-1.03630.151323
9-0.10055-0.99030.162244
10-0.049408-0.48660.313816
11-0.056871-0.56010.288346
120.0136320.13430.446737
13-0.08672-0.85410.197579
140.0840610.82790.204878
15-0.094461-0.93030.177253
160.0233260.22970.409393
17-0.013706-0.1350.44645
18-0.002307-0.02270.490961
19-0.013312-0.13110.447982
20-0.060544-0.59630.276184
210.0387220.38140.351883
220.0382760.3770.353509
230.017290.17030.432569
24-0.005355-0.05270.479025
25-0.011656-0.11480.45442
26-0.048185-0.47460.318079
270.0011970.01180.49531
28-0.017516-0.17250.431696
29-0.041412-0.40790.342137
30-0.039924-0.39320.347514
310.0037260.03670.4854
32-0.015928-0.15690.437837
33-0.042179-0.41540.339379
340.0070790.06970.472282
35-0.026789-0.26380.396231
36-0.007637-0.07520.4701
37-0.053972-0.53160.298121
38-0.067159-0.66140.254949
390.0200890.19790.421788
40-0.056878-0.56020.288323
410.0078540.07740.46925
42-0.067294-0.66280.254524
43-0.041226-0.4060.342806
44-0.06568-0.64690.259621
450.0350430.34510.365372
46-0.025678-0.25290.40044
47-0.009622-0.09480.462349
480.0506150.49850.309632
49-0.080638-0.79420.21451
50-0.041322-0.4070.342462
51-0.016331-0.16080.436276
52-0.023557-0.2320.408509
530.0097560.09610.461827
540.0281420.27720.391121
55-0.04196-0.41330.340164
560.05140.50620.306921
570.0081450.08020.468112
580.1205621.18740.118986
590.0261660.25770.398591
60-0.014771-0.14550.442318
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/11/t1229013393htnqzepab2v3q0o/1rihw1229013353.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/11/t1229013393htnqzepab2v3q0o/1rihw1229013353.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/11/t1229013393htnqzepab2v3q0o/2uynn1229013353.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/11/t1229013393htnqzepab2v3q0o/2uynn1229013353.ps (open in new window)


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