Home » date » 2007 » Dec » 14 » attachments

IP,ACF,1ste poging

R Software Module: rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Fri, 14 Dec 2007 03:28:55 -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/14/t1197627284f8ru9yz21b3bacr.htm/, Retrieved Fri, 14 Dec 2007 11:14:46 +0100
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
106.5 112.3 102.8 96.5 101.0 98.9 105.1 103.0 99.0 104.3 94.6 90.4 108.9 111.4 100.8 102.5 98.2 98.7 113.3 104.6 99.3 111.8 97.3 97.7 115.6 111.9 107.0 107.1 100.6 99.2 108.4 103.0 99.8 115.0 90.8 95.9 114.4 108.2 112.6 109.1 105.0 105.0 118.5 103.7 112.5 116.6 96.6 101.9 116.5 119.3 115.4 108.5 111.5 108.8 121.8 109.6 112.2 119.6 103.4 105.3 113.5
 
Text written by user:
 
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.81020
10.1930621.50790.068376
2-0.028313-0.22110.587135
30.3365522.62860.005417
40.0221250.17280.431689
50.2117541.65390.051648
60.4958593.87280.000133
70.0993410.77590.220408
80.0341230.26650.395374
90.175041.36710.088304
10-0.244284-1.90790.969444
110.082890.64740.259905
120.5936124.63631e-05
13-0.03338-0.26070.602401
14-0.100557-0.78540.782363
150.1085580.84790.199914
16-0.152639-1.19210.88109
170.0451940.3530.362662
180.2384051.8620.033711
19-0.054409-0.4250.663816
20-0.034828-0.2720.606737
210.0152720.11930.452723
22-0.333717-2.60640.994258
230.007650.05970.476275
240.3227422.52070.007172
25-0.097558-0.7620.775488
26-0.065686-0.5130.695106
270.0117340.09160.463641
28-0.192265-1.50160.930825
290.0073240.05720.477286
300.0750550.58620.279953
31-0.066904-0.52250.698406
32-0.013185-0.1030.54084
33-0.11421-0.8920.812052
34-0.295414-2.30730.987775
35-0.063746-0.49790.689819
360.0912860.7130.239293
37-0.140351-1.09620.861345
38-0.145856-1.13920.870458
39-0.11683-0.91250.817443
40-0.193173-1.50870.931735
41-0.08185-0.63930.737478
42-0.067131-0.52430.699019
43-0.113096-0.88330.809732
44-0.078612-0.6140.729245
45-0.14508-1.13310.869199
46-0.218408-1.70580.953436
47-0.087418-0.68280.751327


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
00.1930621.50790.068376
1-0.068125-0.53210.701696
20.371032.89780.002607
3-0.159147-1.2430.890684
40.3774752.94820.002263
50.2746322.14490.017974
60.0587030.45850.324118
7-0.049386-0.38570.649475
8-0.037675-0.29430.615219
9-0.473147-3.69540.999764
100.1195870.9340.176992
110.4413943.44740.000516
12-0.081959-0.64010.737755
13-0.082089-0.64110.738081
14-0.082787-0.64660.739837
150.0751730.58710.279644
16-0.194239-1.51710.93279
17-0.10732-0.83820.797403
180.0003380.00260.498952
19-0.008935-0.06980.527702
200.0282840.22090.412953
210.0332310.25950.398044
220.0689360.53840.296128
23-0.020727-0.16190.564034
240.0947780.74020.230996
250.0465860.36380.358614
26-0.054557-0.42610.664235
27-0.103929-0.81170.789943
28-0.029637-0.23150.591138
29-0.200708-1.56760.938924
300.0304420.23780.406434
31-0.071716-0.56010.711275
32-0.063699-0.49750.689688
330.0899250.70230.242569
34-0.03523-0.27520.607937
350.0245850.1920.424183
36-0.115077-0.89880.813848
37-0.113879-0.88940.811366
38-0.063561-0.49640.689311
390.028840.22520.411269
400.018020.14070.44427
41-0.004342-0.03390.513471
42-0.071877-0.56140.7117
430.0237870.18580.426616
440.0883910.69040.246295
450.0188850.14750.441613
46-0.023935-0.18690.573835
47-0.123382-0.96360.830485
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/14/t1197627284f8ru9yz21b3bacr/11tfg1197628133.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/14/t1197627284f8ru9yz21b3bacr/11tfg1197628133.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/14/t1197627284f8ru9yz21b3bacr/2kt1c1197628133.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/14/t1197627284f8ru9yz21b3bacr/2kt1c1197628133.ps (open in new window)


 
Parameters (Session):
par1 = 48 ; par2 = 1 ; par3 = 0 ; par4 = 0 ; par5 = 12 ;
 
Parameters (R input):
par1 = 48 ; par2 = 1 ; par3 = 0 ; 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