Home » date » 2007 » Dec » 05 » attachments

Partial Autocorrelation(2)

R Software Module: rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Wed, 05 Dec 2007 07:16:05 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2007/Dec/05/t1196863429gebbrjx3qckfufj.htm/, Retrieved Wed, 05 Dec 2007 15:03:53 +0100
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
103,9 104,5 106,3 108,6 110,0 110,4 109,8 108,8 108,9 109,7 110,4 111,5 112,7 113,8 113,9 113,4 113,8 114,1 113,5 113,9 116,1 118,4 120,5 122,0 121,4 120,5 120,8 110,4 109,3 108,9 110,0 112,3 114,5 114,8 113,3 112,2 112,8 113,8 114,2 114,7 115,2 115,0 114,9 114,4 113,8 114,5 116,0 116,7 116,4 116,0 115,9 115,4 115,2 115,8
 
Text written by user:
industriële productie workshop 5 vraag 1
 
Output produced by software:


Summary of compuational 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


Autocorrelation Function
Time lag kACF(k)T-STATP-value
017.21110
1-0.387784-2.79640.996387
20.0217520.15690.437982
30.01250.09010.464262
4-0.145086-1.04620.849852
5-0.106509-0.7680.777033
60.0010780.00780.496914
70.0124930.09010.464281
80.0706750.50960.306229
90.0694670.50090.309267
10-0.00291-0.0210.50833
11-0.011452-0.08260.532749
12-0.000111-8e-040.500317
13-0.04249-0.30640.619739
14-0.000718-0.00520.502056
15-0.033155-0.23910.594011
160.0022130.0160.493663
170.0905940.65330.258227
18-0.048979-0.35320.637314
19-0.064348-0.4640.677715
200.0728910.52560.300693
210.0383150.27630.391709
22-0.01129-0.08140.532286
23-0.019234-0.13870.554889
24-0.019646-0.14170.556057
25-0.027853-0.20080.5792
260.0104920.07570.469991
270.0181280.13070.44825
280.0160360.11560.454191
290.0117220.08450.466481
30-0.006597-0.04760.51888
31-0.032362-0.23340.591802
32-0.02131-0.15370.560768
330.0172880.12470.450634
340.0215540.15540.438543
35-0.00311-0.02240.508902
360.002160.01560.493817
370.0146750.10580.458064
38-0.003238-0.02330.509269
39-0.017208-0.12410.549137
40-0.012845-0.09260.536721
41-0.003685-0.02660.510548
420.0081640.05890.476641
430.0133430.09620.461858
440.0091460.0660.473835
45-0.002035-0.01470.505826
46-0.006934-0.050.519844
47-0.002875-0.02070.508232


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
0-0.387784-2.79640.996387
1-0.15139-1.09170.859998
2-0.043961-0.3170.623747
3-0.184358-1.32940.905244
4-0.299375-2.15880.98225
5-0.268413-1.93560.970816
6-0.216022-1.55780.937321
7-0.135613-0.97790.833679
8-0.077902-0.56180.711653
9-0.109083-0.78660.782459
10-0.139464-1.00570.840389
11-0.100656-0.72580.764404
12-0.082853-0.59750.723604
13-0.047835-0.34490.634235
14-0.093856-0.67680.749235
15-0.123401-0.88990.811179
160.0002330.00170.499332
17-0.029285-0.21120.583214
18-0.1751-1.26270.893829
19-0.137545-0.99190.837069
20-0.003136-0.02260.508977
210.0550280.39680.346565
22-0.007696-0.05550.522023
23-0.070754-0.51020.693969
24-0.084497-0.60930.727516
25-0.019522-0.14080.555704
260.0568130.40970.341861
270.0682180.49190.31242
280.0237570.17130.432322
29-0.00371-0.02680.510621
30-0.014023-0.10110.540079
31-0.01516-0.10930.543315
320.0051210.03690.485342
330.0181940.13120.448062
340.0111260.08020.46818
35-0.002181-0.01570.506245
36-0.021454-0.15470.561174
37-0.032649-0.23540.592603
38-0.012639-0.09110.536133
390.008560.06170.47551
40-0.007452-0.05370.521323
41-0.040536-0.29230.614394
42-0.054075-0.38990.650914
43-0.037171-0.2680.605138
44-0.015568-0.11230.544477
45-0.015564-0.11220.544464
46-0.027292-0.19680.577626
47-0.034907-0.25170.598874
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/05/t1196863429gebbrjx3qckfufj/1p5121196864163.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/05/t1196863429gebbrjx3qckfufj/1p5121196864163.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/05/t1196863429gebbrjx3qckfufj/2v0v31196864163.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/05/t1196863429gebbrjx3qckfufj/2v0v31196864163.ps (open in new window)


 
Parameters:
par1 = 48 ; par2 = 1.5 ; par3 = 2 ; 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 1:par1) {
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(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-1,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(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:

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