Home » date » 2009 » Jun » 03 »

Opdracht 6bis Oefening 2

*Unverified author*
R Software Module: rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Wed, 03 Jun 2009 05:19:51 -0600
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2009/Jun/03/t1244028116t4p4ngx48u427u6.htm/, Retrieved Wed, 03 Jun 2009 13:21:58 +0200
 
BibTeX entries for LaTeX users:
@Manual{KEY,
    author = {{YOUR NAME}},
    publisher = {Office for Research Development and Education},
    title = {Statistical Computations at FreeStatistics.org, URL http://www.freestatistics.org/blog/date/2009/Jun/03/t1244028116t4p4ngx48u427u6.htm/},
    year = {2009},
}
@Manual{R,
    title = {R: A Language and Environment for Statistical Computing},
    author = {{R Development Core Team}},
    organization = {R Foundation for Statistical Computing},
    address = {Vienna, Austria},
    year = {2009},
    note = {{ISBN} 3-900051-07-0},
    url = {http://www.R-project.org},
}
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
Thomas Cammaert
 
Dataseries X:
» Textbox « » Textfile « » CSV «
8,9722 8,8284 8,7446 8,7519 8,6337 8,7272 8,6330 8,5865 8,5968 8,5114 8,3884 8,2671 8,2410 8,3177 8,4070 8,3917 8,4145 8,5245 8,6289 8,6622 8,9055 8,9770 9,1264 9,1120 9,0576 9,2106 9,2637 9,3107 9,6744 9,5780 9,4166 9,4359 9,2275 9,1828 9,0594 9,1358 9,2208 9,1137 9,2689 9,2489 9,1679 9,1051 9,0818 9,0961 9,1733 9,1455 9,2265 9,1541 9,1559 9,1182 9,1856 9,2378 9,0682 9,0105 8,9939 9,0228 9,1368 9,1763 9,2346 9,1653 9,1277 9,1430 9,1962 9,1861 9,0920 9,0620 8,9981 8,9819 9,0476 9,0852 9,0884 9,1670 9,1931 9,2628 9,4276 9,3398 9,3342 9,4223 9,5614 9,4316 9,3111 9,3414 9,4017 9,3346 9,3310 9,2349 9,2170 9,2098 9,2665 9,2533 9,1008 9,0377 9,0795 9,1896 9,2992 9,2372 9,2061 9,3290 9,1842 9,3231 9,2835 9,1735 9,2889 9,4319 9,4314 9,3642 9,4020 9,3699 9,3106 9,3739 9,4566 9,3984 9,5637 9,8506
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time1 seconds
R Server'George Udny Yule' @ 72.249.76.132


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.922679.85140
20.8546629.12530
30.8005558.54760
40.7277797.77060
50.6673197.1250
60.606526.47590
70.5377725.74180
80.4618964.93171e-06
90.3843384.10363.8e-05
100.3132143.34420.000559
110.2280542.4350.008222
120.1488711.58950.057358
130.0981641.04810.148404
140.0482050.51470.303882
150.0133220.14220.443569
16-0.014929-0.15940.436818
17-0.048943-0.52260.301145
18-0.058141-0.62080.267992
19-0.065267-0.69690.243654
20-0.070145-0.74890.227716
21-0.071548-0.76390.223246
22-0.064087-0.68430.247599
23-0.050148-0.53540.296695
24-0.044802-0.47840.316657
25-0.036156-0.3860.350093
26-0.029614-0.31620.376216
27-0.020082-0.21440.415302
280.0051450.05490.478146
290.0270620.28890.386573
300.0439620.46940.319845
310.052670.56240.287486
320.0478560.5110.305184
330.0441780.47170.319026
340.045130.48190.315416
350.0426820.45570.32473
360.0279770.29870.382851
370.0170810.18240.427805
380.0158280.1690.433048
390.0116040.12390.450808
400.0006590.0070.497201
410.0026980.02880.488533
420.0063620.06790.472983
430.011190.11950.452555
440.0120660.12880.448858
450.0207950.2220.412343
460.0350960.37470.354283
470.0480770.51330.304361
480.0676130.72190.235913
490.0799310.85340.197607
500.0845850.90310.184183
510.0800890.85510.197139
520.0700790.74820.227928
530.0650340.69440.244431
540.0509280.54380.293834
550.0333850.35650.361079
560.0099270.1060.457889
57-0.019552-0.20880.417503
58-0.048419-0.5170.303087
59-0.071859-0.76720.222261
60-0.093212-0.99520.160866


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.922679.85140
20.0224740.240.405396
30.060360.64450.260282
4-0.145577-1.55430.061437
50.0379630.40530.342997
6-0.052217-0.55750.28913
7-0.066048-0.70520.241064
8-0.117097-1.25030.106883
9-0.069014-0.73690.231358
10-0.016608-0.17730.429783
11-0.145729-1.5560.061245
12-0.0342-0.36520.357837
130.1122431.19840.116618
140.0135230.14440.442726
150.0795270.84910.198798
16-0.006007-0.06410.474488
17-0.026673-0.28480.388162
180.1291231.37870.08535
19-0.004659-0.04970.480205
20-0.000627-0.00670.497337
21-0.044693-0.47720.317069
220.0532840.56890.285266
23-0.004375-0.04670.481413
24-0.070849-0.75650.225467
25-0.016193-0.17290.43152
26-0.03894-0.41580.33918
270.0680.7260.23465
280.0759860.81130.209438
290.0005030.00540.49786
300.0287380.30680.379762
31-0.053137-0.56730.285798
32-0.067659-0.72240.235764
33-0.023319-0.2490.401914
340.0316470.33790.368032
350.0019670.0210.491639
36-0.111634-1.19190.117882
370.0089230.09530.462133
380.0381450.40730.342284
390.0561150.59910.275133
40-0.016013-0.1710.432275
410.0816280.87150.192644
420.0797140.85110.198245
430.0353150.37710.353414
44-0.072862-0.77790.219106
450.0536040.57230.284113
460.0579150.61840.268785
470.0165570.17680.429998
48-0.026423-0.28210.389182
49-0.068465-0.7310.233138
50-0.034506-0.36840.356622
51-0.101139-1.07990.141241
52-0.079395-0.84770.199188
53-0.013731-0.14660.441849
54-0.021386-0.22830.409895
550.0144620.15440.438779
56-0.078146-0.83440.202907
57-0.047986-0.51240.304698
580.0062330.06650.473529
590.0759430.81090.20957
600.0575680.61470.270004
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/03/t1244028116t4p4ngx48u427u6/16c931244027990.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/03/t1244028116t4p4ngx48u427u6/16c931244027990.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/03/t1244028116t4p4ngx48u427u6/2av6m1244027990.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/03/t1244028116t4p4ngx48u427u6/2av6m1244027990.ps (open in new window)


 
Parameters (Session):
par1 = 60 ; par2 = 1 ; par3 = 0 ; par4 = 0 ; par5 = 12 ;
 
Parameters (R input):
par1 = 60 ; 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 2:(par1+1)) {
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(abs(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,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(abs(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:

  • personalize online software applications according to your needs
  • enforce strict security rules with respect to the data that you upload (e.g. statistical data)
  • manage user sessions of online applications
  • alert you about important changes or upgrades in resources or applications

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