Home » date » 2007 » Nov » 28 » attachments

partial autocorrelatio,

R Software Module: rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Wed, 28 Nov 2007 11:50:30 -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/Nov/28/t1196275210mimpxqzygnn9lrq.htm/, Retrieved Wed, 28 Nov 2007 19:40:10 +0100
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
0.3 2.1 2.5 2.3 2.4 3 1.7 3.5 4 3.7 3.7 3 2.7 2.5 2.2 2.9 3.1 3 2.8 2.5 1.9 1.9 1.8 2 2.6 2.5 2.5 1.6 1.4 0.8 1.1 1.3 1.2 1.3 1.1 1.3 1.2 1.6 1.7 1.5 0.9 1.5 1.4 1.6 1.7 1.4 1.8 1.7 1.4 1.2 1 1.7 2.4 2 2.1 2 1.8 2.7 2.3 1.9 2 2.3 2.8 2.4 2.3 2.7 2.7 2.9 3 2.2 2.3 2.8
 
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 time3 seconds
R Server'Herman Ole Andreas Wold' @ 193.190.124.10:1001


Autocorrelation Function
Time lag kACF(k)T-STATP-value
018.48530
10.7223316.12920
20.5857634.97042e-06
30.5131334.35412.2e-05
40.4137313.51060.000388
50.4187883.55350.000338
60.4577153.88380.000113
70.3443322.92180.002323
80.3233842.7440.003828
90.2713312.30230.012106
100.190741.61850.054966
110.1280011.08610.140524
120.0189270.16060.436428
130.0367480.31180.378042
140.049720.42190.337182
15-0.02521-0.21390.584389
16-0.055801-0.47350.68135
17-0.138126-1.1720.877477
18-0.19268-1.63490.946787
19-0.204676-1.73670.956645
20-0.229669-1.94880.972392
21-0.265826-2.25560.986433
22-0.307819-2.61190.994525
23-0.339369-2.87960.99738
24-0.394118-3.34420.999344
25-0.402784-3.41770.999479
26-0.377565-3.20370.998989
27-0.312331-2.65020.995058
28-0.284019-2.410.990745
29-0.252384-2.14150.982193
30-0.273969-2.32470.988544
31-0.310091-2.63120.9948
32-0.321485-2.72790.995999
33-0.298502-2.53290.993254
34-0.250307-2.12390.981444
35-0.252802-2.14510.98234
36-0.19083-1.61930.945117
37-0.210388-1.78520.96078
38-0.212628-1.80420.96231
39-0.172586-1.46440.926286
40-0.14094-1.19590.882174
41-0.126092-1.06990.855887
42-0.071259-0.60460.726343
43-0.044691-0.37920.647178
440.003250.02760.489039
450.0249380.21160.416507
460.0104260.08850.464876
470.0595950.50570.307314


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
00.7223316.12920
10.1338261.13560.129955
20.1064050.90290.1848
3-0.035027-0.29720.61642
40.1703161.44520.076373
50.171351.4540.075152
6-0.186868-1.58560.941397
70.0604490.51290.304787
8-0.046516-0.39470.652884
9-0.052741-0.44750.672079
10-0.129558-1.09930.862359
11-0.203268-1.72480.955572
120.2104331.78560.039189
13-0.014938-0.12670.550254
14-0.158771-1.34720.908932
15-0.034866-0.29580.615901
16-0.090916-0.77150.778518
170.074170.62940.265554
18-0.171355-1.4540.924853
19-0.021556-0.18290.572307
200.0047720.04050.483906
21-0.159092-1.34990.909368
220.0007340.00620.497523
23-0.244126-2.07150.979051
240.1390271.17970.121005
250.066580.5650.286931
260.0303290.25740.39882
270.0727910.61770.269376
28-0.074341-0.63080.734916
290.0893470.75810.225422
30-0.180398-1.53070.934891
31-0.08975-0.76160.775593
320.0678390.57560.283328
33-0.064655-0.54860.707517
34-0.080833-0.68590.752508
35-0.0187-0.15870.562815
36-0.099806-0.84690.800066
370.1205741.02310.154842
38-0.057129-0.48480.685339
390.053960.45790.324214
40-0.015442-0.1310.551942
41-0.063948-0.54260.705465
420.089490.75930.225062
43-0.054591-0.46320.677697
440.0023170.01970.492184
45-0.06453-0.54760.707154
460.0291610.24740.402635
470.009810.08320.466946
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/28/t1196275210mimpxqzygnn9lrq/1922i1196275825.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/28/t1196275210mimpxqzygnn9lrq/1922i1196275825.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/28/t1196275210mimpxqzygnn9lrq/20fka1196275825.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/28/t1196275210mimpxqzygnn9lrq/20fka1196275825.ps (open in new window)


 
Parameters:
par1 = Default ; par2 = 1 ; par3 = 2 ; 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 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