Home » date » 2009 » May » 21 »

Opgave 2, 6bis Jan Vanstraelen

*Unverified author*
R Software Module: rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Thu, 21 May 2009 06:25:40 -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/May/21/t1242908764f9cwqppahh4plyq.htm/, Retrieved Thu, 21 May 2009 14:26:04 +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/May/21/t1242908764f9cwqppahh4plyq.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:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
11310 64305 15310 37299 21302 61308 72300 26303 18301 54305 66309 50301 31298 52291 87286 81288 14293 90302 50306 15310 44310 26314 98313 76310 25313 48309 95307 10320 87327 63328 34333 90333 81332 7342 30424 13344 88347 40339 23330 1339 10341 46342 81342 2342 76350 35368 93367 88377 39376 41366 77375 56382 79397 26385 73397 28404 98413 73414 47423 52431 24441 92439 90441 441 13448 18458 18459 69477 41491 10492 73508 82515 13525 55533 19550 85558 57563 60570 49568 51570 26561 61558 78548 77537 539 18540 47542 86542 81544 16543 22538 25538 99527 63518 95508 65496 5488 96475 81465 5463 81458 74445 21434 67427 27418 81407 82395 97359
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time2 seconds
R Server'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Autocorrelation Function
Time lag kACF(k)T-STATP-value
1-0.066225-0.68820.246392
2-0.143889-1.49530.068871
3-0.043528-0.45240.325961
4-0.007133-0.07410.470525
50.2087482.16940.016123
60.1619151.68270.047664
7-0.270033-2.80630.002973
8-0.005144-0.05350.478732
9-0.039086-0.40620.342701
100.0303430.31530.376559
11-0.015749-0.16370.43515
12-0.037296-0.38760.34954
13-0.120425-1.25150.106729
140.0283680.29480.384354
150.0488480.50760.30637
160.0056680.05890.476569
17-0.114415-1.1890.118516
18-0.089825-0.93350.176326
190.0333820.34690.364664
200.053190.55280.290783
210.0528760.54950.291898
22-0.09965-1.03560.151354
23-0.148129-1.53940.063316
240.0334630.34780.364348
250.1496971.55570.061353
260.060190.62550.266476
270.0239340.24870.402022
28-0.169866-1.76530.04017
29-0.078653-0.81740.207753
300.1639891.70420.045607
310.1273391.32340.094257
32-0.04988-0.51840.302631
330.0419960.43640.331697
34-0.113391-1.17840.120614
350.0378840.39370.347289
360.1719061.78650.038412
37-0.072446-0.75290.226581
38-0.129247-1.34320.091016
390.1318251.370.086769
40-0.055574-0.57750.282387
410.070750.73530.23189
42-0.083776-0.87060.192944
43-0.145335-1.51040.066935
44-0.003363-0.03490.486094
450.1149511.19460.117428
460.0248770.25850.398246
470.0536640.55770.289106
48-0.048866-0.50780.306305
49-0.081025-0.8420.200814
500.0282930.2940.384649
510.1502511.56150.060671
52-0.097256-1.01070.157207
530.037360.38830.349295
54-0.146304-1.52040.065661
55-0.036323-0.37750.353277
560.1416091.47160.072013
57-0.022714-0.2360.406922
58-0.076351-0.79350.214623
59-0.039499-0.41050.34113
600.0132420.13760.445402


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.066225-0.68820.246392
2-0.148928-1.54770.062309
3-0.066088-0.68680.246839
4-0.038588-0.4010.344601
50.1948832.02530.022652
60.1997052.07540.020163
7-0.198266-2.06040.02088
80.0182010.18920.425164
9-0.093904-0.97590.165652
10-0.036694-0.38130.35185
11-0.113366-1.17810.120667
120.0157360.16350.435202
13-0.067154-0.69790.243376
14-0.022063-0.22930.409542
150.0640240.66540.253621
160.0032760.0340.486452
17-0.094467-0.98170.164214
18-0.11909-1.23760.10927
190.0230170.23920.405701
20-0.048742-0.50650.306755
210.0506950.52680.299693
22-0.052381-0.54440.29366
23-0.09934-1.03240.152103
24-0.043716-0.45430.325258
250.0832040.86470.194565
260.0622420.64680.259554
270.0658510.68430.247612
28-0.074586-0.77510.21998
29-0.123967-1.28830.100197
300.0250670.26050.397484
310.0577960.60060.274672
320.0018710.01940.49226
330.1264711.31430.09576
34-0.022497-0.23380.407795
35-0.043156-0.44850.327351
360.0811020.84280.200591
37-0.034809-0.36180.359123
38-0.115342-1.19870.11664
390.1099221.14230.127919
40-0.029898-0.31070.37831
41-0.002947-0.03060.487812
42-0.07848-0.81560.208264
43-0.015825-0.16450.434839
44-0.061108-0.63510.263368
450.0052240.05430.478401
460.0762280.79220.214994
470.1139441.18410.119478
480.1223181.27120.1032
49-0.058816-0.61120.271166
50-0.032292-0.33560.368915
515e-0600.499981
52-0.167023-1.73580.042729
530.1111831.15550.125228
54-0.087519-0.90950.182549
55-0.038866-0.40390.343538
560.0799980.83140.203802
57-0.042293-0.43950.330581
58-0.028326-0.29440.38452
59-0.025822-0.26830.394472
600.0668460.69470.244371
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/May/21/t1242908764f9cwqppahh4plyq/1yl351242908736.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/May/21/t1242908764f9cwqppahh4plyq/1yl351242908736.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/May/21/t1242908764f9cwqppahh4plyq/2n0q41242908736.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/May/21/t1242908764f9cwqppahh4plyq/2n0q41242908736.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