Home » date » 2008 » Dec » 09 »

*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, 09 Dec 2008 11:11:21 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2008/Dec/09/t1228846343kqxk0p21jon8gpr.htm/, Retrieved Tue, 09 Dec 2008 18:12:23 +0000
 
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/2008/Dec/09/t1228846343kqxk0p21jon8gpr.htm/},
    year = {2008},
}
@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 = {2008},
    note = {{ISBN} 3-900051-07-0},
    url = {http://www.R-project.org},
}
 
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
 
Feedback Forum:
2008-11-27 13:41:43 [a2386b643d711541400692649981f2dc] [reply
test

Post a new message
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
106.7 110.2 125.9 100.1 106.4 114.8 81.3 87 104.2 108 105 94.5 92 95.9 108.8 103.4 102.1 110.1 83.2 82.7 106.8 113.7 102.5 96.6 92.1 95.6 102.3 98.6 98.2 104.5 84 73.8 103.9 106 97.2 102.6 89 93.8 116.7 106.8 98.5 118.7 90 91.9 113.3 113.1 104.1 108.7 96.7 101 116.9 105.8 99 129.4 83 88.9 115.9 104.2 113.4 112.2 100.8 107.3 126.6 102.9 117.9 128.8 87.5 93.8 122.7 126.2 124.6 116.7 115.2 111.1 129.9 113.3 118.5 137.9 103.6 101.7 127.4 137.5 128.3 118.2 117.1 124.2 126 132.1
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time3 seconds
R Server'Herman Ole Andreas Wold' @ 193.190.124.10:1001


Autocorrelation Function
Time lag kACF(k)T-STATP-value
1-0.708206-5.57640
20.1843291.45140.075853
30.1517541.19490.118336
4-0.241318-1.90010.031034
50.1301321.02470.154753
60.1060640.83510.203421
7-0.278237-2.19080.016116
80.2959052.330.01154
9-0.225622-1.77650.040274
100.0605830.4770.317508
110.2024361.5940.058013
12-0.376328-2.96320.002157
130.3221312.53650.006865
14-0.168847-1.32950.094277
150.0535630.42180.33733
160.0078060.06150.475593
17-0.006858-0.0540.478554
18-0.047073-0.37070.35608
190.1105240.87030.193755
20-0.2007-1.58030.059562
210.313972.47220.008093
22-0.351283-2.7660.003734
230.2494641.96430.026992
24-0.058274-0.45890.323972
25-0.122101-0.96140.170037
260.1952371.53730.064655
27-0.127306-1.00240.160021
280.001920.01510.493992
290.0681730.53680.296666
30-0.064067-0.50450.307861
310.01160.09130.463759
320.0842640.66350.254737
33-0.187619-1.47730.072327
340.234241.84440.034951
35-0.1819-1.43230.078543
360.0614560.48390.31508
370.0482790.38020.352566
38-0.08091-0.63710.263207
390.0248750.19590.422679
400.0440450.34680.364953
41-0.044749-0.35240.362885
420.0131280.10340.459003
43-0.030049-0.23660.406871
440.0648750.51080.305645
45-0.0527-0.4150.339803
46-0.011646-0.09170.463616
470.0736530.57990.282028
48-0.093259-0.73430.232759
490.0669420.52710.300003
50-0.025071-0.19740.422078
510.0070630.05560.477913
52-0.019692-0.15510.438639
530.0204390.16090.436333
54-0.002576-0.02030.491941
550.0065710.05170.47945
56-0.024363-0.19180.424249
570.0401680.31630.376425
58-0.049231-0.38760.349803
590.037410.29460.384653
60-0.010523-0.08290.467116


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.708206-5.57640
2-0.636431-5.01132e-06
3-0.287791-2.26610.013474
4-0.230425-1.81440.03723
5-0.31747-2.49980.007544
60.0573290.45140.326635
70.0179130.14110.444144
80.1622261.27740.103117
9-0.019356-0.15240.439681
10-0.250773-1.97460.026387
110.1644171.29460.100125
120.0140910.1110.456005
130.0414350.32630.372664
14-0.196833-1.54990.063132
150.030690.24170.404923
16-0.046492-0.36610.357776
17-0.067381-0.53060.29881
180.0073010.05750.47717
190.092230.72620.235218
20-0.147223-1.15920.125402
210.052210.41110.341208
22-0.140846-1.1090.135851
230.0402810.31720.37609
240.100350.79020.216224
25-0.034915-0.27490.392146
26-0.038308-0.30160.381969
27-0.020769-0.16350.435315
280.0803560.63270.264619
29-0.095014-0.74810.228602
30-0.00166-0.01310.494805
310.0178590.14060.444313
32-0.004982-0.03920.484417
33-0.004899-0.03860.484676
34-0.054089-0.42590.335829
350.1546361.21760.113994
360.0449940.35430.362165
370.0102080.08040.468096
38-0.056684-0.44630.328458
39-0.013079-0.1030.459155
40-0.078318-0.61670.269853
410.0564160.44420.329216
420.0569850.44870.327606
43-0.05232-0.4120.340891
44-0.048379-0.38090.352277
45-0.065963-0.51940.302669
46-0.053044-0.41770.338818
47-0.083855-0.66030.255761
480.0063660.05010.48009
49-0.005158-0.04060.483867
50-0.024516-0.1930.42378
51-0.015788-0.12430.450733
52-0.062599-0.49290.311912
53-0.038231-0.3010.382198
540.0263040.20710.4183
55-0.034466-0.27140.393497
560.0069570.05480.478246
570.1245110.98040.16535
58-0.020407-0.16070.436431
590.0152020.11970.452552
60-0.043548-0.34290.366419
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/09/t1228846343kqxk0p21jon8gpr/1blay1228846276.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/09/t1228846343kqxk0p21jon8gpr/1blay1228846276.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/09/t1228846343kqxk0p21jon8gpr/24aql1228846276.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/09/t1228846343kqxk0p21jon8gpr/24aql1228846276.ps (open in new window)


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