Home » date » 2010 » May » 05 »

Jeroen De Laet opdracht 6 bis eigen reeks stap 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, 05 May 2010 17:47:07 +0000
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2010/May/05/t127308167534dmi0p9u9ntg3o.htm/, Retrieved Wed, 05 May 2010 19:47:55 +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/2010/May/05/t127308167534dmi0p9u9ntg3o.htm/},
    year = {2010},
}
@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 = {2010},
    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:
KDGP2W21
 
Dataseries X:
» Textbox « » Textfile « » CSV «
15136 16733 20016 17708 18019 19227 22893 23739 21133 22591 26786 29740 15028 17977 20008 21354 19498 22125 25817 28779 20960 22254 27392 29945 16933 17892 20533 23569 22417 22084 26580 27454 24081 23451 28991 31386 16896 20045 23471 21747 25621 23859 25500 30998 24475 23145 29701 34365 17556 22077 25702 22214 26886 23191 27831 35406 23195 25110 30009 36242 18450 21845 26488 22394 28057 25451 24872 33424 24052 28449 33533 37351 19969 21701 26249 24493 24603 26485 30723 34569 26689 26157 32064 38870 21337 19419 23166 28286 24570 24001 33151 24878 26804 28967 33311 40226 20504 23060 23562 27562 23940 24584 34303 25517 23494 29095 32903 34379 16991 21109 23740 25552 21752 20294 29009 25500 24166 26960 31222 38641 14672 17543 25453 32683 22449 22316 27595 25451 25421 25288 32568 35110 16052 22146 21198 19543 22084 23816 29961 26773 26635 26972 30207 38687 16974 21697 24 etc...
 
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.30023-3.97175.2e-05
2-0.312709-4.13682.7e-05
3-0.010389-0.13740.445422
40.246093.25550.00068
50.073340.97020.166645
6-0.398124-5.26670
70.1040061.37590.08531
80.2203732.91530.002009
9-0.018335-0.24250.404321
10-0.280445-3.70990.000139
11-0.215744-2.8540.002419
120.79937610.57470
13-0.22546-2.98250.001633
14-0.287632-3.8059.8e-05
150.0056220.07440.4704
160.204472.70490.003754
170.0836851.1070.134896
18-0.365819-4.83931e-06
190.0874171.15640.124542
200.2020072.67230.004123
21-0.023862-0.31570.376318
22-0.256923-3.39880.000419
23-0.171498-2.26870.012254
240.7098899.39090
25-0.201443-2.66480.004211
26-0.252724-3.34320.000506
27-0.030389-0.4020.344084
280.2456593.24980.000693
290.0401020.53050.298218
30-0.346818-4.5884e-06
310.0961331.27170.10258
320.1970032.60610.004974
33-0.019336-0.25580.399209
34-0.281637-3.72570.000131
35-0.113925-1.50710.066796
360.632658.36920
37-0.178708-2.36410.009585
38-0.222522-2.94370.001842
39-0.071305-0.94330.173419
400.2818423.72840.00013
410.0193020.25530.399378
42-0.348096-4.60494e-06
430.1112251.47140.071495
440.218182.88630.002195
45-0.077648-1.02720.152876
46-0.234654-3.10420.001113
47-0.091412-1.20930.114096
480.5625497.44180


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.30023-3.97175.2e-05
2-0.442756-5.85710
3-0.381095-5.04141e-06
4-0.103403-1.36790.086549
50.0881211.16570.122654
6-0.307156-4.06333.6e-05
7-0.168772-2.23260.01342
8-0.067688-0.89540.185895
9-0.047058-0.62250.267207
10-0.243965-3.22730.000746
11-0.729851-9.6550
120.2108192.78890.002937
130.0749820.99190.161305
140.1191691.57650.058364
150.1690092.23580.013315
16-0.016307-0.21570.414726
170.0605210.80060.212217
180.1071781.41780.079009
190.0204390.27040.393593
200.0342020.45240.325753
21-0.017577-0.23250.408204
22-0.096915-1.28210.100757
23-0.17553-2.3220.010691
240.0527530.69790.243097
250.0043540.05760.477067
260.1187091.57040.059068
27-0.058653-0.77590.219427
280.1405421.85920.032339
290.03180.42070.337252
300.0009830.0130.494822
310.0407520.53910.295254
320.0342270.45280.325634
330.110121.45670.073489
34-0.016118-0.21320.415701
35-0.056965-0.75360.22606
36-0.025372-0.33560.368771
37-0.033822-0.44740.327559
380.0656810.86890.193051
39-0.092492-1.22360.111382
400.0012680.01680.493318
41-0.026523-0.35090.363056
42-0.071254-0.94260.173591
43-0.033818-0.44740.32758
440.1608212.12750.017391
45-0.10666-1.4110.080014
460.1252341.65670.049687
470.0244290.32320.373477
48-0.012566-0.16620.434081
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/May/05/t127308167534dmi0p9u9ntg3o/1kutl1273081624.png (open in new window)
http://www.freestatistics.org/blog/date/2010/May/05/t127308167534dmi0p9u9ntg3o/1kutl1273081624.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/May/05/t127308167534dmi0p9u9ntg3o/2v4s61273081624.png (open in new window)
http://www.freestatistics.org/blog/date/2010/May/05/t127308167534dmi0p9u9ntg3o/2v4s61273081624.ps (open in new window)


 
Parameters (Session):
par1 = 48 ; par2 = 1 ; par3 = 1 ; par4 = 0 ; par5 = 12 ; par6 = White Noise ; par7 = 0.95 ;
 
Parameters (R input):
par1 = 48 ; par2 = 1 ; par3 = 1 ; par4 = 0 ; par5 = 12 ; par6 = White Noise ; par7 = 0.95 ;
 
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 (par6 == 'White Noise') par6 <- 'white' else par6 <- 'ma'
par7 <- as.numeric(par7)
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='time lag', ylab='ACF', ci.type=par6, ci=par7, sub=paste('(lambda=',par2,', d=',par3,', D=',par4,', CI=', par7, ', CI type=',par6,')',sep=''))
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