Home » date » 2010 » Nov » 17 »

Opgave 6 Stap 1 BIS

*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, 17 Nov 2010 15:51:44 +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/Nov/17/t1290009057z55wi54euf7suyz.htm/, Retrieved Wed, 17 Nov 2010 16:50:59 +0100
 
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/Nov/17/t1290009057z55wi54euf7suyz.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:
Gemiddelde consumptieprijzen van damesfietsen
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
KDGP2W12
 
Dataseries X:
» Textbox « » Textfile « » CSV «
361.58 363.19 363.61 364.14 365.51 365.51 365.5 365.5 364.59 364.63 364.54 363.67 365.22 369.05 370.45 370.46 370.46 370.58 370.58 370.22 370.21 370.29 370.29 370.2 370.2 372.55 374.51 375.58 375.75 375.75 375.75 375.69 375.76 377.5 377.51 377.74 369.82 373.1 374.55 375.01 374.81 375.31 375.31 375.39 375.59 376.26 377.18 377.26 377.26 381.87 387.09 387.14 388.78 389.16 389.16 389.42 389.49 388.97 388.97 389.09 389.09 391.76 390.96 391.76 392.8 393.06 393.06 393.26 393.87 394.47 394.57 394.57 394.57 399.57 406.13 407.03 409.46 409.9 409.9 410.14 410.54 410.69 410.79 410.97
 
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'Gwilym Jenkins' @ 72.249.127.135


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.9547888.75080
20.9080688.32260
30.8604617.88630
40.812627.44780
50.7656997.01770
60.7184716.58490
70.6703466.14380
80.6225235.70550
90.5768945.28730
100.5321114.87693e-06
110.4987914.57158e-06
120.4716174.32242.1e-05
130.4418394.04955.7e-05
140.4152613.80590.000134
150.3917483.59040.000277
160.3679183.3720.000565
170.3451493.16330.001086
180.3223522.95440.002032
190.2991532.74180.003733
200.2752942.52310.006758
210.2522382.31180.011618
220.2291792.10050.019343
230.2039461.86920.03254
240.1817611.66590.049733
250.1537181.40880.081286
260.1258251.15320.126049
270.0981740.89980.185406
280.0697430.63920.262215
290.0404430.37070.355911
300.0111920.10260.45927
31-0.018615-0.17060.432469
32-0.048359-0.44320.329375
33-0.075046-0.68780.246734
34-0.099858-0.91520.181349
35-0.115986-1.0630.145408
36-0.124582-1.14180.128388
37-0.146482-1.34250.09152
38-0.165217-1.51420.066859
39-0.178634-1.63720.052664
40-0.190814-1.74880.041986
41-0.202708-1.85780.033347
42-0.214277-1.96390.026426
43-0.225994-2.07130.020701
44-0.237201-2.1740.01626
45-0.248398-2.27660.012677
46-0.258386-2.36810.010087
47-0.265771-2.43580.008486
48-0.26882-2.46380.007894


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.9547888.75080
2-0.040203-0.36850.356725
3-0.034253-0.31390.377174
4-0.027953-0.25620.399214
5-0.015763-0.14450.442738
6-0.030344-0.27810.390805
7-0.037772-0.34620.365034
8-0.025033-0.22940.409545
9-0.004287-0.03930.484376
10-0.02017-0.18490.426892
110.1003980.92020.18006
120.0432410.39630.346441
13-0.05407-0.49560.31075
140.0131760.12080.452086
150.0155280.14230.443584
16-0.025182-0.23080.409017
17-0.012378-0.11340.454974
18-0.02043-0.18720.425962
19-0.018693-0.17130.432189
20-0.025506-0.23380.407868
210.0029340.02690.489306
22-0.003283-0.03010.488032
23-0.04898-0.44890.327325
240.0178160.16330.435344
25-0.074171-0.67980.249253
26-0.021125-0.19360.423474
27-0.021107-0.19340.423537
28-0.03069-0.28130.389595
29-0.037437-0.34310.366186
30-0.027943-0.25610.39925
31-0.03055-0.280.390086
32-0.023789-0.2180.413969
33-0.003948-0.03620.485609
34-0.002337-0.02140.49148
350.064920.5950.276721
360.05060.46380.322011
37-0.174683-1.6010.056566
380.0083440.07650.469612
390.032230.29540.384212
40-0.015196-0.13930.444784
41-0.030926-0.28340.388768
42-0.019886-0.18230.427909
43-0.013446-0.12320.451109
44-0.007373-0.06760.473141
45-0.007516-0.06890.472623
460.0186960.17140.432179
47-0.018555-0.17010.432686
480.0157590.14440.442753
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Nov/17/t1290009057z55wi54euf7suyz/16yft1290009101.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/17/t1290009057z55wi54euf7suyz/16yft1290009101.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/17/t1290009057z55wi54euf7suyz/26yft1290009101.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/17/t1290009057z55wi54euf7suyz/26yft1290009101.ps (open in new window)


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