Home » date » 2007 » Nov » 27 » attachments

Opdracht3 Q2 Kolom1

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 02:55:56 -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/t1196156892qqpjx9l6c6pyo8k.htm/, Retrieved Tue, 27 Nov 2007 10:48:15 +0100
 
User-defined keywords:
Verbeterd
 
Dataseries X:
» Textbox « » Textfile « » CSV «
3804 3491 4151 4254 4717 4866 4001 3758 4780 5016 4296 4467 3891 3872 3867 3973 4640 4538 3836 3770 4374 4497 3945 3862 3608 3301 3882 3605 4305 4216 3971 3988 4317 4484 4247 3520 3686 3403 3990 4053 4548 4559 3922 4209 4517 4386 3221 3127 3777 3322 3899 4033 4463 4819 4246 4255 4760 4581 4309 4016 3601 3257 3823 3940 4534 4575 3953 4206 4649 4353 3835 3944
 
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 time1 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Autocorrelation Function
Time lag kACF(k)T-STATP-value
017.7460
10.4578713.54670.000382
20.2092541.62090.055144
30.2073891.60640.056715
40.2026061.56940.060909
50.1768911.37020.087866
60.0439890.34070.367247
7-0.127742-0.98950.836801
8-0.109172-0.84560.799445
9-0.106245-0.8230.793107
10-0.083704-0.64840.740391
11-0.186031-1.4410.922607
12-0.392661-3.04150.998256
13-0.197971-1.53350.934792
14-0.003342-0.02590.510284
15-0.009892-0.07660.530412
16-0.158693-1.22920.888108
170.0276030.21380.415708
180.092380.71560.238516
190.1128980.87450.192665
200.0859670.66590.254013
210.0674070.52210.30175
220.0370990.28740.38741
230.0679070.5260.300411
240.1039680.80530.211903
250.0900670.69770.244043
260.0009540.00740.497066
27-0.011794-0.09140.536244
280.0315660.24450.403834
29-0.097919-0.75850.774433
30-0.141417-1.09540.861144
31-0.14116-1.09340.86071
32-0.084189-0.65210.741594
33-0.213394-1.65290.948217
34-0.219878-1.70320.953144
35-0.156963-1.21580.885594
36-0.195694-1.51580.932594
37-0.133266-1.03230.846957
38-0.118347-0.91670.818519
39-0.086636-0.67110.747627
40-0.000988-0.00770.503042
41-0.001089-0.00840.503351
420.0040520.03140.487532
430.0213050.1650.434738
44-0.017896-0.13860.554895
450.1232820.95490.171721
460.1326141.02720.154219
470.0568040.440.33076


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
00.4578713.54670.000382
1-0.000495-0.00380.501525
20.1414011.09530.138883
30.0729480.56510.287072
40.0554320.42940.334594
5-0.103617-0.80260.787318
6-0.189337-1.46660.926146
7-0.022698-0.17580.569485
8-0.067637-0.52390.698865
90.0294130.22780.410275
10-0.129749-1.0050.840541
11-0.279998-2.16890.982966
120.1437481.11350.134975
130.12690.9830.164786
140.045640.35350.362466
15-0.1723-1.33460.90648
160.2792362.1630.01727
17-0.036444-0.28230.610654
18-0.050951-0.39470.652754
19-0.029327-0.22720.589467
200.0399790.30970.378939
21-0.04025-0.31180.621854
22-0.086781-0.67220.747983
230.0119810.09280.463184
240.0739190.57260.284537
250.05980.46320.322445
26-0.030089-0.23310.59175
27-0.10137-0.78520.782291
28-0.02771-0.21460.584612
29-0.003114-0.02410.509582
30-0.084708-0.65610.742881
31-0.039482-0.30580.619603
32-0.136903-1.06040.853403
33-0.061183-0.47390.681362
34-0.016635-0.12890.551049
35-0.135049-1.04610.850141
360.1165620.90290.185098
37-0.076837-0.59520.723019
380.0667690.51720.303462
390.0187150.1450.442613
40-0.071883-0.55680.710133
41-0.071928-0.55720.710252
42-0.046125-0.35730.638933
43-0.012133-0.0940.537282
44-0.029257-0.22660.589257
450.0180940.14020.444503
460.002330.0180.492829
470.013850.10730.457461
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/27/t1196156892qqpjx9l6c6pyo8k/169sl1196157354.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/27/t1196156892qqpjx9l6c6pyo8k/169sl1196157354.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/27/t1196156892qqpjx9l6c6pyo8k/2787b1196157354.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/27/t1196156892qqpjx9l6c6pyo8k/2787b1196157354.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