Home » date » 2009 » Dec » 05 »

oefening 6 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: Sat, 05 Dec 2009 11:21:50 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2009/Dec/05/t1260037449kld2tz4b3pgf0gb.htm/, Retrieved Sat, 05 Dec 2009 19:24:12 +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/2009/Dec/05/t1260037449kld2tz4b3pgf0gb.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:
KDGP2W21
 
Dataseries X:
» Textbox « » Textfile « » CSV «
161.88 162.05 162.16 162.61 162.53 162.53 162.53 162.53 162.83 161.61 161.79 161.79 161.79 161.79 161.85 161.77 161.86 161.89 161.89 161.89 162.18 162.43 162.58 162.57 162.57 162.57 162.44 162.79 163.15 163.23 163.23 163.23 163.38 163.71 163.73 163.73 163.73 163.73 163.93 164.27 164.57 164.73 164.73 164.76 165.75 165.86 165.99 166.13 166.13 166.13 166.15 166.45 166.48 166.51 166.51 166.51 166.58 166.82 167.35 167.5 167.5 167.6 167.72 167.29 166.98 166.98 166.98 166.98 167.63 167.83 167.85 167.87 167.87 167.96 167.7 169.25 168.79 168.77 168.77 169 168.92 169.23 169.28 169.29 169.29 170.29 170.59 171.98 172.31 172.28 172.28 172.45 172.27 172.65 172.08 172.2 172.2 172.2 172.36 172.53 173.18 173.17 173.17 173.17 173.4 174.47 174.56 174.59 174.59 175.22 175.3 175.25 175.54 175.58 175.58 175.68 176.05 176.4 176.58 176.49
 
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.97471810.67750
20.94913110.39720
30.92337610.11510
40.8995469.8540
50.8760189.59630
60.8523849.33740
70.8279739.070
80.8029558.79590
90.7793228.5370
100.7527178.24560
110.7257577.95030
120.7008617.67750
130.6744867.38860
140.6472687.09050
150.6198326.78990
160.5958696.52740
170.5723066.26930
180.5475315.99790
190.521345.7110
200.4947265.41950
210.4703835.15281e-06
220.4470544.89722e-06
230.4243324.64834e-06
240.4013984.39711.2e-05
250.3778214.13883.3e-05
260.3537593.87528.7e-05
270.327163.58390.000245
280.3021623.310.000616
290.2766793.03090.001494
300.2511982.75170.003424
310.2243312.45740.007712
320.1962132.14940.016805
330.1694841.85660.03291
340.1484621.62630.053252
350.1278711.40080.081933
360.1108981.21480.113409
370.0935481.02480.153768
380.0754740.82680.205003
390.0577970.63310.263925
400.0417660.45750.324063
410.0257590.28220.389146
420.0098660.10810.457057
43-0.00653-0.07150.471545
44-0.023746-0.26010.397606
45-0.040635-0.44510.328511
46-0.051855-0.5680.285532
47-0.064104-0.70220.241949
48-0.076643-0.83960.201407


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.97471810.67750
2-0.018922-0.20730.418072
3-0.016454-0.18020.428632
40.0252350.27640.391346
5-0.006964-0.07630.46966
6-0.015036-0.16470.434723
7-0.026952-0.29520.384161
8-0.02488-0.27250.392837
90.0140810.15420.438838
10-0.07437-0.81470.208433
11-0.022836-0.25020.401448
120.0286610.3140.377045
13-0.04912-0.53810.295758
14-0.033811-0.37040.355877
15-0.017667-0.19350.423434
160.0529420.57990.281519
17-0.007529-0.08250.467201
18-0.045858-0.50240.30817
19-0.035761-0.39170.34797
20-0.018533-0.2030.419731
210.0204760.22430.41145
220.000920.01010.495987
23-0.003129-0.03430.486355
24-0.014797-0.16210.435751
25-0.034669-0.37980.352388
26-0.027881-0.30540.380287
27-0.062487-0.68450.247486
280.0107940.11820.453036
29-0.0322-0.35270.362454
30-0.029534-0.32350.373429
31-0.042336-0.46380.321827
32-0.043082-0.47190.318915
330.0025360.02780.488944
340.0889310.97420.165962
35-0.017594-0.19270.423747
360.0692050.75810.224939
37-0.015162-0.16610.434181
38-0.031711-0.34740.364457
39-0.001252-0.01370.494541
400.0098240.10760.457242
41-0.01613-0.17670.430023
42-0.019648-0.21520.414978
43-0.036764-0.40270.343931
44-0.02588-0.28350.388639
45-0.015079-0.16520.434541
460.0841640.9220.179198
47-0.043008-0.47110.319204
48-0.022978-0.25170.400848
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/05/t1260037449kld2tz4b3pgf0gb/1uj1z1260037308.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/05/t1260037449kld2tz4b3pgf0gb/1uj1z1260037308.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/05/t1260037449kld2tz4b3pgf0gb/2fujy1260037308.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/05/t1260037449kld2tz4b3pgf0gb/2fujy1260037308.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