Home » date » 2007 » Nov » 27 » attachments

Opdracht 3 Q2 Kolom2

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 03:03:15 -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/t11961572624ftfpv8uu90asak.htm/, Retrieved Tue, 27 Nov 2007 10:54:24 +0100
 
User-defined keywords:
Verbeterd
 
Dataseries X:
» Textbox « » Textfile « » CSV «
96 75 96 102 130 127 111 108 108 122 113 111 97 124 99 118 111 121 102 102 115 123 127 117 106 88 95 105 117 128 136 128 124 119 128 104 91 99 92 117 103 117 125 94 126 105 107 87 95 63 91 90 102 104 121 107 94 96 98 75 97 81 89 85 95 97 103 99 82 90 82 94
 
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.1266280.98090.165301
20.287892.230.014751
3-0.060091-0.46550.678357
4-0.082331-0.63770.736962
5-0.154715-1.19840.882267
60.0127050.09840.460965
70.225881.74970.042645
80.190491.47550.07265
90.2172371.68270.048814
100.10090.78160.218771
110.1018390.78880.216655
12-0.399753-3.09650.998512
13-0.019745-0.15290.560522
14-0.136999-1.06120.853572
15-0.020428-0.15820.5626
160.13591.05270.148355
170.1637831.26870.104732
180.0859280.66560.25411
19-0.067538-0.52310.6986
20-0.087814-0.68020.750505
21-0.046815-0.36260.640922
22-0.046788-0.36240.640842
23-0.060956-0.47220.680739
240.1873951.45160.075917
25-0.078224-0.60590.726573
26-0.008385-0.0650.525786
27-0.086889-0.6730.748246
28-0.157802-1.22230.886818
29-0.076363-0.59150.721798
30-0.087539-0.67810.749834
310.0882150.68330.248519
32-0.015531-0.12030.547677
33-0.02476-0.19180.575724
34-0.119977-0.92930.821781
35-0.043561-0.33740.631511
36-0.296225-2.29450.987363
37-0.030221-0.23410.592146
38-0.114195-0.88460.810035
390.0034940.02710.489248
400.0471780.36540.358034
410.0657650.50940.306167
420.0412370.31940.375258
43-0.08387-0.64970.740803
44-0.090286-0.69940.756484
45-0.032491-0.25170.598922
46-0.083586-0.64750.740097
470.0356920.27650.39157


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
00.1266280.98090.165301
10.2762852.14010.018211
2-0.13364-1.03520.847628
3-0.157679-1.22140.88664
4-0.084084-0.65130.741333
50.1183830.9170.181409
60.3197512.47680.008047
70.101560.78670.217284
8-0.014521-0.11250.544589
9-0.016784-0.130.551503
100.1291151.00010.160634
11-0.416265-3.22440.998978
120.0329410.25520.399736
130.1552621.20270.116918
14-0.125767-0.97420.833063
150.0594330.46040.323459
160.0436790.33830.368146
17-0.084281-0.65280.741823
180.013510.10460.458502
19-0.016524-0.1280.550708
200.1308051.01320.157514
210.145981.13080.131329
22-0.131149-1.01590.843117
23-0.096762-0.74950.771763
24-0.067754-0.52480.699179
25-0.096262-0.74560.770602
26-0.119349-0.92450.820528
27-0.047167-0.36540.641934
280.1330751.03080.153388
29-0.024747-0.19170.575683
300.0059470.04610.481705
31-0.104202-0.80710.788614
32-0.03449-0.26720.604867
33-0.039996-0.30980.621109
340.0507810.39340.347727
35-0.082085-0.63580.736346
36-0.031594-0.24470.596248
37-0.106161-0.82230.792924
38-0.091542-0.70910.75949
390.0058080.0450.482133
400.1859521.44040.07748
410.0289080.22390.411791
420.0372310.28840.38702
43-0.011806-0.09150.536281
440.0459550.3560.361558
45-0.1222-0.94660.826169
460.0903590.69990.243341
47-0.097726-0.7570.773989
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/27/t11961572624ftfpv8uu90asak/1azqi1196157791.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/27/t11961572624ftfpv8uu90asak/1azqi1196157791.ps (open in new window)


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


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