Home » date » 2009 » Dec » 12 »

Opgave 6bis oefening 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: Sat, 12 Dec 2009 04:01:12 -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/12/t1260615716tf8ufigos02smv7.htm/, Retrieved Sat, 12 Dec 2009 12:01:58 +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/12/t1260615716tf8ufigos02smv7.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 «
102,5 77,7 82,8 77,3 103,1 99,7 99,5 107,2 96,7 97,1 105,2 151,2 102,7 75,4 87,2 83,7 105,8 111,5 99,7 111,2 101,5 110,9 116,3 164,9 118,1 83,7 84 107,2 113,7 120,7 111,2 112,4 112,5 130,4 130,7 174,3 132,2 91,8 104,2 104,8 131,4 141,2 132,7 135,7 136,9 151,2 144 201,5 149,6 108,7 122,8 126,7 139,9 162,5 142,7 151,6 148,1 159 157,8 226,7 153,7 122,3 117,6 166 154,5 183,9 164,4 173,3 160,2 166,4 170,3 238,4 166,8 122,5 141,8 140,5 173,8 188,8 168 187,4 177,7 183,8 196,1 264,6 193,7 141,3 170,1 163,7 190,1 230,7 195,9 210,3 204,7 210,3 221,2 288,2 203,2 162,4 149,2 195,3 213,7 227,9 212,1 226,8 212,6 220,9 228,1 311,6
 
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'Gwilym Jenkins' @ 72.249.127.135


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.7422867.71410
20.5956686.19040
30.5306865.5150
40.5491355.70680
50.5703945.92770
60.6217756.46170
70.5326335.53530
80.4675374.85882e-06
90.4114684.27612.1e-05
100.4520924.69834e-06
110.577546.0020
120.7409367.70
130.5293355.5010
140.3855234.00655.7e-05
150.3280893.40960.000458
160.3366233.49830.000341
170.3565983.70590.000167
180.3982394.13863.5e-05
190.3075533.19620.000913
200.2499632.59770.005347
210.2151742.23620.013699
220.2232382.320.011112
230.3452943.58840.000251
240.4740714.92672e-06
250.2872722.98540.001752
260.1685231.75130.041363
270.1113881.15760.124795
280.1204521.25180.106678
290.1374681.42860.078001
300.172161.78910.038198
310.1038021.07870.141554
320.0537540.55860.288786
330.0165690.17220.431806
340.0363470.37770.353185
350.1321141.3730.086303
360.259282.69450.004088
370.0899540.93480.17598
38-0.002907-0.03020.487976
39-0.05433-0.56460.286755
40-0.045632-0.47420.31815
41-0.032533-0.33810.367973
42-0.001837-0.01910.492402
43-0.059831-0.62180.267697
44-0.088375-0.91840.180223
45-0.139611-1.45090.074856
46-0.111834-1.16220.123855
47-0.031617-0.32860.371557
480.0660620.68650.246922


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.7422867.71410
20.0995061.03410.151701
30.1319591.37140.086553
40.2213632.30050.011671
50.1574511.63630.052346
60.2375842.4690.007557
7-0.118964-1.23630.109513
80.0004340.00450.498206
9-0.05374-0.55850.288835
100.1179511.22580.111474
110.3226383.3530.000552
120.4513754.69084e-06
13-0.513269-5.3340
14-0.270294-2.8090.00295
15-0.086102-0.89480.186443
16-0.056544-0.58760.279007
170.0033330.03460.486218
180.0118980.12360.450912
19-0.002171-0.02260.491021
200.111161.15520.125276
210.1402491.45750.073938
22-0.19497-2.02620.022605
23-0.030557-0.31760.375718
240.0795330.82650.205163
25-0.124497-1.29380.099245
260.0200330.20820.417738
27-0.10024-1.04170.149934
28-0.002569-0.02670.489376
290.0141690.14720.441607
300.0022650.02350.49063
310.0515870.53610.296494
32-0.012667-0.13160.447757
33-0.056967-0.5920.277539
340.0860110.89380.186695
35-0.115695-1.20230.115932
360.0963751.00160.159397
37-0.079169-0.82270.206232
38-0.008156-0.08480.466304
39-0.001959-0.02040.491896
40-0.0031-0.03220.487181
41-0.050936-0.52930.298827
42-0.066328-0.68930.246058
430.0418890.43530.332098
440.0305930.31790.375575
45-0.075169-0.78120.218204
460.0395170.41070.341061
47-0.074181-0.77090.221222
48-0.056041-0.58240.280756
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/12/t1260615716tf8ufigos02smv7/1wc4i1260615670.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/12/t1260615716tf8ufigos02smv7/1wc4i1260615670.ps (open in new window)


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