Send output to:
Browser Blue - Charts White
Browser Black/White
CSV
Data X:
0.072 0.073 0.073 0.073 0.074 0.073 0.074 0.074 0.076 0.076 0.077 0.077 0.078 0.078 0.080 0.081 0.081 0.082 0.081 0.081 0.081 0.080 0.082 0.084 0.084 0.085 0.086 0.085 0.083 0.078 0.078 0.080 0.086 0.089 0.089 0.086 0.083 0.083 0.083 0.084 0.085 0.084 0.086 0.085 0.085 0.085 0.085 0.085 0.085 0.085 0.085 0.086 0.086 0.086 0.086 0.084 0.080 0.079 0.080 0.080 0.080 0.080 0.079 0.079 0.079 0.080 0.079 0.075 0.072 0.070 0.069 0.071 0.071 0.072 0.071 0.069 0.068 0.067 0.067 0.069 0.073 0.074 0.073 0.071 0.070 0.071 0.075 0.077 0.078 0.077 0.077 0.078 0.080 0.081 0.081 0.080 0.081 0.082 0.083 0.084 0.085 0.085 0.085 0.085 0.085 0.083 0.082 0.081 0.079 0.076 0.073 0.071 0.070 0.070 0.070 0.070 0.069 0.068 0.067 0.066
Data Y:
0.0213 0.0218 0.0290 0.0263 0.0267 0.0181 0.0133 0.0088 0.0128 0.0126 0.0126 0.0129 0.0110 0.0137 0.0121 0.0174 0.0176 0.0148 0.0104 0.0162 0.0149 0.0179 0.0180 0.0158 0.0186 0.0174 0.0159 0.0126 0.0113 0.0192 0.0261 0.0226 0.0241 0.0226 0.0203 0.0286 0.0255 0.0227 0.0226 0.0257 0.0307 0.0276 0.0251 0.0287 0.0314 0.0311 0.0316 0.0247 0.0257 0.0289 0.0263 0.0238 0.0169 0.0196 0.0219 0.0187 0.0160 0.0163 0.0122 0.0121 0.0149 0.0164 0.0166 0.0177 0.0182 0.0178 0.0128 0.0129 0.0137 0.0112 0.0151 0.0224 0.0294 0.0309 0.0346 0.0364 0.0439 0.0415 0.0521 0.0580 0.0591 0.0539 0.0546 0.0472 0.0314 0.0263 0.0232 0.0193 0.0062 0.0060 -0.0037 -0.0110 -0.0168 -0.0078 -0.0119 -0.0097 -0.0012 0.0026 0.0062 0.0070 0.0166 0.0180 0.0227 0.0246 0.0257 0.0232 0.0291 0.0301 0.0286 0.0310 0.0322 0.0339 0.0352 0.0341 0.0335 0.0367 0.0375 0.0360 0.0355 0.0357
Chart options
Title:
Label y-axis:
Label x-axis:
R Code
bitmap(file='test1.png') histx <- hist(x, plot=FALSE) histy <- hist(y, plot=FALSE) maxcounts <- max(c(histx$counts, histx$counts)) xrange <- c(min(x),max(x)) yrange <- c(min(y),max(y)) nf <- layout(matrix(c(2,0,1,3),2,2,byrow=TRUE), c(3,1), c(1,3), TRUE) par(mar=c(4,4,1,1)) plot(x, y, xlim=xrange, ylim=yrange, xlab=xlab, ylab=ylab) par(mar=c(0,4,1,1)) barplot(histx$counts, axes=FALSE, ylim=c(0, maxcounts), space=0) par(mar=c(4,0,1,1)) barplot(histy$counts, axes=FALSE, xlim=c(0, maxcounts), space=0, horiz=TRUE) dev.off() lx = length(x) makebiased = (lx-1)/lx varx = var(x)*makebiased vary = var(y)*makebiased corxy <- cor.test(x,y,method='pearson') cxy <- as.matrix(corxy$estimate)[1,1] load(file='createtable') a<-table.start() a<-table.row.start(a) a<-table.element(a,'Pearson Product Moment Correlation - Ungrouped Data',3,TRUE) a<-table.row.end(a) a<-table.row.start(a) a<-table.element(a,'Statistic',1,TRUE) a<-table.element(a,'Variable X',1,TRUE) a<-table.element(a,'Variable Y',1,TRUE) a<-table.row.end(a) a<-table.row.start(a) a<-table.element(a,hyperlink('http://www.xycoon.com/arithmetic_mean.htm','Mean',''),header=TRUE) a<-table.element(a,mean(x)) a<-table.element(a,mean(y)) a<-table.row.end(a) a<-table.row.start(a) a<-table.element(a,hyperlink('http://www.xycoon.com/biased.htm','Biased Variance',''),header=TRUE) a<-table.element(a,varx) a<-table.element(a,vary) a<-table.row.end(a) a<-table.row.start(a) a<-table.element(a,hyperlink('http://www.xycoon.com/biased1.htm','Biased Standard Deviation',''),header=TRUE) a<-table.element(a,sqrt(varx)) a<-table.element(a,sqrt(vary)) a<-table.row.end(a) a<-table.row.start(a) a<-table.element(a,hyperlink('http://www.xycoon.com/covariance.htm','Covariance',''),header=TRUE) a<-table.element(a,cov(x,y),2) a<-table.row.end(a) a<-table.row.start(a) a<-table.element(a,hyperlink('http://www.xycoon.com/pearson_correlation.htm','Correlation',''),header=TRUE) a<-table.element(a,cxy,2) a<-table.row.end(a) a<-table.row.start(a) a<-table.element(a,hyperlink('http://www.xycoon.com/coeff_of_determination.htm','Determination',''),header=TRUE) a<-table.element(a,cxy*cxy,2) a<-table.row.end(a) a<-table.row.start(a) a<-table.element(a,hyperlink('http://www.xycoon.com/ttest_statistic.htm','T-Test',''),header=TRUE) a<-table.element(a,as.matrix(corxy$statistic)[1,1],2) a<-table.row.end(a) a<-table.row.start(a) a<-table.element(a,'p-value (2 sided)',header=TRUE) a<-table.element(a,(p2 <- as.matrix(corxy$p.value)[1,1]),2) a<-table.row.end(a) a<-table.row.start(a) a<-table.element(a,'p-value (1 sided)',header=TRUE) a<-table.element(a,p2/2,2) a<-table.row.end(a) a<-table.row.start(a) a<-table.element(a,'Degrees of Freedom',header=TRUE) a<-table.element(a,lx-2,2) a<-table.row.end(a) a<-table.row.start(a) a<-table.element(a,'Number of Observations',header=TRUE) a<-table.element(a,lx,2) a<-table.row.end(a) a<-table.end(a) table.save(a,file='mytable.tab')
Compute
Summary of computational transaction
Raw Input
view raw input (R code)
Raw Output
view raw output of R engine
Computing time
0 seconds
R Server
Big Analytics Cloud Computing Center
Click here to blog (archive) this computation