Home » date » 2010 » Jun » 04 »

Opgave 6 BIS: Goudkoers 2009 ACF

*Unverified author*
R Software Module: /rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Fri, 04 Jun 2010 13:59:57 +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/Jun/04/t1275660044yyqvqocr4ktlwju.htm/, Retrieved Fri, 04 Jun 2010 16:00:45 +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/Jun/04/t1275660044yyqvqocr4ktlwju.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:
KDGP2W2
 
Dataseries X:
» Textbox « » Textfile « » CSV «
23100 22650 22440 22910 22980 22535 22300 22780 22780 23300 23800 24510 24660 24730 25070 24690 24880 23920 23880 23990 24590 23610 23580 23360 23910 23940 23060 22800 23020 22890 22780 22530 22290 22820 22480 22110 22000 22230 22260 22590 22820 22420 22230 21600 21000 21360 21640 21450 21710 21620 21800 21490 21670 22130 22050 22050 22140 22390 22220 21790 21510 21670 21745 21850 22105 22050 21670 21680 21800 21920 21980 22270 21740 21950 22010 21890 21920 22110 22340 22210 22240 21960 22220 22060 22090 21960 21940 21790 21710 21690 21710 21670 21640 21500 21290 21250 21580 21670 21620 21510 21360 21420 21470 21370 21370 21340 21130 21130 20990 21240 21320 21430 21390 21530 21510 21630 21560 21610 21560 21310 21340 21410 21550 21380 21600 21530 21560 21670 21540 21540 21550 21590 21420 21420 21370 21380 21210 21505 21365 21385 21350 21360 21530 21380 21630 22145 22 etc...
 
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'RServer@AstonUniversity' @ vre.aston.ac.uk


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.97182314.70640
20.94491814.29920
30.92031213.92680
40.89719513.5770
50.87190813.19440
60.84902512.84810
70.82516712.4870
80.8022512.14020
90.78108111.81990
100.74940111.34050
110.72312110.94280
120.69817210.56530
130.67643110.23630
140.6512479.85510
150.6296589.52850
160.6054839.16260
170.5794028.76790
180.5527358.36440
190.5224067.90540
200.495077.49180
210.4661927.05480
220.4377456.62430
230.4148266.27750
240.394035.96280
250.3711035.61580
260.345415.2270
270.3202684.84651e-06
280.2989964.52465e-06
290.2782634.21091.8e-05
300.2557053.86957.1e-05
310.2314723.50280.000277
320.2116043.20210.000779
330.1937112.93140.001858
340.1787252.70460.003676
350.1629142.46530.007212
360.1533892.32120.010578
370.1434112.17020.01551
380.1340532.02860.021829
390.1232811.86560.031689
400.1106661.67470.047681
410.1013421.53360.063257
420.0940961.42390.077914
430.0881771.33440.091706
440.0795391.20360.114985
450.07091.07290.142219
460.0610710.92420.178186
470.0509170.77050.220894
480.0416590.63040.264525
490.035310.53430.296811
500.0256780.38860.348974
510.0144960.21940.413284
520.0050070.07580.469836
53-0.001535-0.02320.490743
54-0.00977-0.14790.441294
55-0.020508-0.31030.378292
56-0.032717-0.49510.310505
57-0.042981-0.65040.258035
58-0.053885-0.81540.207836
59-0.066215-1.0020.158697
60-0.078034-1.18090.11944


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.97182314.70640
20.0085990.13010.448289
30.0280530.42450.335791
40.0158430.23970.405372
5-0.048413-0.73260.232271
60.0304640.4610.322617
7-0.030446-0.46070.322717
80.00470.07110.471682
90.0218670.33090.370507
10-0.2037-3.08250.001152
110.0838511.26890.102882
12-0.005831-0.08820.464881
130.041740.63160.264127
14-0.051909-0.78550.216479
150.0302790.45820.323618
16-0.046461-0.70310.241361
17-0.06137-0.92870.177013
18-0.028233-0.42720.334799
19-0.061448-0.92990.176707
200.0112080.16960.432737
21-0.052293-0.79130.214784
22-0.030933-0.46810.320076
230.1242961.88090.030624
24-0.020608-0.31190.377718
25-0.010462-0.15830.437173
26-0.068725-1.040.149717
27-0.013697-0.20730.417988
280.0699141.0580.145587
29-0.040749-0.61660.269043
30-0.020924-0.31660.375903
31-0.058203-0.88080.189684
320.0315460.47740.316775
330.0260610.39440.346835
340.0672221.01730.155052
350.0116830.17680.429911
360.0866331.3110.095585
37-0.027174-0.41120.340649
380.0014890.02250.491022
39-0.020887-0.31610.376118
40-0.047658-0.72120.235762
410.0164230.24850.401978
420.0373280.56490.286358
43-0.002861-0.04330.482751
44-0.02579-0.39030.348351
45-0.047973-0.7260.2343
460.006950.10520.458165
47-0.031185-0.47190.318719
480.0145770.22060.412801
490.0324580.49120.311885
50-0.079048-1.19620.116424
51-0.055833-0.84490.199522
52-0.019165-0.290.386033
530.0541890.820.206528
54-0.044362-0.67130.251346
55-0.02869-0.43420.332288
56-0.035728-0.54070.294633
570.004290.06490.474145
58-0.031528-0.47710.316869
59-0.024691-0.37360.354509
600.013310.20140.420273
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Jun/04/t1275660044yyqvqocr4ktlwju/1ias81275659994.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jun/04/t1275660044yyqvqocr4ktlwju/1ias81275659994.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Jun/04/t1275660044yyqvqocr4ktlwju/2ias81275659994.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jun/04/t1275660044yyqvqocr4ktlwju/2ias81275659994.ps (open in new window)


 
Parameters (Session):
par1 = 60 ; par2 = 1 ; par3 = 0 ; par4 = 0 ; par5 = 1 ; par6 = White Noise ; par7 = 0.95 ;
 
Parameters (R input):
par1 = 60 ; par2 = 1 ; par3 = 0 ; par4 = 0 ; par5 = 1 ; 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