Home » date » 2010 » Nov » 22 »

opdracht 6 bis oefening 2 stap 1

*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 14:55:56 +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/t1290437813qxmydcu2egtgc5k.htm/, Retrieved Mon, 22 Nov 2010 15:56: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/2010/Nov/22/t1290437813qxmydcu2egtgc5k.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:
Bij de eerste blog had ik getypt: opdracht 6 bis oefening 2 stap 2. Maar dit moest stap 1 zijn. Deze blog is dus de juiste blog. De unieke link staat in de paper. 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 time3 seconds
R Server'George Udny Yule' @ 72.249.76.132


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.8138318.91510
20.4802615.2610
30.0180670.19790.421724
4-0.418669-4.58636e-06
5-0.707115-7.74610
6-0.816313-8.94230
7-0.670003-7.33950
8-0.366876-4.01895.1e-05
90.0696990.76350.223327
100.483835.30010
110.7556898.27820
120.8523839.33740
130.6893617.55160
140.3895334.26712e-05
15-0.025969-0.28450.388268
16-0.402845-4.41291.1e-05
17-0.646967-7.08720
18-0.730378-8.00090
19-0.586189-6.42140
20-0.305141-3.34270.000554
210.0773250.84710.199324
220.4191814.59195e-06
230.6441367.05620
240.7188637.87470
250.5688156.23110
260.3143863.44390.000395
27-0.034566-0.37860.352808
28-0.364922-3.99755.5e-05
29-0.576562-6.31590
30-0.646917-7.08660
31-0.513585-5.6260
32-0.272524-2.98540.001717
330.0573690.62840.265453
340.3499833.83390.000101
350.5363675.87560
360.5958986.52770


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.8138318.91510
2-0.539151-5.90610
3-0.604265-6.61940
4-0.31713-3.4740.000357
50.0192970.21140.41647
6-0.149321-1.63570.052258
70.1634171.79010.037976
80.0447360.49010.312493
90.3144413.44450.000394
100.2232372.44540.00796
11-0.006382-0.06990.472192
120.1903272.08490.019598
13-0.045884-0.50260.308073
140.1625421.78060.038758
150.0041450.04540.48193
160.0560430.61390.270214
170.1331461.45850.073652
18-0.081778-0.89580.186068
19-0.035019-0.38360.35097
200.0076420.08370.46671
21-0.009641-0.10560.458034
22-0.093796-1.02750.153131
23-0.059742-0.65440.25704
240.1172141.2840.100806
25-0.107875-1.18170.119829
260.0445620.48810.313167
270.0476230.52170.301427
28-0.158477-1.7360.042562
290.0421530.46180.322543
30-0.037474-0.41050.341084
310.024870.27240.392876
32-0.011358-0.12440.450595
33-0.046581-0.51030.3054
34-0.029799-0.32640.372333
35-0.071853-0.78710.216383
360.0033670.03690.485317
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Nov/22/t1290437813qxmydcu2egtgc5k/1z7dl1290437752.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/22/t1290437813qxmydcu2egtgc5k/1z7dl1290437752.ps (open in new window)


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


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