Statistiques

Régression

<div id='jxgboxr' class='jxgbox' style='width:350px; height:350px;margin:auto;margin-top:20px;margin-bottom:40px;'></div>
<script type='text/javascript'>
brdr = JXG.JSXGraph.initBoard('jxgboxr', {boundingbox:[-2, 100, 220, -70], grid: false, axis:true, showCopyright:false});
brdr.suspendUpdate();
deg = brdr.create('slider',[[10,90],[100,90],[1,1,10]],{name:'degree',snapWidth:1});     
sr = brdr.create('slider',[[10,70],[100,70],[0,1,3]],{name:'scale'});     
pointlist = [];
for (i=0; i<30;i++) {
    pointlist.push(brdr.create('point', [function() { return 200*Math.random(); }, function() { return sr.Value()*30*Math.random()+20;}], { style:4, strokecolor:"#0000a0", name:" "})); 
}
brdr.unsuspendUpdate();
regression = JXG.Math.Numerics.regressionPolynomial(deg,pointlist); 
reg = brdr.create('functiongraph',[regression],{strokeColor:'green'});     
tr = brdr.create('text',[20,-40,
            function(){ return "r(x) = " + regression.getTerm();}
            ],
            {strokeColor:'black',fontSize:'14px'});     
</script>

Histogramme

<div id='boxa1a' class='jxgbox' style='width:350px; height:350px;margin:auto;margin-top:20px;margin-bottom:10px;'></div> 
<script type='text/javascript'> 
JXG.Options.axis.ticks.drawLabels = false; 
var board = JXG.JSXGraph.initBoard('boxa1a', {boundingbox: [-1, 0.057, 10, -0.005], axis:true,showCopyright:false,showNavigation:false,pan: { enabled: false} } );
board.suspendUpdate();           
var aq1 = board.create('point', [1, 0],{visible:false,fixed:true}); 
var bq1 = board.create('point', [3, 0],{visible:false,fixed:true}); 
var cq1 = board.create('point', [3, 0.004545454545455
],{visible:false,fixed:true}); 
var dq1 = board.create('point', [1, 0.004545454545455
 ],{visible:false,fixed:true}); 
var pq1 = board.create('polygon', [aq1, bq1, cq1, dq1], {borders: {strokeWidth:0},fillColor:'#8E1B77',fillOpacity:0.3,shadow:true }); 
var aq2 = board.create('point', [3, 0],{visible:false,fixed:true}); 
var bq2 = board.create('point', [4, 0],{visible:false,fixed:true}); 
var cq2 = board.create('point', [4, 0.013636363636364
],{visible:false,fixed:true}); 
var dq2 = board.create('point', [3, 0.013636363636364
 ],{visible:false,fixed:true}); 
var pq2 = board.create('polygon', [aq2, bq2, cq2, dq2], {borders: {strokeWidth:0},fillColor:'#DA2130',fillOpacity:0.3,shadow:true,fixed:true });
var aq3 = board.create('point', [4, 0],{visible:false,fixed:true}); 
var bq3 = board.create('point', [5, 0],{visible:false,fixed:true}); 
var cq3 = board.create('point', [5, 0.018181818181818
],{visible:false,fixed:true}); 
var dq3 = board.create('point', [4, 0.018181818181818
 ],{visible:false,fixed:true}); 
var pq3 = board.create('polygon', [aq3, bq3, cq3, dq3], {borders: {strokeWidth:0},fillColor:'#58FA82',fillOpacity:0.3,shadow:true,fixed:true });
var aq4 = board.create('point', [5, 0],{visible:false,fixed:true}); 
var bq4 = board.create('point', [5.5, 0],{visible:false,fixed:true}); 
var cq4 = board.create('point', [5.5, 0.054545454545455
],{visible:false,fixed:true}); 
var dq4 = board.create('point', [5, 0.054545454545455
 ],{visible:false,fixed:true}); 
var pq4 = board.create('polygon', [aq4, bq4, cq4, dq4], {borders: {strokeWidth:0},fillColor:'#5858FA',fillOpacity:0.3,shadow:true,fixed:true });
var aq5 = board.create('point', [5.5, 0],{visible:false,fixed:true}); 
var bq5 = board.create('point', [6.5, 0],{visible:false,fixed:true}); 
var cq5 = board.create('point', [6.5, 0.022727272727273
],{visible:false,fixed:true}); 
var dq5 = board.create('point', [5.5, 0.022727272727273
 ],{visible:false,fixed:true}); 
