Send output to:
Browser Blue - Charts White
Browser Black/White
CSV
Data X:
153.4 159.5 157.4 169.1 172.6 161.7 159.2 157.4 153.9 144.8 142.2 140.1 143.4 153.3 166.9 170.6 182.8 170.3 156.6 155.2 154.7 151.6 152.1 153.2 149.5 149.7 144.3 140 137.8 132.2 128.9 123.1 120.4 122.8 126 124.5 120.6 114.7 111.7 109.1 108 107.7 99.9 103.7 103.4 103.4 104.7 105.8 105.3 103 103.8 103.4 105.8 101.4 97 94.3 96.6 97.1 95.7 96.9 97.4 95.3 93.6 91.5 93.1 91.7 94.3 93.9 90.9 88.3 91.3 91.7 92.4 92 95.6 95.8 96.4 99 107 109.7 116.2 115.9 113.8 112.6 113.7 115.9 110.3 111.3 113.4 108.2 104.8 106 110.9 115 118.4 121.4 128.8 131.7 141.7 142.9 139.4 134.7 125 113.6 111.5 108.5 112.3 116.6 115.5 120.1 132.9 128.1 129.3 132.5 131 124.9 120.8 122 122.1 127.4 135.2 137.3 135 136 138.4 134.7 138.4 133.9 133.6 141.2 151.8 155.4 156.6 161.6 160.7 156 159.5 168.7 169.9 169.9 185.9
Data Y:
145.3 143.6 142.8 155.9 156.2 149.8 152.7 155.5 159.3 143 141.4 142.8 146.4 152.3 164.3 168 171.3 162.7 150.2 142.5 138.2 138 145.1 138.4 131.8 130.8 126.3 123 124 120.8 122.1 106.5 104.3 108.7 113.8 112.5 106.1 98.4 96 99.3 97.5 95.3 88 94.7 99.4 98.9 96.4 95.3 99.5 101.6 103.9 106.6 108.3 102 93.8 91.6 97.7 94.8 98 103.8 97.8 91.2 89.3 87.5 90.4 94.2 102.2 101.3 96 90.8 93.2 90.9 91.1 90.2 94.3 96 99 103.3 113.1 112.8 112.1 107.4 111 110.5 110.8 112.4 111.5 116.2 122.5 121.3 113.9 110.7 120.8 141.1 147.4 148 158.1 165 187 190.3 182.4 168.8 151.2 120.1 112.5 106.2 107.1 108.5 106.5 108.3 125.6 124 127.2 136.9 135.8 124.3 115.4 113.6 114.4 118.4 117 116.5 115.4 113.6 117.4 116.9 116.4 111.1 110.2 118.9 131.8 130.6 138.3 148.4 148.7 144.3 152.5 162.9 167.2 166.5 185.6
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