Home » date » 2009 » Dec » 02 »

*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: Wed, 02 Dec 2009 09:06:40 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2009/Dec/02/t1259770036ucxjeax6n686h7k.htm/, Retrieved Wed, 02 Dec 2009 17:07:18 +0100
 
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/Dec/02/t1259770036ucxjeax6n686h7k.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 «
1111.92 1131.13 1144.94 1113.89 1107.30 1120.68 1140.84 1101.72 1104.24 1114.58 1130.20 1173.78 1211.92 1181.27 1203.60 1180.59 1156.85 1191.50 1191.33 1234.18 1220.33 1228.81 1207.01 1249.48 1248.29 1280.08 1280.66 1302.88 1310.61 1270.05 1270.06 1278.53 1303.80 1335.83 1377.76 1400.63 1418.03 1437.90 1406.80 1420.83 1482.37 1530.63 1504.66 1455.18 1473.96 1527.29 1545.79 1479.63 1467.97 1378.60 1330.45 1326.41 1385.97 1399.62 1276.69 1269.42 1287.83 1164.17 968.67 888.61
 
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
1-0.248033-1.8890.03195
2-0.345733-2.6330.005415
3-0.046834-0.35670.361314
40.2668492.03230.023358
5-0.077447-0.58980.278802
6-0.147386-1.12250.133146
70.115780.88180.190776
80.0365840.27860.390764
9-0.016145-0.1230.451283
10-0.180473-1.37440.087296
110.2818512.14650.018013
12-0.056433-0.42980.334475
13-0.085816-0.65360.25799
14-0.059273-0.45140.326688
150.0953150.72590.235411
160.0813730.61970.268935
17-0.110905-0.84460.200894
18-0.039457-0.30050.382438
190.0340470.25930.398164
200.0325860.24820.40244
21-0.012068-0.09190.463543
220.0322920.24590.403304
230.034330.26140.397336
24-0.160004-1.21860.113974
250.1305330.99410.162149
26-0.078477-0.59770.276197
27-0.006744-0.05140.479608
280.0189110.1440.442992
290.1102980.840.202178
30-0.085283-0.64950.259291
31-0.018225-0.13880.445047
32-0.00365-0.02780.488959
33-0.035965-0.27390.392566
340.1043330.79460.21505
35-0.086643-0.65990.25598
360.11020.83930.202385


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.248033-1.8890.03195
2-0.43395-3.30490.000816
3-0.364204-2.77370.003721
4-0.064113-0.48830.313599
5-0.175413-1.33590.093399
6-0.208587-1.58860.058799
7-0.047034-0.35820.360746
8-0.114142-0.86930.194139
9-0.018628-0.14190.443837
10-0.229275-1.74610.043043
110.1447421.10230.137438
12-0.011328-0.08630.465774
130.0536590.40870.342148
140.0295420.2250.41139
15-0.021532-0.1640.435157
160.1311110.99850.161089
170.0552450.42070.337753
180.0016860.01280.494898
190.0213370.16250.43574
20-0.100146-0.76270.224369
210.0621710.47350.318824
22-0.011131-0.08480.466368
230.1169250.89050.188444
24-0.137516-1.04730.149655
250.132691.01050.158218
26-0.140844-1.07260.143939
27-0.144795-1.10270.137351
28-0.070108-0.53390.297717
290.0115410.08790.465132
30-0.055508-0.42270.337027
310.085150.64850.259615
32-0.12322-0.93840.17596
33-0.087287-0.66480.254419
34-0.041232-0.3140.377318
350.0004810.00370.498546
360.0574730.43770.331616
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/02/t1259770036ucxjeax6n686h7k/1rh1t1259769999.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/02/t1259770036ucxjeax6n686h7k/1rh1t1259769999.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/02/t1259770036ucxjeax6n686h7k/223nr1259769999.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/02/t1259770036ucxjeax6n686h7k/223nr1259769999.ps (open in new window)


 
Parameters (Session):
par1 = 36 ; par2 = 1 ; par3 = 2 ; par4 = 0 ; par5 = 12 ; par6 = MA ; par7 = 0.95 ;
 
Parameters (R input):
par1 = 36 ; par2 = 1 ; par3 = 2 ; par4 = 0 ; par5 = 12 ; par6 = MA ; 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