var pq5 = board.create('polygon', [aq5, bq5, cq5, dq5], {borders: {strokeWidth:0},fillColor:'#6E6E6E',fillOpacity:0.3,shadow:true,fixed:true });
var aq6 = board.create('point', [6.5, 0],{visible:false,fixed:true}); 
var bq6 = board.create('point', [8.5, 0],{visible:false,fixed:true}); 
var cq6 = board.create('point', [8.5, 0.004545454545455
],{visible:false,fixed:true}); 
var dq6 = board.create('point', [6.5, 0.004545454545455
 ],{visible:false,fixed:true}); 
var pq6 = board.create('polygon', [aq6, bq6, cq6, dq6], {borders: {strokeWidth:0},fillColor:'#AEB404',fillOpacity:0.3,shadow:true,fixed:true });
board.create('text',[1.4,-0.0017,'[120;140['],{fixed:true,fontSize:7});
board.create('text',[3.00,-0.0017,'[140;150['],{fixed:true,fontSize:7});
board.create('text',[4.00,-0.0017,'[150;160['],{fixed:true,fontSize:7});
board.create('text',[5.00,-0.0027,'[160;165['],{fixed:true,fontSize:7});
board.create('text',[5.55,-0.0012,'[165;175['],{fixed:true,fontSize:7});
board.create('text',[7.00,-0.0017,'[175;195['],{fixed:true,fontSize:7});
board.create('text',[1.4,0.00555,'0,00455'],{fixed:true,fontSize:7});
board.create('text',[3.00,0.01464,'0,01364'],{fixed:true,fontSize:7});
board.create('text',[4.00,0.01918,'0,01818'],{fixed:true,fontSize:7});
board.create('text',[5.00,0.05555,'0,05455'],{fixed:true,fontSize:7});
board.create('text',[5.55,0.02272,'0,02272'],{fixed:true,fontSize:7});
board.create('text',[7.00,0.00555,'0,00455'],{fixed:true,fontSize:7});
board.unsuspendUpdate();
</script>

Diagramme en boîte


<div id="Fed4BboxFtyy" class='jxgbox' style="margin:auto;width: 350px; height: 350px;margin-top:20px;margin-bottom:15px;"></div> 
<script type="text/javascript"> 
var intex1_board35 = JXG.JSXGraph.initBoard('Fed4BboxFtyy', {boundingbox: [-30, 6, 1000, -1], showcopyright: false, axes:false, shownavigation: false,grid:false,pan:{enabled:false}});
var absAxe = intex1_board35.create('arrow',[ [-50,0.00],[1000,0.00] ], {strokeColor: 'black', strokeWidth:2,fixed:true});
for(var i=-50;i<1000;i=i+25){ 
intex1_board35.create('segment',[ [i,-0.12] , [i,0.12] ],{strokeColor:'gray',fixed:true,strokeWidth:1}); 
intex1_board35.create('segment',[ [i,6] , [i,0.12] ],{strokeColor:'#a0a0a0',strokeOpacity: 0.5,fixed:true,strokeWidth:1}); 
}
for(var i=0;i<1000;i=i+100){ 
	intex1_board35.create('segment',[ [i,-0.2] , [i,0.2] ],{strokeColor:'black',fixed:true,strokeWidth:1}); 
	var a = 0
	if(i == 0){ a = 20}
	intex1_board35.create('text',[i-30+a,-0.5,i],{fixed:true}); 
} 
intex1_board35.create('segment',[ [200,2] , [200,2.5] ],{strokeColor:'#303030',fixed:true,strokeWidth:1}); 
intex1_board35.create('segment',[ [200,2.25] , [425,2.25] ],{strokeColor:'#303030',fixed:true,strokeWidth:1}); 
intex1_board35.create('segment',[ [650,2.25] , [950,2.25] ],{strokeColor:'#303030',fixed:true,strokeWidth:1}); 
intex1_board35.create('segment',[ [950,2] , [950,2.5] ],{strokeColor:'#303030',fixed:true,strokeWidth:1}); 
intex1_board35.create('segment',[ [650,1.5] , [650,3] ],{strokeColor:'#303030',fixed:true,strokeWidth:1}); 
intex1_board35.create('segment',[ [425,1.5] , [425,3] ],{strokeColor:'#303030',fixed:true,strokeWidth:1}); 
intex1_board35.create('segment',[ [600,1.5] , [600,3] ],{strokeColor:'#303030',fixed:true,strokeWidth:1}); 
intex1_board35.create('segment',[ [425,1.5] , [650,1.5] ],{strokeColor:'#303030',fixed:true,strokeWidth:1}); 
intex1_board35.create('segment',[ [425,3] , [650,3] ],{strokeColor:'#303030',fixed:true,strokeWidth:1}); 
</script>