Home » date » 2010 » Nov » 16 »

opdracht 6 bis deel 2 (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: Tue, 16 Nov 2010 19:21:59 +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/16/t1289935282dvpxq7tifwueg1j.htm/, Retrieved Tue, 16 Nov 2010 20:21:24 +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/16/t1289935282dvpxq7tifwueg1j.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:
KDGP2W12
 
Dataseries X:
» Textbox « » Textfile « » CSV «
2834 4683 4120 3849 8435 12854 15883 10520 12562 5060 4520 2150 2905 4820 3950 4053 8700 13520 15400 11100 11950 4900 4633 2300 2945 3960 3900 3767 8820 11980 14085 11600 9814 4930 4360 2640 3050 5485 4366 4790 10100 14830 17930 13580 12490 6400 4980 4930 5856 5120 5100 5623 12035 19846 17030 15860 14890 8053 6080 5987 5682 4980 5450 6035 13240 18400 17689 16490 14062 9556 7555 4328
 
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'George Udny Yule' @ 72.249.76.132


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.2745462.31340.011802
20.1515081.27660.102947
3-0.174005-1.46620.073506
4-0.235038-1.98050.025764
5-0.316735-2.66890.004712
6-0.258249-2.1760.016441
7-0.318431-2.68310.004534
8-0.228174-1.92260.029269
9-0.15131-1.2750.10324
100.086480.72870.234293
110.3270732.7560.003715
120.7322066.16970
130.2342881.97410.026128
140.1378931.16190.124582
15-0.162771-1.37150.087265
16-0.156095-1.31530.096324
17-0.254387-2.14350.01775
18-0.213682-1.80050.038013
19-0.255209-2.15040.017464
20-0.188005-1.58420.058801
21-0.159421-1.34330.091726
220.1206271.01640.15644
230.2599212.19010.0159
240.5252794.42611.7e-05
250.2109361.77740.039894
260.0740650.62410.267287
27-0.101902-0.85860.196715
28-0.108024-0.91020.182891
29-0.210968-1.77770.039872
30-0.170894-1.440.077134
31-0.18479-1.55710.06195
32-0.175032-1.47480.072338
33-0.087406-0.73650.231928
340.066570.56090.288305
350.2084751.75660.041645
360.4272413.60.000293
370.1295751.09180.139303
380.056150.47310.318785
39-0.063454-0.53470.297273
40-0.064679-0.5450.293731
41-0.182452-1.53740.064324
42-0.106634-0.89850.185974
43-0.146084-1.23090.111206
44-0.136389-1.14920.127159
45-0.036717-0.30940.378968
460.0109630.09240.463328
470.2017721.70020.046739
480.2718562.29070.012476


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.2745462.31340.011802
20.0823390.69380.245036
3-0.255654-2.15420.017311
4-0.162619-1.37020.087463
5-0.186687-1.57310.060076
6-0.155742-1.31230.096822
7-0.302461-2.54860.00649
8-0.289521-2.43950.008603
9-0.3167-2.66860.004716
10-0.227749-1.9190.029499
11-0.048338-0.40730.342507
120.5421214.5681e-05
13-0.1414-1.19150.11872
14-0.135882-1.1450.128034
15-0.064884-0.54670.293143
160.0805930.67910.249645
170.0122140.10290.459159
18-0.025592-0.21560.414943
190.0517540.43610.332048
200.0313550.26420.396196
21-0.075173-0.63340.264247
220.1338211.12760.131644
23-0.11162-0.94050.175069
24-0.071848-0.60540.273422
250.0681980.57460.283672
26-0.069745-0.58770.279306
270.0381630.32160.374363
28-0.02583-0.21760.414164
29-0.052002-0.43820.331295
30-0.029494-0.24850.402225
310.0175780.14810.441336
32-0.013958-0.11760.453354
330.0495210.41730.33887
34-0.15885-1.33850.092503
350.0126360.10650.457755
360.11220.94540.173827
37-0.111994-0.94370.174267
38-0.035024-0.29510.384382
39-0.000816-0.00690.497265
400.0599890.50550.307394
41-0.07058-0.59470.276961
420.0172910.14570.442288
430.0661880.55770.289398
44-0.082119-0.6920.245613
450.0644390.5430.294423
460.0300660.25330.400368
47-0.022916-0.19310.423719
48-0.088288-0.74390.229687
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Nov/16/t1289935282dvpxq7tifwueg1j/1z9un1289935318.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/16/t1289935282dvpxq7tifwueg1j/1z9un1289935318.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/16/t1289935282dvpxq7tifwueg1j/2sib81289935318.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/16/t1289935282dvpxq7tifwueg1j/2sib81289935318.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