Home » date » 2010 » May » 05 »

Jeroen Cornelissen - personenwagens - opgave 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: Wed, 05 May 2010 21:08:13 +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/t1273093772ra0ava9aknj8oih.htm/, Retrieved Wed, 05 May 2010 23:09:32 +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/t1273093772ra0ava9aknj8oih.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 «
112 118 129 99 116 168 118 129 205 147 150 267 126 129 124 97 102 127 222 214 118 141 154 226 89 77 82 97 127 121 117 117 106 112 134 169 75 108 115 85 101 108 109 124 105 95 135 164 88 85 112 87 91 87 87 142 95 108 139 159 61 82 124 93 108 75 87 103 90 108 123 129 57 65 67 71 76 67 110 118 99 85 107 141 58 65 70 86 93 74 87 73 101 100 96 157 63 115 70 66 67 83 79 77 102 116 100 135 71 60 89 74 73 91 86 74 87 87 109 137 43 69 73 77 69 76 78 70 83 65 110 132 54 55 66 65 60 65 96 55 71 63 74 106 34 47 56 53 53 55 67 52 46 51 58 91 33 40 46 45 41 55 57 54 46 52 48 77 30 35 42 48 44 45
 
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'RServer@AstonUniversity' @ vre.aston.ac.uk


Autocorrelation Function
Time lag kACF(k)T-STATP-value
1-0.365346-4.80542e-06
2-0.205887-2.7080.003724
30.1209991.59150.056662
4-0.030313-0.39870.345301
50.0409370.53840.295481
6-0.107643-1.41580.079312
70.0239130.31450.37675
8-0.005673-0.07460.470301
90.0441260.58040.281204
10-0.06456-0.84920.198485
11-0.203268-2.67360.004112
120.5537627.28360
13-0.234412-3.08320.001192
14-0.097202-1.27850.101394
150.0616940.81150.209108
16-0.023024-0.30280.381191
170.0457980.60240.273857
18-0.063599-0.83650.202011
19-0.010406-0.13690.445645
20-0.004702-0.06180.475379
210.0670560.8820.189503
22-0.12328-1.62150.053366
23-0.160168-2.10670.018294
240.4976796.54590
25-0.213418-2.80710.002787
26-0.085561-1.12540.130995
270.0769051.01150.156588
28-0.014785-0.19450.423019
290.0327990.43140.333357
30-0.059436-0.78180.217711
31-0.027232-0.35820.360322
32-0.00487-0.06410.474499
330.0881141.1590.124036
34-0.135784-1.7860.037928
35-0.117482-1.54520.062059
360.4369965.74780
37-0.18927-2.48950.006869
38-0.089495-1.17710.120381
390.0594630.78210.217607
400.0302020.39720.345839
410.0067880.08930.464479
42-0.078742-1.03570.150897
430.0098270.12930.448654
44-0.012438-0.16360.43512
450.0486670.64010.261472
46-0.066594-0.87590.191146
47-0.127599-1.67830.047547
480.3798854.99661e-06


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.365346-4.80542e-06
2-0.39164-5.15120
3-0.172794-2.27280.012136
4-0.172059-2.26310.012437
5-0.040936-0.53840.295486
6-0.173649-2.2840.011793
7-0.12917-1.6990.045561
8-0.18926-2.48930.006872
9-0.090986-1.19670.116524
10-0.190158-2.50110.006655
11-0.511591-6.72890
120.1885892.48050.007038
13-0.024794-0.32610.372367
140.1278931.68220.04717
15-0.007554-0.09940.460484
160.0423040.55640.289318
170.007630.10040.460091
180.088891.16920.121973
190.0365040.48010.315869
200.0337470.44390.328846
210.1160111.52590.064432
22-0.117675-1.54780.061752
23-0.264835-3.48340.000314
24-0.015877-0.20880.417415
25-0.080009-1.05230.147053
26-0.043517-0.57240.283905
27-0.028034-0.36870.356392
28-0.00823-0.10830.456961
29-0.019874-0.26140.397047
30-0.000209-0.00280.498904
31-0.043205-0.56830.285295
32-0.046251-0.60830.271882
330.0600040.78920.215529
34-0.048539-0.63840.262017
35-0.08471-1.11420.133371
360.0378280.49760.309716
370.0273020.35910.359976
38-0.010186-0.1340.44679
39-0.034545-0.45440.325066
400.0518860.68250.247932
410.0116210.15280.439348
42-0.019289-0.25370.400011
430.0089030.11710.453458
44-0.02035-0.26770.39464
45-0.074747-0.98310.163456
460.0152440.20050.420663
47-0.091378-1.20190.115524
480.0262180.34480.365314
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/May/05/t1273093772ra0ava9aknj8oih/11se91273093689.png (open in new window)
http://www.freestatistics.org/blog/date/2010/May/05/t1273093772ra0ava9aknj8oih/11se91273093689.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/May/05/t1273093772ra0ava9aknj8oih/21se91273093689.png (open in new window)
http://www.freestatistics.org/blog/date/2010/May/05/t1273093772ra0ava9aknj8oih/21se91273093689.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