Quartiles and Box Plot (Comparing Two Data Sets)
2015-11-03 10:52
This GeoGebra example demonstrates how to compute quartiles and construct box plots for two random data sets for visual comparison. Using commands such as BoxPlot, Median, Mean, Mode, Frequency, and Sort, it dynamically displays data sorting, median, mean, mode, and frequency distribution. Interactive buttons allow users to regenerate random data via Shuffle and observe real-time updates of the bo
<?xml version="1.0" encoding="utf-8"?>
<geogebra format="5.0" version="5.0.286.0" id="b0d9539a-eb18-4b12-901e-a748f33cadf1" xsi:noNamespaceSchemaLocation="http://www.geogebra.org/ggb.xsd" xmlns="" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >
<gui>
<window width="960" height="660" />
<perspectives>
<perspective id="tmp">
<panes>
<pane location="" divider="0.5075757575757576" orientation="0" />
</panes>
<views>
<view id="4097" visible="false" inframe="true" stylebar="true" location="1,1,1,1" size="400" window="48,103,1184,613" />
<view id="8" toolbar="1001 | 1002 | 1003 || 1005 | 1004 || 1006 | 1007 | 1010 || 1008 1009 || 66 68 || 6" visible="false" inframe="false" stylebar="true" location="1,3" size="300" window="100,100,600,400" />
<view id="1" visible="true" inframe="false" stylebar="false" location="0" size="335" window="100,100,600,400" />
<view id="4" toolbar="0 || 2020 , 2021 , 2022 , 66 || 2001 , 2003 , 2002 , 2004 , 2005 || 2040 , 2041 , 2042 , 2044 , 2043" visible="false" inframe="false" stylebar="true" location="1" size="291" window="100,100,600,400" />
<view id="2" visible="false" inframe="false" stylebar="true" location="1" size="309" window="100,100,250,400" />
<view id="16" visible="true" inframe="false" stylebar="false" location="2" size="315" window="262,79,500,500" />
<view id="32" visible="false" inframe="false" stylebar="true" location="1" size="150" window="50,50,500,500" />
<view id="64" toolbar="0" visible="false" inframe="true" stylebar="true" location="1" size="150" window="50,50,500,500" />
<view id="128" visible="false" inframe="true" stylebar="false" location="1" size="480" window="50,50,500,500" />
<view id="70" toolbar="0 || 2020 || 2021 || 2022" visible="false" inframe="true" stylebar="true" location="1" size="150" window="50,50,500,500" />
<view id="43" visible="false" inframe="false" stylebar="false" location="1" size="450" window="50,50,500,500" />
<view id="512" toolbar="0 | 1 501 5 19 , 67 | 2 15 45 18 , 7 37 | 514 3 9 , 13 44 , 47 | 16 | 551 550 11 , 22 , 23 , 55 56 57 , 12 | 69 | 510 511 , 512 513 | 533 531 , 534 532 , 522 523 , 537 536 , 535 | 521 520 | 36 , 38 49 560 | 571 30 29 570 31 33 | 17 | 540 40 41 42 , 27 28 35 , 6 , 502" visible="false" inframe="false" stylebar="true" location="1" size="1107" window="100,100,600,400" />
</views>
<toolbar show="false" items="0 39 | 1 501 67 , 5 19 , 72 | 2 15 45 , 18 65 , 7 37 | 4 3 8 9 , 13 44 , 58 , 47 | 16 51 64 , 70 | 10 34 53 11 , 24 20 22 , 21 23 | 55 56 57 , 12 | 36 46 , 38 49 50 , 71 | 30 29 54 32 31 33 | 17 26 62 73 , 14 68 | 25 52 60 61 | 40 41 42 , 27 28 35 , 6" position="1" help="false" />
<input show="false" cmd="true" top="true" />
<dockBar show="false" east="false" />
</perspective>
</perspectives>
<labelingStyle val="3"/>
<font size="24"/>
</gui>
<euclidianView>
<viewNumber viewNo="1"/>
<size width="958" height="335"/>
<coordSystem xZero="21.366929954971067" yZero="306.1723576448638" scale="37.454419172218444" yscale="35.646544705608"/>
<evSettings axes="true" grid="false" gridIsBold="false" pointCapturing="2" rightAngleStyle="1" checkboxSize="26" gridType="0"/>
<bgColor r="255" g="255" b="255"/>
<axesColor r="0" g="0" b="0"/>
<gridColor r="192" g="192" b="192"/>
<lineStyle axes="3" grid="10"/>
<axis id="0" show="true" label="" unitLabel="" tickStyle="1" showNumbers="true" tickDistance="1" tickExpression="" positiveAxis="true"/>
<axis id="1" show="false" label="" unitLabel="" tickStyle="1" showNumbers="true" positiveAxis="true"/>
<grid distX="1" distY="0.25" distTheta="0.5235987755982988"/>
</euclidianView>
<euclidianView>
<viewNumber viewNo="2"/>
<size width="958" height="315"/>
<coordSystem xZero="489.4828340410063" yZero="33.20407625272902" scale="43.042987832800215" yscale="43.04298783280034"/>
<evSettings axes="false" grid="false" gridIsBold="false" pointCapturing="1" rightAngleStyle="1" checkboxSize="26" gridType="0"/>
<bgColor r="255" g="255" b="255"/>
<axesColor r="0" g="0" b="0"/>
<gridColor r="192" g="192" b="192"/>
<lineStyle axes="1" grid="0"/>
<axis id="0" show="false" label="" unitLabel="" tickStyle="1" showNumbers="true"/>
<axis id="1" show="false" label="" unitLabel="" tickStyle="1" showNumbers="true"/>
<grid distX="1" distY="0.25" distTheta="0.5235987755982988"/>
</euclidianView>
<kernel>
<continuous val="false"/>
<usePathAndRegionParameters val="true"/>
<decimals val="2"/>
<angleUnit val="degree"/>
<algebraStyle val="2" spreadsheet="0"/>
<coordStyle val="0"/>
<angleFromInvTrig val="false"/>
</kernel>
<scripting blocked="false" disabled="false"/>
<construction title="" author="" date="">
<element type="boolean" label="sorted">
<value val="false"/>
<show object="true" label="true" ev="3"/>
<objColor r="0" g="0" b="0" alpha="0"/>
<layer val="9"/>
<labelOffset x="11" y="114"/>
<labelMode val="3"/>
<checkbox fixed="true"/>
<caption val="Sort"/>
</element>
<element type="numeric" label="seperation">
<value val="0.4"/>
<show object="false" label="true"/>
<objColor r="0" g="0" b="255" alpha="0.1"/>
<layer val="0"/>
<labelMode val="1"/>
<slider min="-5" max="5" absoluteScreenLocation="true" width="200" x="30" y="90" fixed="false" horizontal="true" showAlgebra="false"/>
<lineStyle thickness="2" type="0" typeHidden="1"/>
<animation step="1" speed="1" type="0" playing="false"/>
</element>
<expression label ="listNx" exp="{5, 6, 7, 8, 9, 10}"/>
<element type="list" label="listNx">
<show object="true" label="true" ev="11"/>
<objColor r="0" g="0" b="0" alpha="0.1"/>
<bgColor r="255" g="255" b="255" alpha="255"/>
<layer val="9"/>
<labelOffset x="16" y="63"/>
<labelMode val="3"/>
<animation step="1" speed="1" type="0" playing="false"/>
<ggbscript onUpdate="UpdateConstruction[]"/>
<lineStyle thickness="2" type="0" typeHidden="1"/>
<ggbscript onUpdate="UpdateConstruction[]"/>
<selectedIndex val="5"/>
<comboBox val="true"/>
<pointSize val="3"/>
<pointStyle val="-1"/>
<caption val="n_x="/>
</element>
<command name="SelectedElement">
<input a0="listNx"/>
<output a0="nX"/>
</command>
<element type="numeric" label="nX">
<value val="10"/>
<objColor r="0" g="0" b="0" alpha="0.1"/>
<selectionAllowed val="false"/>
</element>
<command name="Sequence">
<input a0="Segment[(0, i), (20, i)]" a1="i" a2="seperation" a3="(20 * seperation)" a4="seperation"/>
<output a0="listGrid"/>
</command>
<element type="list" label="listGrid">
<show object="true" label="true" ev="8"/>
<objColor r="192" g="192" b="192" alpha="0"/>
<bgColor r="255" g="255" b="255" alpha="255"/>
<layer val="0"/>
<labelMode val="0"/>
<selectionAllowed val="false"/>
<lineStyle thickness="2" type="0" typeHidden="1"/>
<pointSize val="3"/>
<pointStyle val="-1"/>
</element>
<command name="Point">
<input a0="listGrid"/>
<output a0="A"/>
</command>
<element type="point" label="A">
<show object="true" label="false" ev="4"/>
<objColor r="128" g="128" b="128" alpha="0"/>
<layer val="9"/>
<labelOffset x="21" y="47"/>
<labelMode val="0"/>
<animation step="0.1" speed="1" type="1" playing="false"/>
<coords x="5" y="0.8" z="1"/>
<pointSize val="6"/>
<pointStyle val="0"/>
</element>
<command name="Point">
<input a0="listGrid"/>
<output a0="B"/>
</command>
<element type="point" label="B">
<show object="true" label="false" ev="4"/>
<objColor r="128" g="128" b="128" alpha="0"/>
<layer val="9"/>
<labelMode val="0"/>
<animation step="0.1" speed="1" type="1" playing="false"/>
<coords x="3" y="0.4" z="1"/>
<pointSize val="6"/>
<pointStyle val="0"/>
</element>
<command name="Point">
<input a0="listGrid"/>
<output a0="C"/>
</command>
<element type="point" label="C">
<show object="true" label="false" ev="4"/>
<objColor r="128" g="128" b="128" alpha="0"/>
<layer val="9"/>
<labelOffset x="-8" y="0"/>
<labelMode val="0"/>
<animation step="0.1" speed="1" type="1" playing="false"/>
<coords x="2.9999999999999982" y="0.8" z="1"/>
<pointSize val="6"/>
<pointStyle val="0"/>
</element>
<command name="Point">
<input a0="listGrid"/>
<output a0="D"/>
</command>
<element type="point" label="D">
<show object="true" label="false" ev="4"/>
<condition showObject="nX ≥ 4"/>
<objColor r="128" g="128" b="128" alpha="0"/>
<layer val="9"/>
<labelMode val="0"/>
<animation step="0.1" speed="1" type="1" playing="false"/>
<coords x="2" y="0.4" z="1"/>
<pointSize val="6"/>
<pointStyle val="0"/>
</element>
<command name="Point">
<input a0="listGrid"/>
<output a0="E"/>
</command>
<element type="point" label="E">
<show object="true" label="false" ev="4"/>
<condition showObject="nX ≥ 5"/>
<objColor r="128" g="128" b="128" alpha="0"/>
<layer val="9"/>
<labelMode val="0"/>
<animation step="0.1" speed="1" type="1" playing="false"/>
<coords x="11" y="0.8" z="1"/>
<pointSize val="6"/>
<pointStyle val="0"/>
</element>
<command name="Point">
<input a0="listGrid"/>
<output a0="F"/>
</command>
<element type="point" label="F">
<show object="false" label="false" ev="4"/>
<condition showObject="nX ≥ 6"/>
<objColor r="128" g="128" b="128" alpha="0"/>
<layer val="9"/>
<labelMode val="0"/>
<animation step="0.1" speed="1" type="1" playing="false"/>
<coords x="16" y="0.4" z="1"/>
<pointSize val="6"/>
<pointStyle val="0"/>
</element>
<command name="Point">
<input a0="listGrid"/>
<output a0="G"/>
</command>
<element type="point" label="G">
<show object="true" label="false" ev="4"/>
<condition showObject="nX ≥ 7"/>
<objColor r="128" g="128" b="128" alpha="0"/>
<layer val="9"/>
<labelMode val="0"/>
<animation step="0.1" speed="1" type="1" playing="false"/>
<coords x="11" y="0.4" z="1"/>
<pointSize val="6"/>
<pointStyle val="0"/>
</element>
<command name="Point">
<input a0="listGrid"/>
<output a0="H"/>
</command>
<element type="point" label="H">
<show object="true" label="false" ev="4"/>
<condition showObject="nX ≥ 8"/>
<objColor r="128" g="128" b="128" alpha="0"/>
<layer val="9"/>
<labelMode val="0"/>
<animation step="0.1" speed="1" type="1" playing="false"/>
<coords x="12" y="0.4" z="1"/>
<pointSize val="6"/>
<pointStyle val="0"/>
</element>
<command name="Point">
<input a0="listGrid"/>
<output a0="I"/>
</command>
<element type="point" label="I">
<show object="true" label="false" ev="4"/>
<condition showObject="nX ≥ 9"/>
<objColor r="128" g="128" b="128" alpha="0"/>
<layer val="9"/>
<labelMode val="0"/>
<animation step="0.1" speed="1" type="1" playing="false"/>
<coords x="5" y="0.4" z="1"/>
<pointSize val="6"/>
<pointStyle val="0"/>
</element>
<command name="Point">
<input a0="listGrid"/>
<output a0="J"/>
</command>
<element type="point" label="J">
<show object="true" label="false" ev="4"/>
<condition showObject="nX ≥ 10"/>
<objColor r="128" g="128" b="128" alpha="0"/>
<layer val="9"/>
<labelMode val="0"/>
<animation step="0.1" speed="1" type="1" playing="false"/>
<coords x="6" y="0.4" z="1"/>
<pointSize val="6"/>
<pointStyle val="0"/>
</element>
<expression label="listDataX" exp="round(Take[x({A, B, C, D, E, F, G, H, I, J}), 1, nX])" />
<element type="list" label="listDataX">
<objColor r="0" g="0" b="0" alpha="0"/>
<bgColor r="255" g="255" b="255" alpha="255"/>
<lineStyle thickness="2" type="0" typeHidden="1"/>
<pointSize val="3"/>
<pointStyle val="-1"/>
</element>
<command name="Sort">
<input a0="listDataX"/>
<output a0="listDataXsorted"/>
</command>
<element type="list" label="listDataXsorted">
<objColor r="0" g="100" b="0" alpha="0"/>
<bgColor r="255" g="255" b="255" alpha="255"/>
<lineStyle thickness="2" type="0" typeHidden="1"/>
<pointSize val="3"/>
<pointStyle val="-1"/>
</element>
<command name="Mean">
<input a0="listDataX"/>
<output a0="meanX"/>
</command>
<element type="numeric" label="meanX">
<value val="7.4"/>
<objColor r="0" g="0" b="255" alpha="0.1"/>
<selectionAllowed val="false"/>
</element>
<element type="boolean" label="box1">
<value val="false"/>
<show object="true" label="true" ev="3"/>
<objColor r="127" g="0" b="255" alpha="0"/>
<layer val="0"/>
<labelOffset x="11" y="157"/>
<labelMode val="3"/>
<checkbox fixed="true"/>
<caption val="Range of set y"/>
</element>
<element type="boolean" label="box2">
<value val="false"/>
<show object="true" label="true" ev="3"/>
<objColor r="127" g="0" b="255" alpha="0"/>
<layer val="0"/>
<labelOffset x="269" y="157"/>
<labelMode val="3"/>
<checkbox fixed="true"/>
<caption val="IQR of set y"/>
</element>
<element type="button" label="button1">
<show object="true" label="true"/>
<objColor r="0" g="0" b="0" alpha="0"/>
<bgColor r="255" g="255" b="0" alpha="255"/>
<layer val="0"/>
<labelOffset x="789" y="12"/>
<labelMode val="3"/>
<fixed val="true"/>
<auxiliary val="true"/>
<ggbscript val="UpdateConstruction[] SetValue[K,listPositionY(1)] SetValue[L,listPositionY(2)] SetValue[M,listPositionY(3)] SetValue[N,listPositionY(4)] SetValue[O,listPositionY(5)] SetValue[P,listPositionY(6)] SetValue[Q,listPositionY(7)] SetValue[R,listPositionY(8)] SetValue[S,listPositionY(9)] SetValue[T,listPositionY(10)] SetValue[box1,false] SetValue[box2,false] SetValue[box3,false] SetValue[box4,false] SetValue[box5,false] SetValue[box6,false] SetValue[sorted,false]"/>
<font serif="false" sizeM="1.4" size="10" style="0"/>
<dimensions width="160" height="30" />
<caption val="Random data y"/>
</element>
<element type="boolean" label="box3">
<value val="false"/>
<show object="true" label="true" ev="3"/>
<objColor r="255" g="127" b="0" alpha="0"/>
<layer val="0"/>
<labelOffset x="528" y="157"/>
<labelMode val="3"/>
<checkbox fixed="true"/>
<caption val="Box plot of set y"/>
</element>
<element type="button" label="button2">
<show object="false" label="true"/>
<condition showObject="Max[listDataY] < 20"/>
<objColor r="0" g="0" b="0" alpha="0"/>
<bgColor r="153" g="255" b="255" alpha="255"/>
<layer val="0"/>
<labelOffset x="789" y="83"/>
<labelMode val="3"/>
<fixed val="true"/>
<auxiliary val="true"/>
<ggbscript val="SetValue[K,K+(1,0)] SetValue[L,L+(1,0)] SetValue[M,M+(1,0)] SetValue[N,N+(1,0)] SetValue[O,O+(1,0)] SetValue[P,P+(1,0)] SetValue[Q,Q+(1,0)] SetValue[R,R+(1,0)] SetValue[S,S+(1,0)] SetValue[T,T+(1,0)] "/>
<font serif="false" sizeM="1.4" size="10" style="0"/>
<dimensions width="160" height="30" />
<caption val="Add 1 to all"/>
</element>
<element type="button" label="button3">
<show object="true" label="true"/>
<condition showObject="Min[listDataY] > 0"/>
<objColor r="0" g="0" b="0" alpha="0"/>
<bgColor r="153" g="255" b="255" alpha="255"/>
<layer val="0"/>
<labelOffset x="789" y="119"/>
<labelMode val="3"/>
<fixed val="true"/>
<auxiliary val="true"/>
<ggbscript val="SetValue[K,K-(1,0)] SetValue[L,L-(1,0)] SetValue[M,M-(1,0)] SetValue[N,N-(1,0)] SetValue[O,O-(1,0)] SetValue[P,P-(1,0)] SetValue[Q,Q-(1,0)] SetValue[R,R-(1,0)] SetValue[S,S-(1,0)] SetValue[T,T-(1,0)]"/>
<font serif="false" sizeM="1.4" size="10" style="0"/>
<dimensions width="160" height="30" />
<caption val="Subtract 1 from all"/>
</element>
<command name="If">
<input a0="nX ≥ 11" a1="0.7" a2="If[nX ≥ 9, 0.85, 1]"/>
<output a0="scale"/>
</command>
<element type="numeric" label="scale">
<value val="0.85"/>
<objColor r="0" g="0" b="0" alpha="0.1"/>
<selectionAllowed val="false"/>
</element>
<command name="Median">
<input a0="listDataX"/>
<output a0="medianX"/>
</command>
<element type="numeric" label="medianX">
<value val="5.5"/>
<objColor r="255" g="127" b="0" alpha="0.1"/>
<selectionAllowed val="false"/>
</element>
<command name="Ray">
<input a0="(0, 0)" a1="(1, 0)"/>
<output a0="b"/>
</command>
<element type="ray" label="b">
<show object="false" label="false" ev="7"/>
<objColor r="0" g="0" b="0" alpha="0"/>
<layer val="9"/>
<labelMode val="0"/>
<selectionAllowed val="false"/>
<coords x="0" y="1" z="0"/>
<lineStyle thickness="2" type="0" typeHidden="1"/>
<outlyingIntersections val="false"/>
<keepTypeOnTransform val="true"/>
</element>
<command name="Mode">
<input a0="listDataX"/>
<output a0="listModeX"/>
</command>
<element type="list" label="listModeX">
<objColor r="0" g="100" b="0" alpha="0.1"/>
<bgColor r="255" g="255" b="255" alpha="255"/>
<lineStyle thickness="2" type="0" typeHidden="1"/>
<pointSize val="3"/>
<pointStyle val="-1"/>
</element>
<element type="button" label="button0">
<show object="true" label="true" ev="3"/>
<objColor r="0" g="0" b="0" alpha="0"/>
<layer val="8"/>
<labelOffset x="877" y="130"/>
<labelMode val="3"/>
<fixed val="true"/>
<auxiliary val="true"/>
<ggbscript val="SetValue[lang,If[lang==1,2,1]] RunClickScript[buttonLang]"/>
<font serif="false" sizeM="1.4" size="10" style="0"/>
<caption val="中文"/>
</element>
<element type="button" label="buttonLang">
<show object="false" label="true" ev="3"/>
<objColor r="0" g="0" b="0" alpha="0"/>
<layer val="8"/>
<labelOffset x="749" y="130"/>
<labelMode val="0"/>
<fixed val="true"/>
<auxiliary val="true"/>
<ggbscript val="SetCaption[button0,If[lang==1,"ENG","中文"]] SetCaption[listNx,If[lang==1,"數據x數目=","n_x="]] SetCaption[listNy,If[lang==1,"數據y數目=","n_y="]] SetCaption[sorted,If[lang==1,"排序","Sort"]] SetCaption[box1,If[lang==1,"y的分佈域","Range of set y"]] SetCaption[box2,If[lang==1,"y的四分位數間距","IQR of set y"]] SetCaption[box3,If[lang==1,"y的框線圖","Box plot of set y"]] SetCaption[box4,If[lang==1,"x的分佈域","Range of set x"]] SetCaption[box5,If[lang==1,"x的四分位數間距","IQR of set x"]] SetCaption[box6,If[lang==1,"x的框線圖","Box plot of set x"]] SetCaption[button1,If[lang==1,"隨機數據y","Random data y"]] SetCaption[buttonSet1,If[lang==1,"設y為x","Set y as x"]] SetCaption[button2,If[lang==1,"y所有數據加1","Add 1 to all"]] SetCaption[button3,If[lang==1,"y所有數據減1","Subtract 1 from all"]] SetCaption[button4,If[lang==1,"隨機數據x","Random data x"]] SetCaption[buttonSet2,If[lang==1,"設x為y","Set x as y"]] SetCaption[button5,If[lang==1,"x所有數據加1","Add 1 to all"]] SetCaption[button6,If[lang==1,"x所有數據減1","Subtract 1 from all"]] "/>
<font serif="false" sizeM="1.4" size="10" style="0"/>
<dimensions width="160" height="30" />
</element>
<element type="numeric" label="lang">
<value val="2"/>
<symbolic val="true" />
<show object="false" label="true"/>
<objColor r="0" g="0" b="0" alpha="0.1"/>
<layer val="8"/>
<labelMode val="1"/>
<animation step="1" speed="1" type="0" playing="false"/>
</element>
<command name="Sequence">
<input a0="Random[0, 20]" a1="i" a2="1" a3="nX"/>
<output a0="listRandX"/>
</command>
<element type="list" label="listRandX">
<objColor r="255" g="0" b="255" alpha="0.1"/>
<bgColor r="255" g="255" b="255" alpha="255"/>
<lineStyle thickness="2" type="0" typeHidden="1"/>
<pointSize val="3"/>
<pointStyle val="-1"/>
</element>
<command name="Frequency">
<input a0="listRandX"/>
<output a0="listFreqX"/>
</command>
<element type="list" label="listFreqX">
<objColor r="255" g="0" b="255" alpha="0.1"/>
<bgColor r="255" g="255" b="255" alpha="255"/>
<lineStyle thickness="2" type="0" typeHidden="1"/>
<pointSize val="3"/>
<pointStyle val="-1"/>
</element>
<command name="Sort">
<input a0="listRandX"/>
<output a0="listRandSortX"/>
</command>
<element type="list" label="listRandSortX">
<objColor r="255" g="0" b="255" alpha="0.1"/>
<bgColor r="255" g="255" b="255" alpha="255"/>
<lineStyle thickness="2" type="0" typeHidden="1"/>
<pointSize val="3"/>
<pointStyle val="-1"/>
</element>
<command name="Flatten">
<input a0="Zip[Sequence[(seperation * i), i, 1, k], k, listFreqX]"/>
<output a0="listHeightX"/>
</command>
<element type="list" label="listHeightX">
<objColor r="255" g="0" b="255" alpha="0.1"/>
<bgColor r="255" g="255" b="255" alpha="255"/>
<lineStyle thickness="2" type="0" typeHidden="1"/>
<pointSize val="3"/>
<pointStyle val="-1"/>
</element>
<command name="Shuffle">
<input a0="Zip[(h, k), h, listRandSortX, k, listHeightX]"/>
<output a0="listPositionX"/>
</command>
<element type="list" label="listPositionX">
<show object="false" label="true" ev="4"/>
<objColor r="255" g="0" b="255" alpha="0"/>
<bgColor r="255" g="255" b="255" alpha="255"/>
<layer val="8"/>
<labelMode val="0"/>
<lineStyle thickness="2" type="0" typeHidden="1"/>
<pointSize val="3"/>
<pointStyle val="-1"/>
</element>
<command name="Point">
<input a0="listGrid"/>
<output a0="K"/>
</command>
<element type="point" label="K">
<show object="true" label="false" ev="4"/>
<objColor r="125" g="125" b="255" alpha="0"/>
<layer val="9"/>
<labelOffset x="69" y="-40"/>
<labelMode val="0"/>
<animation step="0.1" speed="1" type="1" playing="false"/>
<coords x="5" y="4.800000000000001" z="1"/>
<pointSize val="6"/>
<pointStyle val="0"/>
</element>
<command name="Point">
<input a0="listGrid"/>
<output a0="L"/>
</command>
<element type="point" label="L">
<show object="true" label="false" ev="4"/>
<objColor r="125" g="125" b="255" alpha="0"/>
<layer val="9"/>
<labelOffset x="19" y="-18"/>
<labelMode val="0"/>
<animation step="0.1" speed="1" type="1" playing="false"/>
<coords x="3.000000000000007" y="4.4" z="1"/>
<pointSize val="6"/>
<pointStyle val="0"/>
</element>
<command name="Point">
<input a0="listGrid"/>
<output a0="M"/>
</command>
<element type="point" label="M">
<show object="true" label="false" ev="4"/>
<objColor r="125" g="125" b="255" alpha="0"/>
<layer val="9"/>
<labelMode val="0"/>
<animation step="0.1" speed="1" type="1" playing="false"/>
<coords x="3.000000000000007" y="4.800000000000001" z="1"/>
<pointSize val="6"/>
<pointStyle val="0"/>
</element>
<command name="Point">
<input a0="listGrid"/>
<output a0="N"/>
</command>
<element type="point" label="N">
<show object="true" label="false" ev="4"/>
<objColor r="125" g="125" b="255" alpha="0"/>
<layer val="9"/>
<labelMode val="0"/>
<animation step="0.1" speed="1" type="1" playing="false"/>
<coords x="1.999999999999993" y="4.4" z="1"/>
<pointSize val="6"/>
<pointStyle val="0"/>
</element>
<command name="Point">
<input a0="listGrid"/>
<output a0="O"/>
</command>
<element type="point" label="O">
<show object="true" label="false" ev="4"/>
<objColor r="125" g="125" b="255" alpha="0"/>
<layer val="9"/>
<labelMode val="0"/>
<animation step="0.1" speed="1" type="1" playing="false"/>
<coords x="11.000000000000014" y="4.800000000000001" z="1"/>
<pointSize val="6"/>
<pointStyle val="0"/>
</element>
<command name="Point">
<input a0="listGrid"/>
<output a0="P"/>
</command>
<element type="point" label="P">
<show object="true" label="false" ev="4"/>
<condition showObject="nY ≥ 6"/>
<objColor r="125" g="125" b="255" alpha="0"/>
<layer val="9"/>
<labelMode val="0"/>
<animation step="0.1" speed="1" type="1" playing="false"/>
<coords x="16.000000000000014" y="4.4" z="1"/>
<pointSize val="6"/>
<pointStyle val="0"/>
</element>
<command name="Point">
<input a0="listGrid"/>
<output a0="Q"/>
</command>
<element type="point" label="Q">
<show object="true" label="false" ev="4"/>
<condition showObject="nY ≥ 7"/>
<objColor r="125" g="125" b="255" alpha="0"/>
<layer val="9"/>
<labelMode val="0"/>
<animation step="0.1" speed="1" type="1" playing="false"/>
<coords x="11.000000000000014" y="4.4" z="1"/>
<pointSize val="6"/>
<pointStyle val="0"/>
</element>
<command name="Point">
<input a0="listGrid"/>
<output a0="R"/>
</command>
<element type="point" label="R">
<show object="true" label="false" ev="4"/>
<condition showObject="nY ≥ 8"/>
<objColor r="125" g="125" b="255" alpha="0"/>
<layer val="9"/>
<labelMode val="0"/>
<animation step="0.1" speed="1" type="1" playing="false"/>
<coords x="11.999999999999993" y="4.4" z="1"/>
<pointSize val="6"/>
<pointStyle val="0"/>
</element>
<command name="Point">
<input a0="listGrid"/>
<output a0="S"/>
</command>
<element type="point" label="S">
<show object="true" label="false" ev="4"/>
<condition showObject="nY ≥ 9"/>
<objColor r="125" g="125" b="255" alpha="0"/>
<layer val="9"/>
<labelMode val="0"/>
<animation step="0.1" speed="1" type="1" playing="false"/>
<coords x="5" y="4.4" z="1"/>
<pointSize val="6"/>
<pointStyle val="0"/>
</element>
<command name="Point">
<input a0="listGrid"/>
<output a0="T"/>
</command>
<element type="point" label="T">
<show object="true" label="false" ev="4"/>
<condition showObject="nY ≥ 10"/>
<objColor r="125" g="125" b="255" alpha="0"/>
<layer val="9"/>
<labelMode val="0"/>
<animation step="0.1" speed="1" type="1" playing="false"/>
<coords x="6.000000000000014" y="4.4" z="1"/>
<pointSize val="6"/>
<pointStyle val="0"/>
</element>
<expression label ="listNy" exp="{5, 6, 7, 8, 9, 10}"/>
<element type="list" label="listNy">
<show object="true" label="true" ev="11"/>
<objColor r="127" g="0" b="255" alpha="0.1"/>
<bgColor r="255" g="255" b="255" alpha="255"/>
<layer val="8"/>
<labelOffset x="18" y="13"/>
<labelMode val="3"/>
<animation step="1" speed="1" type="0" playing="false"/>
<ggbscript onUpdate="UpdateConstruction[]"/>
<lineStyle thickness="2" type="0" typeHidden="1"/>
<ggbscript onUpdate="UpdateConstruction[]"/>
<selectedIndex val="5"/>
<comboBox val="true"/>
<pointSize val="3"/>
<pointStyle val="-1"/>
<symbolic val="true" />
<caption val="n_y="/>
</element>
<command name="SelectedElement">
<input a0="listNy"/>
<output a0="nY"/>
</command>
<element type="numeric" label="nY">
<value val="10"/>
<symbolic val="true" />
<objColor r="0" g="0" b="0" alpha="0.1"/>
<selectionAllowed val="false"/>
</element>
<command name="Sequence">
<input a0="Random[0, 20]" a1="i" a2="1" a3="nY"/>
<output a0="listRandY"/>
</command>
<element type="list" label="listRandY">
<objColor r="0" g="100" b="0" alpha="0.1"/>
<bgColor r="255" g="255" b="255" alpha="255"/>
<lineStyle thickness="2" type="0" typeHidden="1"/>
<pointSize val="3"/>
<pointStyle val="-1"/>
<symbolic val="true" />
</element>
<command name="Sort">
<input a0="listRandY"/>
<output a0="listRandSortY"/>
</command>
<element type="list" label="listRandSortY">
<objColor r="0" g="100" b="0" alpha="0.1"/>
<bgColor r="255" g="255" b="255" alpha="255"/>
<lineStyle thickness="2" type="0" typeHidden="1"/>
<pointSize val="3"/>
<pointStyle val="-1"/>
</element>
<command name="Frequency">
<input a0="listRandY"/>
<output a0="listFreqY"/>
</command>
<element type="list" label="listFreqY">
<objColor r="0" g="100" b="0" alpha="0.1"/>
<bgColor r="255" g="255" b="255" alpha="255"/>
<lineStyle thickness="2" type="0" typeHidden="1"/>
<pointSize val="3"/>
<pointStyle val="-1"/>
</element>
<expression label="listDataY" exp="round(Take[x({K, L, M, N, O, P, Q, R, S, T}), 1, nY])" />
<element type="list" label="listDataY">
<objColor r="0" g="100" b="0" alpha="0.1"/>
<bgColor r="255" g="255" b="255" alpha="255"/>
<lineStyle thickness="2" type="0" typeHidden="1"/>
<pointSize val="3"/>
<pointStyle val="-1"/>
</element>
<command name="Sort">
<input a0="listDataY"/>
<output a0="listDataYsorted"/>
</command>
<element type="list" label="listDataYsorted">
<objColor r="0" g="100" b="0" alpha="0.1"/>
<bgColor r="255" g="255" b="255" alpha="255"/>
<lineStyle thickness="2" type="0" typeHidden="1"/>
<pointSize val="3"/>
<pointStyle val="-1"/>
</element>
<command name="Flatten">
<input a0="Zip[Sequence[(seperation * (i + 10)), i, 1, k], k, listFreqY]"/>
<output a0="listHeightY"/>
</command>
<element type="list" label="listHeightY">
<objColor r="0" g="100" b="0" alpha="0.1"/>
<bgColor r="255" g="255" b="255" alpha="255"/>
<lineStyle thickness="2" type="0" typeHidden="1"/>
<pointSize val="3"/>
<pointStyle val="-1"/>
</element>
<command name="Shuffle">
<input a0="Zip[(h, k), h, listRandSortY, k, listHeightY]"/>
<output a0="listPositionY"/>
</command>
<element type="list" label="listPositionY">
<show object="false" label="false" ev="11"/>
<objColor r="0" g="100" b="0" alpha="0"/>
<bgColor r="255" g="255" b="255" alpha="255"/>
<layer val="8"/>
<labelMode val="0"/>
<lineStyle thickness="2" type="0" typeHidden="1"/>
<pointSize val="3"/>
<pointStyle val="-1"/>
</element>
<command name="Mean">
<input a0="listDataY"/>
<output a0="meanY"/>
</command>
<element type="numeric" label="meanY">
<value val="7.4"/>
<symbolic val="true" />
<objColor r="0" g="0" b="0" alpha="0.1"/>
<selectionAllowed val="false"/>
</element>
<command name="Median">
<input a0="listDataY"/>
<output a0="medianY"/>
</command>
<element type="numeric" label="medianY">
<value val="5.5"/>
<symbolic val="true" />
<objColor r="0" g="0" b="0" alpha="0.1"/>
<selectionAllowed val="false"/>
</element>
<command name="Mode">
<input a0="listDataY"/>
<output a0="listModeY"/>
</command>
<element type="list" label="listModeY">
<objColor r="0" g="100" b="0" alpha="0.1"/>
<bgColor r="255" g="255" b="255" alpha="255"/>
<lineStyle thickness="2" type="0" typeHidden="1"/>
<pointSize val="3"/>
<pointStyle val="-1"/>
</element>
<expression label="textDataY" exp=""\text{" + (LaTeX[If[lang ≟ 1, "數據y", "Data set \textit{y}"]]) + ":} " + (LaTeX[TableText[{If[sorted, listDataYsorted, listDataY]}, "c"]]) + """ />
<element type="text" label="textDataY">
<show object="true" label="true" ev="11"/>
<objColor r="127" g="0" b="255" alpha="0"/>
<bgColor r="153" g="255" b="255" alpha="255"/>
<layer val="0"/>
<labelMode val="0"/>
<selectionAllowed val="false"/>
<isLaTeX val="true"/>
<font serif="true" sizeM="1" size="0" style="1"/>
<absoluteScreenLocation x="235" y="12"/>
</element>
<expression label="textDataX" exp=""\text{" + (LaTeX[If[lang ≟ 1, "數據x", "Data set \textit{x}"]]) + ":} " + (LaTeX[TableText[{If[sorted, listDataXsorted, listDataX]}, "c"]]) + """ />
<element type="text" label="textDataX">
<show object="true" label="true" ev="11"/>
<objColor r="0" g="0" b="0" alpha="0"/>
<bgColor r="153" g="255" b="255" alpha="255"/>
<layer val="0"/>
<labelMode val="0"/>
<selectionAllowed val="false"/>
<isLaTeX val="true"/>
<font serif="true" sizeM="1" size="0" style="1"/>
<absoluteScreenLocation x="235" y="67"/>
</element>
<element type="boolean" label="box4">
<value val="false"/>
<show object="true" label="true" ev="3"/>
<objColor r="0" g="0" b="0" alpha="0"/>
<layer val="0"/>
<labelOffset x="11" y="233"/>
<labelMode val="3"/>
<checkbox fixed="true"/>
<caption val="Range of set x"/>
</element>
<element type="boolean" label="box5">
<value val="false"/>
<show object="true" label="true" ev="3"/>
<objColor r="0" g="0" b="0" alpha="0"/>
<layer val="0"/>
<labelOffset x="269" y="233"/>
<labelMode val="3"/>
<checkbox fixed="true"/>
<caption val="IQR of set x"/>
</element>
<element type="boolean" label="box6">
<value val="false"/>
<show object="true" label="true" ev="3"/>
<objColor r="255" g="127" b="0" alpha="0"/>
<layer val="0"/>
<labelOffset x="528" y="233"/>
<labelMode val="3"/>
<checkbox fixed="true"/>
<caption val="Box plot of set x"/>
</element>
<element type="button" label="button4">
<show object="true" label="true"/>
<objColor r="0" g="0" b="0" alpha="0"/>
<bgColor r="255" g="255" b="0" alpha="255"/>
<layer val="0"/>
<labelOffset x="789" y="164"/>
<labelMode val="3"/>
<fixed val="true"/>
<auxiliary val="true"/>
<ggbscript val="UpdateConstruction[] SetValue[A,listPositionX(1)] SetValue[B,listPositionX(2)] SetValue[C,listPositionX(3)] SetValue[D,listPositionX(4)] SetValue[E,listPositionX(5)] SetValue[F,listPositionX(6)] SetValue[G,listPositionX(7)] SetValue[H,listPositionX(8)] SetValue[I,listPositionX(9)] SetValue[J,listPositionX(10)] SetValue[box1,false] SetValue[box2,false] SetValue[box3,false] SetValue[box4,false] SetValue[box5,false] SetValue[box6,false] SetValue[sorted,false]"/>
<font serif="false" sizeM="1.4" size="10" style="0"/>
<dimensions width="160" height="30" />
<caption val="Random data x"/>
</element>
<element type="button" label="button5">
<show object="true" label="true"/>
<condition showObject="Max[listDataX] < 20"/>
<objColor r="0" g="0" b="0" alpha="0"/>
<bgColor r="153" g="255" b="255" alpha="255"/>
<layer val="0"/>
<labelOffset x="789" y="235"/>
<labelMode val="3"/>
<fixed val="true"/>
<auxiliary val="true"/>
<ggbscript val="SetValue[A,A+(1,0)] SetValue[B,B+(1,0)] SetValue[C,C+(1,0)] SetValue[D,D+(1,0)] SetValue[E,E+(1,0)] SetValue[F,F+(1,0)] SetValue[G,G+(1,0)] SetValue[H,H+(1,0)] SetValue[I,I+(1,0)] SetValue[J,J+(1,0)]"/>
<font serif="false" sizeM="1.4" size="10" style="0"/>
<dimensions width="160" height="30" />
<caption val="Add 1 to all"/>
</element>
<element type="button" label="button6">
<show object="true" label="true"/>
<condition showObject="Min[listDataX] > 0"/>
<objColor r="0" g="0" b="0" alpha="0"/>
<bgColor r="153" g="255" b="255" alpha="255"/>
<layer val="0"/>
<labelOffset x="789" y="271"/>
<labelMode val="3"/>
<fixed val="true"/>
<auxiliary val="true"/>
<ggbscript val="SetValue[A,A-(1,0)] SetValue[B,B-(1,0)] SetValue[C,C-(1,0)] SetValue[D,D-(1,0)] SetValue[E,E-(1,0)] SetValue[F,F-(1,0)] SetValue[G,G-(1,0)] SetValue[H,H-(1,0)] SetValue[I,I-(1,0)] SetValue[J,J-(1,0)]"/>
<font serif="false" sizeM="1.4" size="10" style="0"/>
<dimensions width="160" height="30" />
<caption val="Subtract 1 from all"/>
</element>
<element type="button" label="buttonSet1">
<show object="true" label="true"/>
<condition showObject="nX ≟ nY"/>
<objColor r="0" g="0" b="0" alpha="0"/>
<bgColor r="191" g="255" b="0" alpha="255"/>
<layer val="8"/>
<labelOffset x="789" y="48"/>
<labelMode val="3"/>
<fixed val="true"/>
<auxiliary val="true"/>
<ggbscript val="SetValue[K,A+(0,4)] SetValue[L,B+(0,4)] SetValue[M,C+(0,4)] SetValue[N,D+(0,4)] SetValue[O,E+(0,4)] SetValue[P,F+(0,4)] SetValue[Q,G+(0,4)] SetValue[R,H+(0,4)] SetValue[S,I+(0,4)] SetValue[T,J+(0,4)]"/>
<font serif="false" sizeM="1.4" size="10" style="0"/>
<dimensions width="160" height="30" />
<caption val="Set y as x"/>
</element>
<element type="button" label="buttonSet2">
<show object="true" label="true"/>
<condition showObject="nX ≟ nY"/>
<objColor r="0" g="0" b="0" alpha="0"/>
<bgColor r="191" g="255" b="0" alpha="255"/>
<layer val="8"/>
<labelOffset x="789" y="199"/>
<labelMode val="3"/>
<fixed val="true"/>
<auxiliary val="true"/>
<ggbscript val="SetValue[A,K-(0,4)] SetValue[B,L-(0,4)] SetValue[C,M-(0,4)] SetValue[D,N-(0,4)] SetValue[E,O-(0,4)] SetValue[F,P-(0,4)] SetValue[G,Q-(0,4)] SetValue[H,R-(0,4)] SetValue[I,S-(0,4)] SetValue[J,T-(0,4)]"/>
<font serif="false" sizeM="1.4" size="10" style="0"/>
<dimensions width="160" height="30" />
<caption val="Set x as y"/>
</element>
<expression label="textRangeY" exp=""" + (LaTeX[Max[listDataY] - Min[listDataY]]) + """ />
<element type="text" label="textRangeY">
<show object="true" label="true" ev="11"/>
<condition showObject="box1"/>
<objColor r="127" g="0" b="255" alpha="0"/>
<layer val="9"/>
<labelMode val="0"/>
<selectionAllowed val="false"/>
<isLaTeX val="true"/>
<font serif="true" sizeM="1" size="0" style="1"/>
<startPoint x="-9.929071937922542" y="-3.7718766717902557" z="1"/>
</element>
<expression label="textRangeX" exp=""" + (LaTeX[Max[listDataX] - Min[listDataX]]) + """ />
<element type="text" label="textRangeX">
<show object="true" label="true" ev="11"/>
<condition showObject="box4"/>
<objColor r="0" g="0" b="0" alpha="0"/>
<layer val="9"/>
<labelMode val="0"/>
<selectionAllowed val="false"/>
<isLaTeX val="true"/>
<font serif="true" sizeM="1" size="0" style="1"/>
<startPoint x="-9.929071937922542" y="-5.57943257633536" z="1"/>
</element>
<expression label="textIQRY" exp=""" + (LaTeX[Q3[listDataY] - Q1[listDataY]]) + """ />
<element type="text" label="textIQRY">
<show object="false" label="true" ev="11"/>
<condition showObject="box2"/>
<objColor r="127" g="0" b="255" alpha="0"/>
<layer val="9"/>
<labelMode val="0"/>
<selectionAllowed val="false"/>
<isLaTeX val="true"/>
<font serif="true" sizeM="1" size="0" style="1"/>
<startPoint x="-3.920083470469846" y="-3.7718766717902557" z="1"/>
</element>
<expression label="textIQRX" exp=""" + (LaTeX[Q3[listDataX] - Q1[listDataX]]) + """ />
<element type="text" label="textIQRX">
<show object="true" label="true" ev="11"/>
<condition showObject="box5"/>
<objColor r="0" g="0" b="0" alpha="0"/>
<layer val="9"/>
<labelMode val="0"/>
<selectionAllowed val="false"/>
<isLaTeX val="true"/>
<font serif="true" sizeM="1" size="0" style="1"/>
<startPoint x="-3.920083470469846" y="-5.57943257633536" z="1"/>
</element>
<command name="BoxPlot">
<input a0="5.4" a1="1" a2="listDataY"/>
<output a0="boxplotY"/>
</command>
<element type="numeric" label="boxplotY">
<value val="5.5"/>
<symbolic val="true" />
<show object="true" label="false"/>
<condition showObject="box3"/>
<objColor r="255" g="127" b="0" alpha="0.5"/>
<layer val="8"/>
<labelMode val="1"/>
<lineStyle thickness="5" type="0" typeHidden="1"/>
<selectionAllowed val="false"/>
</element>
<command name="BoxPlot">
<input a0="1.4" a1="1" a2="listDataX"/>
<output a0="boxplotX"/>
</command>
<element type="numeric" label="boxplotX">
<value val="5.5"/>
<show object="true" label="false"/>
<condition showObject="box6"/>
<objColor r="255" g="127" b="0" alpha="0.5"/>
<layer val="8"/>
<labelMode val="1"/>
<lineStyle thickness="5" type="0" typeHidden="1"/>
<selectionAllowed val="false"/>
</element>
</construction>
</geogebra>