Home » date » 2007 » Nov » 27 » attachments

Workshop 3 Q2

R Software Module: rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Tue, 27 Nov 2007 06:09:08 -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/27/t1196168424ec9z5fz4w9ztalj.htm/, Retrieved Tue, 27 Nov 2007 14:00:26 +0100
 
User-defined keywords:
Q2, reeks 2
 
Dataseries X:
» Textbox « » Textfile « » CSV «
102,7 116,6 114,7 74,2 73,9 81,3 85,8 113,7 101,7 85,2 62,5 61,2 87,1 96,5 88,4 67,0 58,6 62,5 86,1 98,7 85,3 73,8 55,2 54,4 80,8 88,0 74,5 55,1 47,2 54,2 70,6 78,5 77,1 56,6 39,8 44,1 66,9 75,3 74,9 48,8 37,0 49,8 63,2 75,9 68,5 49,2 40,3 38,6 54,2 70,6 68,0 43,0 42,3 47,7 57,7 75,8 57,2 43,6 40,0 35,9 59,5 72,7 70,9 44,9 44,5 48,0 60,4 71,8 63,2 32,4 33,9 24,2 64,7 73,0 61,7 31,9 30,8 36,7 47,4 54,0 41,1
 
Text written by user:
d=1 D=1
 
Output produced by software:


Summary of compuational 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
018.24620
1-0.448451-3.6980.999782
2-0.113189-0.93340.823037
30.2209471.8220.036428
4-0.166086-1.36960.912338
5-0.01038-0.08560.53398
60.207411.71030.045881
7-0.144354-1.19040.880981
80.0310540.25610.399331
90.0326710.26940.394214
10-0.10514-0.8670.805507
110.1326441.09380.138949
12-0.084-0.69270.754567
13-0.096714-0.79750.78604
140.2859592.35810.010626
15-0.149224-1.23050.888631
16-0.143203-1.18090.879118
170.2744052.26280.013423
18-0.196207-1.6180.94485
19-0.081151-0.66920.747178
200.2400981.97990.025882
21-0.116185-0.95810.829292
22-0.06807-0.56130.711788
230.2137911.7630.0412
24-0.202758-1.6720.950439
250.0555650.45820.324134
260.0273420.22550.411147
27-0.053525-0.44140.669829
280.0785980.64810.259539
29-0.074186-0.61180.728629
30-0.02115-0.17440.568967
310.1164410.96020.170179
32-0.088106-0.72650.765001
33-0.136883-1.12880.868518
340.2147581.77090.040526
35-0.098029-0.80840.78915
36-0.005844-0.04820.519148
370.0969020.79910.213516
38-0.111785-0.92180.820055
39-0.028479-0.23480.592481
400.141391.16590.123858
41-0.132939-1.09620.86158
420.0013730.01130.495501
430.0577170.4760.317818
44-0.025333-0.20890.582425
450.0538530.44410.329197
46-0.047437-0.39120.651555
47-0.040026-0.33010.628815


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
0-0.448451-3.6980.999782
1-0.393417-3.24420.999086
2-0.038817-0.32010.625061
3-0.132493-1.09260.86078
4-0.130519-1.07630.857198
50.1185490.97760.165874
60.0627260.51720.30333
70.0890880.73460.232543
80.0356110.29370.384957
9-0.049207-0.40580.656907
100.0766980.63250.2646
11-0.05934-0.48930.686909
12-0.17488-1.44210.923067
130.1532391.26360.105337
140.1129380.93130.177493
15-0.089476-0.73780.768425
160.0908540.74920.228161
170.0007040.00580.497693
18-0.142766-1.17730.878405
19-0.049729-0.41010.65848
200.0212420.17520.430735
21-0.036639-0.30210.618264
220.1422381.17290.122459
230.0280860.23160.40877
240.0329290.27150.3934
25-0.025223-0.2080.582071
26-0.001276-0.01050.504181
27-0.051856-0.42760.664859
28-0.121888-1.00510.840797
29-0.0128-0.10550.541875
300.0039930.03290.486915
310.047950.39540.346891
32-0.120212-0.99130.837471
33-0.063022-0.51970.697516
34-0.015042-0.1240.549175
350.0582110.480.316376
36-0.036919-0.30440.61914
37-0.00636-0.05240.520838
380.0310990.25640.39919
390.0724540.59750.276088
40-0.04228-0.34870.635785
41-0.1166-0.96150.830148
42-0.070183-0.57870.717662
430.0098780.08150.467661
440.0533450.43990.330704
450.0030390.02510.490039
460.0754350.62210.267994
47-0.040696-0.33560.630891
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/27/t1196168424ec9z5fz4w9ztalj/120111196168946.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/27/t1196168424ec9z5fz4w9ztalj/120111196168946.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/27/t1196168424ec9z5fz4w9ztalj/2vi5l1196168946.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/27/t1196168424ec9z5fz4w9ztalj/2vi5l1196168946.ps (open in new window)


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