Home » date » 2007 » Dec » 18 » attachments

R Software Module: rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Tue, 18 Dec 2007 13:12:52 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2007/Dec/18/t11980077898cxa8ps2ypmr4jy.htm/, Retrieved Tue, 18 Dec 2007 20:56:32 +0100
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
359 304,6 297,7 303,3 304,7 331,3 318,8 306,8 331,1 284,1 259,7 335,8 338,5 310,3 322,1 289,3 300,8 360,6 327,3 304,1 362 287,8 286,1 358,2 346 329,9 334,3 303,7 307,6 351,7 324,6 311,9 361,5 271,1 286,5 352,8 322,4 335 322,2 313,6 323,3 379,1 315,6 353,6 371,7 282,9 298,8 361,8 365,9 357,6 335,4 340,1 337,8 389,6 342,5 354,6 391,6 317,7 312,8 356,2
 
Text written by user:
 
Output produced by software:


Summary of compuational 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
017.7460
10.1015240.78640.217363
2-0.148973-1.15390.87345
30.3166612.45280.008549
4-0.051829-0.40150.655249
50.1075230.83290.204111
60.5037973.90240.000122
70.0398780.30890.379237
8-0.008888-0.06880.52733
90.1869241.44790.076424
10-0.328641-2.54560.993252
110.0079790.06180.475461
120.6194364.79816e-06
13-0.072816-0.5640.712582
14-0.177574-1.37550.912952
150.1123020.86990.193915
16-0.200563-1.55360.937225
170.0003540.00270.498912
180.275082.13080.018608
19-0.082929-0.64240.738459
20-0.048401-0.37490.645476
210.043660.33820.3682
22-0.348033-2.69590.995452
230.0238440.18470.427045
240.3854132.98540.002047
25-0.105794-0.81950.79212
26-0.092736-0.71830.762328
270.0659260.51070.305731
28-0.178634-1.38370.914211
290.0203140.15740.437747
300.1580161.2240.112872
31-0.063971-0.49550.688979
320.009160.0710.471835
33-0.042893-0.33220.629569
34-0.283322-2.19460.983963
35-0.006752-0.05230.520768


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
00.1015240.78640.217363
1-0.160939-1.24660.891311
20.3636282.81670.00328
3-0.209137-1.620.944758
40.3494232.70660.004419
50.3059962.37020.010504
60.0658020.50970.306065
70.0690710.5350.297306
8-0.048163-0.37310.644795
9-0.471855-3.6550.999729
100.0241680.18720.426065
110.4169473.22970.001006
12-0.093381-0.72330.763854
13-0.092339-0.71530.761387
14-0.133265-1.03230.846954
150.1152440.89270.187798
16-0.051719-0.40060.654938
17-0.083349-0.64560.739507
18-0.028389-0.21990.586653
19-0.062333-0.48280.684514
200.0025710.01990.492087
210.080330.62220.268072
220.138681.07420.143515
23-0.03806-0.29480.615423
240.0203350.15750.437684
250.0474890.36790.357139
260.0646750.5010.309112
27-0.049133-0.38060.64757
28-0.084525-0.65470.742427
29-0.158221-1.22560.887426
300.0044170.03420.486411
31-0.016626-0.12880.551019
32-0.056293-0.4360.667815
33-0.001637-0.01270.505039
34-0.145486-1.12690.867871
350.0062470.04840.480782
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/18/t11980077898cxa8ps2ypmr4jy/16mzp1198008770.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/18/t11980077898cxa8ps2ypmr4jy/16mzp1198008770.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/18/t11980077898cxa8ps2ypmr4jy/22az91198008770.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/18/t11980077898cxa8ps2ypmr4jy/22az91198008770.ps (open in new window)


 
Parameters (Session):
par1 = 1 ; par2 = Do not include Seasonal Dummies ; par3 = No Linear Trend ;
 
Parameters (R input):
par1 = 36 ; 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 1:par1) {
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(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-1,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(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:

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