Home » date » 2009 » Aug » 11 »

opgave 6.3

*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, 11 Aug 2009 11:44:48 -0600
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2009/Aug/11/t1250012794pkqsqwpx9egvlwg.htm/, Retrieved Tue, 11 Aug 2009 19:46:34 +0200
 
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/Aug/11/t1250012794pkqsqwpx9egvlwg.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:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
108.87 106.38 104.77 105.38 106.74 110 110.73 115.7 115.44 113.66 118.4 116.71 119.7 114.17 110.52 111.27 111.41 111.62 113.91 118.54 122.26 120.44 121.37 121.49 125 117.24 117.18 115.15 115.27 114.6 117.48 120.8 118.62 116.79 115.46 112.83 115.56 106.66 103.39 102.65 103.22 104.1 104.32
 
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'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Autocorrelation Function
Time lag kACF(k)T-STATP-value
1-0.00832-0.05390.478626
20.1258580.81570.20965
3-0.065139-0.42220.337534
4-0.016727-0.10840.457097
5-0.015037-0.09750.461416
6-0.313555-2.03210.024252
7-0.117273-0.760.225746
80.0015280.00990.496074
9-0.091037-0.590.27918
100.0698090.45240.32665
110.0241510.15650.438187
120.5184973.36020.000833
130.0001560.0010.499599
140.0806480.52270.301979
15-0.165279-1.07110.145114
160.0363560.23560.407438
17-0.135145-0.87580.193049
18-0.246298-1.59620.058972
19-0.047617-0.30860.379577
20-0.061942-0.40140.345069
210.0457570.29650.384139
22-0.091264-0.59150.278693
230.0552540.35810.361036
240.2718521.76180.04269
25-0.04362-0.28270.389401
260.0869470.56350.288052
27-0.150453-0.9750.16756
28-0.072239-0.46820.321044
29-0.011238-0.07280.471143
30-0.141586-0.91760.182038
31-0.019959-0.12940.448849
32-0.070948-0.45980.324017
33-0.032711-0.2120.416569
34-0.015059-0.09760.461359
350.0208210.13490.446655
360.0774080.50170.309264


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.00832-0.05390.478626
20.1257980.81530.209761
3-0.064197-0.4160.339747
4-0.033654-0.21810.414203
50.0012010.00780.496914
6-0.318049-2.06120.022755
7-0.135749-0.87980.192
80.083790.5430.294993
9-0.121638-0.78830.217474
100.0341550.22130.412947
110.0699580.45340.326305
120.4575012.96490.002487
13-0.065726-0.4260.336159
14-0.023851-0.15460.43895
15-0.191542-1.24130.110685
160.0278290.18040.428871
17-0.146201-0.94750.174404
18-0.036324-0.23540.407518
190.1127970.7310.234416
20-0.041288-0.26760.395168
210.0715550.46370.322619
22-0.199189-1.29090.101901
23-0.000457-0.0030.498827
24-0.106468-0.690.246996
25-0.03506-0.22720.41068
260.0198990.1290.449003
270.0591470.38330.35171
28-0.214169-1.3880.086232
290.1438150.9320.178324
300.078330.50760.307181
31-0.137638-0.8920.188739
32-0.081837-0.53040.299326
33-0.136916-0.88730.189981
340.0630360.40850.342484
35-0.122651-0.79490.215579
360.029560.19160.424501
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Aug/11/t1250012794pkqsqwpx9egvlwg/1nsvf1250012684.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Aug/11/t1250012794pkqsqwpx9egvlwg/1nsvf1250012684.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Aug/11/t1250012794pkqsqwpx9egvlwg/25hy71250012684.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Aug/11/t1250012794pkqsqwpx9egvlwg/25hy71250012684.ps (open in new window)


 
Parameters (Session):
 
Parameters (R input):
par1 = 36 ; par2 = 1 ; par3 = 1 ; par4 = 0 ; par5 = 12 ;
 
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 (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='lags',ylab='ACF')
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