Home » date » 2010 » Nov » 22 »

opdracht 6 bis oefening 2 stap 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: Mon, 22 Nov 2010 15:02:03 +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/22/t129043818951jxyhfciv0bp5u.htm/, Retrieved Mon, 22 Nov 2010 16:03:11 +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/22/t129043818951jxyhfciv0bp5u.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:
Dit is dus de juiste blog met betrekking tot oefening 2 stap 2 MVG Nicolas Norga
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
KDGP2W12
 
Dataseries X:
» Textbox « » Textfile « » CSV «
132.1 125 127.1 101.5 85.7 79.3 70.9 77.1 83.9 96.2 111.7 127.2 143.6 134.9 135.6 105.3 86.4 74.6 67.6 73.4 78.5 98.2 118.6 136.9 137.9 115.6 119.3 98.5 84.3 73.5 60.7 69.5 77.9 113.9 126.3 135.1 130.5 113.1 110 90.8 85.4 72.5 64.7 67.2 77.9 105.2 107.2 120.7 121.3 107.9 105.6 81.3 71.7 64.8 57.3 61.9 70.1 88.8 106.8 110.7 114.1 108 111.5 86.8 78.4 68 57.3 65.3 73.3 88.6 101.3 122.9 126.6 114.1 124.7 93.3 77.2 66.5 57.9 63.7 65.8 85 101 105.3 121 117.9 106 86.6 79.9 65.2 61.2 67.6 78.9 95.5 113.1 124.4 122 110.3 114 93.3 75.5 65.4 59.2 63.8 74.2 91.7 107 120.7 127.4 119.7 112.7 84.4 75.6 66.5 59.9 64.8 74.3 100.4 105.9 131.1
 
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'George Udny Yule' @ 72.249.76.132


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.5294165.50190
20.2416112.51090.006762
30.2247042.33520.010691
40.110261.14590.127193
50.0464820.48310.315016
60.0603030.62670.266095
70.0604020.62770.265756
8-0.041744-0.43380.332644
9-0.032674-0.33960.367423
100.1132171.17660.120974
11-0.014295-0.14860.441091
12-0.310766-3.22960.000821
13-0.162817-1.6920.04676
14-0.112621-1.17040.122209
15-0.260876-2.71110.003902
16-0.135714-1.41040.080651
17-0.075518-0.78480.217144
18-0.048717-0.50630.306847
190.0223130.23190.408535
200.1687691.75390.041142
210.2301292.39160.009253
220.0544350.56570.286384
230.0043240.04490.482119
240.0359430.37350.354743
25-0.045157-0.46930.319906
26-0.003239-0.03370.486606
270.1571491.63310.052675
280.0779330.80990.209887
290.1075851.11810.133011
300.1414221.46970.072275
310.1057321.09880.13715
320.039020.40550.342953
33-0.097664-1.0150.156197
34-0.035223-0.3660.357522
35-0.069616-0.72350.235477
36-0.158967-1.6520.050716


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.5294165.50190
2-0.05373-0.55840.288872
30.1649341.7140.044695
4-0.099111-1.030.152658
50.0249360.25910.398011
60.021760.22610.41076
70.0270730.28140.389489
8-0.122118-1.26910.10357
90.0490680.50990.305569
100.1577471.63940.052025
11-0.187204-1.94550.027158
12-0.357982-3.72030.000159
130.2201122.28750.012058
14-0.070021-0.72770.234192
15-0.196033-2.03720.022036
160.117921.22550.111534
17-0.023499-0.24420.403767
180.1251771.30090.098034
190.0568560.59090.277921
200.0891340.92630.178176
210.1438961.49540.068862
22-0.050792-0.52780.299344
23-0.149056-1.5490.062149
24-0.118569-1.23220.110275
250.1165081.21080.11431
260.0263320.27360.392439
27-0.012948-0.13460.446604
28-0.032679-0.33960.367404
290.1798311.86890.032176
30-0.060665-0.63040.264866
31-0.02489-0.25870.398193
320.0337680.35090.363163
33-0.019764-0.20540.418827
340.0822870.85510.197181
35-0.136185-1.41530.079932
36-0.147686-1.53480.063879
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Nov/22/t129043818951jxyhfciv0bp5u/1gd3y1290438121.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/22/t129043818951jxyhfciv0bp5u/1gd3y1290438121.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/22/t129043818951jxyhfciv0bp5u/2gd3y1290438121.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/22/t129043818951jxyhfciv0bp5u/2gd3y1290438121.ps (open in new window)


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