Home » date » 2010 » Nov » 15 »

Opgave 6bis; Opdracht 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, 15 Nov 2010 18:37:44 +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/15/t1289846468y5fjrqv3qixa2n7.htm/, Retrieved Mon, 15 Nov 2010 19:41:10 +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/15/t1289846468y5fjrqv3qixa2n7.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 «
13,81 13,9 13,91 13,94 13,96 14,01 14,01 14,06 14,09 14,13 14,12 14,13 14,14 14,16 14,21 14,26 14,29 14,32 14,33 14,39 14,48 14,44 14,46 14,48 14,53 14,58 14,62 14,62 14,61 14,65 14,68 14,7 14,78 14,84 14,89 14,89 15,13 15,25 15,33 15,36 15,4 15,4 15,41 15,47 15,54 15,55 15,59 15,65 15,75 15,86 15,89 15,94 15,93 15,95 15,99 15,99 16,06 16,08 16,07 16,11 16,15 16,18 16,3 16,42 16,49 16,5 16,58 16,64 16,66 16,81 16,91 16,92 16,95 17,11 17,16 17,16 17,27 17,34 17,39 17,43 17,45 17,5 17,56 17,65
 
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'Gwilym Jenkins' @ 72.249.127.135
R Framework
error message
Warning: there are blank lines in the 'Data' field.
Please, use NA for missing data - blank lines are simply
 deleted and are NOT treated as missing values.


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.9640148.83530
20.9294118.51820
30.8946918.20
40.8597497.87970
50.8237937.55020
60.7880177.22230
70.7516286.88880
80.7156276.55880
90.6809786.24130
100.6457665.91850
110.6098165.58910
120.5757435.27681e-06
130.5409034.95752e-06
140.5048874.62747e-06
150.4701644.30912.2e-05
160.4380444.01476.4e-05
170.4055523.71690.000181
180.3733923.42220.000481
190.3417883.13250.001193
200.3100512.84170.002816
210.279832.56470.006052
220.2503732.29470.012122
230.2225962.04010.022239
240.1946061.78360.039051
250.167021.53080.064793
260.1398361.28160.101752
270.1119081.02570.154
280.0832090.76260.223912
290.0547430.50170.308585
300.025650.23510.407357
31-0.003399-0.03120.48761
32-0.032871-0.30130.381977
33-0.062378-0.57170.284526
34-0.09126-0.83640.202648
35-0.11984-1.09830.137595
36-0.14721-1.34920.090449
37-0.169907-1.55720.061589
38-0.190715-1.74790.042065
39-0.210215-1.92670.028702
40-0.229839-2.10650.019072
41-0.24843-2.27690.012667
42-0.266552-2.4430.008331
43-0.285033-2.61240.005325
44-0.303395-2.78070.003347
45-0.320704-2.93930.002123
46-0.337987-3.09770.001326
47-0.353784-3.24250.00085
48-0.367086-3.36440.000579


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.9640148.83530
20.0012380.01130.495486
3-0.019222-0.17620.43029
4-0.021516-0.19720.422075
5-0.033269-0.30490.380594
6-0.0177-0.16220.435761
7-0.028579-0.26190.397009
8-0.015524-0.14230.443602
9-0.001383-0.01270.494959
10-0.027909-0.25580.39937
11-0.031985-0.29310.385067
120.0036740.03370.486611
13-0.031924-0.29260.385278
14-0.039567-0.36260.358894
15-0.006264-0.05740.477178
160.01380.12650.449828
17-0.025499-0.23370.407892
18-0.019253-0.17650.430181
19-0.016012-0.14680.441839
20-0.024993-0.22910.409688
21-0.003782-0.03470.486217
22-0.013782-0.12630.449891
230.0023890.02190.49129
24-0.024735-0.22670.410603
25-0.020944-0.1920.424119
26-0.017953-0.16450.434848
27-0.034053-0.31210.377869
28-0.038931-0.35680.361065
29-0.024618-0.22560.41102
30-0.034514-0.31630.37627
31-0.027268-0.24990.401631
32-0.035496-0.32530.372872
33-0.031183-0.28580.387869
34-0.021728-0.19910.421316
35-0.028886-0.26470.395928
36-0.014334-0.13140.447899
370.0372290.34120.366898
380.0010140.00930.496303
39-0.009469-0.08680.465524
40-0.028882-0.26470.395941
41-0.015599-0.1430.443331
42-0.023175-0.21240.416154
43-0.035676-0.3270.37225
44-0.028336-0.25970.397864
45-0.014214-0.13030.44833
46-0.031116-0.28520.388103
47-0.012654-0.1160.453975
480.0063170.05790.476983
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Nov/15/t1289846468y5fjrqv3qixa2n7/1jv251289846262.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/15/t1289846468y5fjrqv3qixa2n7/1jv251289846262.ps (open in new window)


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