Difference between revisions of "Applications-of-GeoGebra/C3/Probability-and-Distributions/English"
(Created page with " {|border=1 | | '''Visual Cue''' | | '''Narration''' |- | | '''Slide Number 1''' '''Title Slide''' | | Welcome to this '''tutorial''' on '''Probability and Distributions in...") |
Snehalathak (Talk | contribs) |
||
(2 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
− | |||
{|border=1 | {|border=1 | ||
− | | | '''Visual Cue''' | + | ||'''Visual Cue''' |
− | | | '''Narration''' | + | ||'''Narration''' |
|- | |- | ||
− | | | '''Slide Number 1''' | + | ||'''Slide Number 1''' |
'''Title Slide''' | '''Title Slide''' | ||
− | | | Welcome to this '''tutorial''' on '''Probability and Distributions in GeoGebra'''. | + | ||Welcome to this '''tutorial''' on '''Probability and Distributions in GeoGebra'''. |
|- | |- | ||
− | | | '''Slide Number 2''' | + | ||'''Slide Number 2''' |
'''Learning Objectives''' | '''Learning Objectives''' | ||
− | | | In this '''tutorial''', we will: | + | ||In this '''tutorial''', we will: |
Learn how to use '''Probability Calculator''' in '''GeoGebra''' | Learn how to use '''Probability Calculator''' in '''GeoGebra''' | ||
Line 19: | Line 18: | ||
Look at different distributions and parameters. | Look at different distributions and parameters. | ||
|- | |- | ||
− | | | '''Slide Number 3''' | + | ||'''Slide Number 3''' |
'''System Requirement''' | '''System Requirement''' | ||
− | | | Here I am using: | + | ||Here I am using: |
− | '''Ubuntu Linux''' | + | '''Ubuntu Linux''' Operating System version 16.04 |
'''GeoGebra''' 5.0.481.0-d | '''GeoGebra''' 5.0.481.0-d | ||
|- | |- | ||
− | | | '''Slide Number 4''' | + | ||'''Slide Number 4''' |
'''Pre-requisites''' | '''Pre-requisites''' | ||
− | | | To follow this '''tutorial''', you should be familiar with | + | ||To follow this '''tutorial''', you should be familiar with |
'''GeoGebra''' interface | '''GeoGebra''' interface | ||
Line 37: | Line 36: | ||
Statistics | Statistics | ||
|- | |- | ||
− | | | '''Slide Number 5''' | + | ||'''Slide Number 5''' |
'''Fish Feed''' | '''Fish Feed''' | ||
− | A fishery is testing four types of feed formulation on its fish: '''A, B, C '''and''' D''' | + | A fishery is testing four types of feed formulation on its fish: '''A''', '''B''', '''C ''' and ''' D''' |
Length (mm) | Length (mm) | ||
Weight (lbs) | Weight (lbs) | ||
Girth (mm) | Girth (mm) | ||
− | | | '''Fish Feed''' | + | ||'''Fish Feed''' |
Let us look at an example. | Let us look at an example. | ||
− | A fishery is testing four types of feed formulation on its fish: '''A, B, C''' and '''D'''. | + | A fishery is testing four types of feed formulation on its fish: '''A''', '''B''', '''C''' and '''D'''. |
+ | |||
Data to be collected after feeding the fish for 6 months are: | Data to be collected after feeding the fish for 6 months are: | ||
Line 61: | Line 61: | ||
Let’s look at some of these data. | Let’s look at some of these data. | ||
|- | |- | ||
− | | | '''Slide Number 6''' | + | ||'''Slide Number 6''' |
'''Fish Feed Data''' | '''Fish Feed Data''' | ||
− | + | ||'''Fish Feed Data''' | |
− | | | '''Fish Feed Data''' | + | |
− | We will use these data for our | + | We will use these data for our analysis. |
Please download the '''code file''', '''Fishery-data''', provided along with this '''tutorial'''. | Please download the '''code file''', '''Fishery-data''', provided along with this '''tutorial'''. | ||
|- | |- | ||
− | | | '''Slide Number 7''' | + | ||'''Slide Number 7''' |
'''Probability''' | '''Probability''' | ||
Line 80: | Line 79: | ||
P(A) is ratio of frequency of event A to number of trials | P(A) is ratio of frequency of event A to number of trials | ||
− | Sampling distribution (normal, t etc) | + | Sampling distribution ('''normal, t''' etc) |
Probabilities compare 2 independent sample proportions or means | Probabilities compare 2 independent sample proportions or means | ||
− | | | | + | ||'''Probability''' |
− | '''Probability''' | + | |
− | Probability of an event P(A) | + | Probability of an event P(A), lies between 0 and 1. |
− | + | ||
− | + | Statistics are calculated for each sample. | |
− | |||
The probability distribution of these statistics is called a sampling distribution. | The probability distribution of these statistics is called a sampling distribution. | ||
− | Examples are normal, t etc. | + | Examples are '''normal''', '''t''' etc. |
− | + | Please refer to '''Additional material''' provided along with this tutorial. | |
|- | |- | ||
− | | | ''' | + | ||Show the '''GeoGebra''' window. |
− | + | ||I have opened the '''GeoGebra''' interface. | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | | | | + | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
|- | |- | ||
− | | | | + | ||Click on '''View''' tool >> select '''Spreadsheet'''. |
− | | | | + | ||Click on '''View''' tool and select '''Spreadsheet'''. |
|- | |- | ||
− | + | ||Click on '''X''' at top right corner of '''Graphics''' and '''Algebra''' views. | |
− | + | ||Click on '''X''' at top right corner of '''Graphics''' and '''Algebra''' views. | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | | | Click on '''X''' at top right corner of '''Graphics''' and '''Algebra''' views. | + | |
− | | | Click on '''X''' at top right corner of '''Graphics''' and '''Algebra''' views. | + | |
− | |||
|- | |- | ||
− | | | In the '''code file''', use the '''mouse''' to highlight length data in column '''B'''. | + | ||In the '''code file''', use the '''mouse''' to highlight length data in column '''B'''. |
− | | | In the '''code file''', use the '''mouse''' to highlight length data in column '''B'''. | + | ||In the '''code file''', use the '''mouse''' to highlight length data in column '''B'''. |
|- | |- | ||
− | | | Hold '''Ctrl''' key down and press '''C''' to copy the data. | + | ||Hold '''Ctrl''' key down and press '''C''' to copy the data. |
− | | | Hold '''Control''' key down and press '''C''' to copy the data. | + | ||Hold '''Control''' key down and press '''C''' to copy the data. |
|- | |- | ||
− | | | Click on '''Spreadsheet''' view in '''GeoGebra'''. | + | ||Click on '''Spreadsheet''' view in '''GeoGebra'''. |
− | | | Click in the top of the '''Spreadsheet''' in '''GeoGebra'''. | + | ||Click in the top of the '''Spreadsheet''' in '''GeoGebra'''. |
|- | |- | ||
− | | | Hold '''Ctrl''' key down and press '''V'''. | + | ||Hold '''Ctrl''' key down and press '''V'''. |
− | | | Hold '''Control''' key down and press '''V'''. | + | ||Hold '''Control''' key down and press '''V'''. |
|- | |- | ||
− | | | | + | ||Drag and adjust the column width. |
− | | | | + | ||Drag and adjust the column width. |
|- | |- | ||
− | + | ||Click on '''Text''' and change name to '''Length (mm)-A'''. | |
− | + | ||
− | + | ||
− | | | Click on '''Text''' and change name to '''Length (mm)-A'''. | + | |
Close the '''dialog box'''. | Close the '''dialog box'''. | ||
− | | | As shown earlier in the series, | + | ||As shown earlier in the series, change the name to '''Length (mm) hyphen A'''. |
− | |||
− | |||
− | |||
|- | |- | ||
− | | | Adjust the '''column''' width. | + | ||Adjust the '''column''' width. |
− | | | Adjust the '''column''' width. | + | ||Adjust the '''column''' width. |
|- | |- | ||
− | | | Highlight data in '''columns E, H''' and '''K'''. | + | ||Highlight data in '''columns E, H''' and '''K'''. |
Copy and paste data from '''code file''' into '''GeoGebra'''. | Copy and paste data from '''code file''' into '''GeoGebra'''. | ||
− | Change names of data from '''columns E, H''' and '''K''' to: | + | Change names of data from '''columns E''', '''H''' and '''K''' to: |
'''Length (mm)-B''' | '''Length (mm)-B''' | ||
Line 175: | Line 138: | ||
'''Length (mm)-D''' | '''Length (mm)-D''' | ||
− | | | Repeat this with data in '''columns E, H''' and '''K'''. | + | ||Repeat this with data in '''columns E''', '''H''' and '''K'''. |
|- | |- | ||
− | | | Drag '''mouse''' to highlight all labels and data in the four '''columns'''. | + | ||Drag '''mouse''' to highlight all labels and data in the four '''columns'''. |
− | | | Select all data in the four '''columns''' by dragging. | + | ||Select all data in the four '''columns''' by dragging. |
|- | |- | ||
− | | | Under the '''menubar''', under '''One Variable Analysis''', click on '''Multiple Variable Analysis'''. | + | ||Under the '''menubar''', under '''One Variable Analysis''', click on '''Multiple Variable Analysis'''. |
− | | | Under the '''menubar''', under '''One Variable Analysis''', click on '''Multiple Variable Analysis'''. | + | ||Under the '''menubar''', under '''One Variable Analysis''', click on '''Multiple Variable Analysis'''. |
|- | |- | ||
− | | | Show '''Data Source''' popup window. | + | ||Show '''Data Source''' popup window. |
Click on '''Analyze''' button. | Click on '''Analyze''' button. | ||
− | | | A'''Data Source''' popup window appears. | + | ||A'''Data Source''' popup window appears. |
Click on '''Analyze''' button. | Click on '''Analyze''' button. | ||
|- | |- | ||
− | | | Show the '''Data Analysis''' window. | + | ||Show the '''Data Analysis''' window. |
− | | | A '''Data Analysis''' window appears. | + | ||A '''Data Analysis''' window appears. |
|- | |- | ||
− | | | Drag the boundary to see it properly. | + | ||Drag the boundary to see it properly. |
− | | | Drag the boundary to see it properly. | + | ||Drag the boundary to see it properly. |
|- | |- | ||
− | | | Point to '''Stacked box plots''' appearing in all four '''columns'''. | + | ||Point to '''Stacked box plots''' appearing in all four '''columns'''. |
− | | | ''' | + | ||'''Box plots''' appear for data for all four '''columns'''. |
|- | |- | ||
− | | | Click anywhere in the '''GeoGebra''' window | + | ||Click anywhere in the '''GeoGebra''' window >> click on '''Show Statistics''' tool. |
Point to '''Statistics''' displayed below the '''box plots'''. | Point to '''Statistics''' displayed below the '''box plots'''. | ||
− | | | Click anywhere in the '''GeoGebra''' window and then click on '''Show Statistics''' tool. | + | ||Click anywhere in the '''GeoGebra''' window and then click on '''Show Statistics''' tool. |
'''Statistics''' are displayed below the '''box plots'''. | '''Statistics''' are displayed below the '''box plots'''. | ||
|- | |- | ||
− | | | Above the statistics, click on '''menu button''' next to the display. | + | ||Above the statistics, click on '''menu button''' next to the display. |
Select '''ANOVA'''. | Select '''ANOVA'''. | ||
− | | | Above the statistics, click on '''menu button''' next to the word '''Statistics'''. | + | ||Above the statistics, click on '''menu button''' next to the word '''Statistics'''. |
Select '''ANOVA'''. | Select '''ANOVA'''. | ||
|- | |- | ||
− | | | Drag boundaries to increase size of statistics tables. | + | ||Drag boundaries to increase size of statistics tables. |
− | | | Drag the boundaries and resize the window to increase size of statistics tables. | + | ||Drag the boundaries and resize the window to increase size of statistics tables. |
|- | |- | ||
− | | | Place the | + | ||Place the cursor on the boundary below the plots. |
And drag to increase the size of the tables. | And drag to increase the size of the tables. | ||
− | | | Place the | + | ||Place the cursor on the boundary below the plots. |
And drag to increase the size of the tables. | And drag to increase the size of the tables. | ||
|- | |- | ||
− | | | Point to the results. | + | ||Point to the results. |
− | | | | + | ||'''F value''' is the ratio of '''between groups MS''' to '''within groups MS'''. |
− | + | Hence, '''F value''' is quite large (36.5892). | |
− | '''P value''' is 0. This means it is probably less than 0.001 | + | '''P value''' is 0. |
+ | |||
+ | This means it is probably less than 0.001. | ||
The feed does make a '''statistically significant''' difference to the length of the fish. | The feed does make a '''statistically significant''' difference to the length of the fish. | ||
− | Hence, the '''null hypothesis''' can be rejected in this case. The '''null hypothesis''' here is that | + | Hence, the '''null hypothesis''' can be rejected in this case. |
+ | |||
+ | The '''null hypothesis''' here is that none of the feeds make any difference to the length of the fish. | ||
|- | |- | ||
− | | | Click on the '''menu button''' next to the '''ANOVA display'''. | + | ||Click on the '''menu button''' next to the '''ANOVA display'''. |
− | | | Next to the '''ANOVA display''', click on the '''menu button'''. | + | ||Next to the '''ANOVA display''', click on the '''menu button'''. |
|- | |- | ||
− | | | Point to two options appearing for '''T Test''' and '''T Estimate'''. | + | ||Point to two options appearing for '''T Test''' and '''T Estimate'''. |
− | | | Two options appear for '''T Test''': '''Difference of Means''' and '''Paired Differences'''. | + | ||Two options appear for '''T Test''': '''Difference of Means''' and '''Paired Differences'''. |
|- | |- | ||
− | | | Point to '''T Test''' in the '''menu'''. | + | ||Point to '''T Test''' in the '''menu'''. |
− | | | The same two options appear for '''T Estimate'''. | + | ||The same two options appear for '''T Estimate'''. |
'''Difference of Means''' is for '''unpaired T Test'''. | '''Difference of Means''' is for '''unpaired T Test'''. | ||
Line 247: | Line 214: | ||
'''Paired Differences''' is for '''paired T Test'''. | '''Paired Differences''' is for '''paired T Test'''. | ||
|- | |- | ||
− | | | | + | ||Point to '''T Test''' . |
− | | | The '''T Test''' compares two groups at a time. | + | ||The '''T Test''' compares two groups at a time. |
|- | |- | ||
− | | | Select '''T Test: Difference of Means'''. | + | ||Select '''T Test: Difference of Means'''. |
− | | | Select '''T Test: Difference of Means'''. | + | ||Select '''T Test: Difference of Means'''. |
|- | |- | ||
− | | | Point to '''Sample 1''' and '''Sample 2'''. | + | ||Point to '''Sample 1''' and '''Sample 2'''. |
− | | | '''Column A''' data are denoted by default as '''Sample 1'''. '''Column B''' data are denoted by default as '''Sample 2''' | + | ||'''Column A''' data are denoted by default as '''Sample 1'''. |
+ | |||
+ | '''Column B''' data are denoted by default as '''Sample 2''' | ||
|- | |- | ||
− | | | Click on '''menu buttons''' next to the displays to reverse the order. | + | ||Click on '''menu buttons''' next to the displays to reverse the order. |
− | | | Click on the '''menu buttons''' next to the displays to reverse the order. | + | ||Click on the '''menu buttons''' next to the displays to reverse the order. |
− | As | + | As Mean of '''column B''' is greater than Mean of '''column A''', '''T values''' and '''limits''' will now be positive. |
|- | |- | ||
− | | | Point to '''t''' and '''P''' values in '''T tests'''. | + | ||Point to '''t''' and '''P''' values in '''T tests'''. |
− | | | '''T Tests''' give '''t''' and '''P''' values. | + | ||'''T Tests''' give '''t''' and '''P''' values. |
Comparing '''A''' and '''B''' gives '''P''' less than 0.001 and '''T value''' greater than 4. | Comparing '''A''' and '''B''' gives '''P''' less than 0.001 and '''T value''' greater than 4. | ||
Line 268: | Line 237: | ||
Thus, feeds '''A''' and '''B''' have a significant effect on lengths of fish. | Thus, feeds '''A''' and '''B''' have a significant effect on lengths of fish. | ||
|- | |- | ||
− | | | Click on the '''menu button''' | + | ||Click on the '''menu button''' >> choose '''T estimates, Difference of Means'''. |
− | | | Click on the '''menu button''' and choose '''T estimates, Difference of Means'''. | + | ||Click on the '''menu button''' and choose '''T estimates, Difference of Means'''. |
|- | |- | ||
− | | | Show the statistics tables. | + | ||Show the statistics tables. |
Point to '''Confidence Level''' 0.95. | Point to '''Confidence Level''' 0.95. | ||
− | | | '''T Estimates''' give '''lower''' and '''upper limits''' for the ''' | + | ||'''T Estimates''' give '''lower''' and '''upper limits''' for the '''Mean Difference'''. |
The '''confidence level''' is 95%. | The '''confidence level''' is 95%. | ||
− | We can be 95% sure that the ''' | + | We can be 95% sure that the '''Mean difference''' is between the '''lower''' and '''upper limits'''. |
− | |||
|- | |- | ||
− | | | Close the '''Data Analysis window'''. | + | ||Close the '''Data Analysis window'''. |
− | | | Close the '''Data Analysis window'''. | + | ||Close the '''Data Analysis window'''. |
|- | |- | ||
− | | | | + | || |
− | | | Now let us look at the '''Probability Calculator'''. | + | ||Now let us look at the '''Probability Calculator'''. |
|- | |- | ||
− | | | Point to '''Spreadsheet''' view. | + | ||Point to '''Spreadsheet''' view. |
Use '''mouse''' to drag and highlight length data for '''feed A'''. | Use '''mouse''' to drag and highlight length data for '''feed A'''. | ||
− | | | We are in the '''Spreadsheet''' view. | + | ||We are in the '''Spreadsheet''' view. |
Use the '''mouse''' to drag and highlight length data for '''feed A'''. | Use the '''mouse''' to drag and highlight length data for '''feed A'''. | ||
|- | |- | ||
− | | | Click on '''One Variable Analysis''' tool. | + | ||Click on '''One Variable Analysis''' tool. |
− | | | Click on '''One Variable Analysis''' tool. | + | ||Click on '''One Variable Analysis''' tool. |
In the '''Data Source''' popup window that appears, click on '''Analyze''' button. | In the '''Data Source''' popup window that appears, click on '''Analyze''' button. | ||
|- | |- | ||
− | | | At the top of the '''Data Analysis''' window, click on the 2nd '''Show Statistics''' button. | + | ||At the top of the '''Data Analysis''' window, click on the 2nd '''Show Statistics''' button. |
Note down '''mean mu (µ)''' and '''standard deviation sigma (σ)'''. (745.5, 29.0215) | Note down '''mean mu (µ)''' and '''standard deviation sigma (σ)'''. (745.5, 29.0215) | ||
− | | | At the top of the '''Data Analysis''' window, click on the 2nd '''Show Statistics''' button. | + | ||At the top of the '''Data Analysis''' window, click on the second( 2nd) '''Show Statistics''' button. |
− | Note down ''' | + | Note down '''Mean mu (µ)''' and '''Standard deviation sigma (σ)'''. |
|- | |- | ||
− | | | Close the '''Data Analysis''' window and follow the same steps for '''feed B'''. (801.5, 21.2191) | + | ||Close the '''Data Analysis''' window and follow the same steps for '''feed B'''. (801.5, 21.2191) |
− | | | Close the '''Data Analysis''' window and follow the same steps for '''feed B'''. | + | ||Close the '''Data Analysis''' window and follow the same steps for '''feed B'''. |
|- | |- | ||
− | | | Drag and highlight '''feed A''' length data. | + | ||Drag and highlight '''feed A''' length data. |
− | | | Again, drag and highlight '''feed A''' length data. | + | ||Again, drag and highlight '''feed A''' length data. |
|- | |- | ||
− | | | Click on '''View''' | + | ||Click on '''View''' >> click on '''Probability Calculator'''. |
− | | | Click on '''View''' and then click on '''Probability Calculator'''. | + | ||Click on '''View''' and then click on '''Probability Calculator'''. |
|- | |- | ||
− | | | Point to the '''Probability Calculator''' window that pops up. | + | ||Point to the '''Probability Calculator''' window that pops up. |
− | | | The '''Probability Calculator''' window pops up. | + | ||The '''Probability Calculator''' window pops up. |
|- | |- | ||
− | | | Drag the boundary to see it properly. | + | ||Drag the boundary to see it properly. |
− | | | Drag the boundary to see it properly. | + | ||Drag the boundary to see it properly. |
|- | |- | ||
− | | | Point to the plot and the '''Distribution tab''' above the plot. | + | ||Point to the plot and the '''Distribution tab''' above the plot. |
Below the plot, point to the '''Normal display box'''. | Below the plot, point to the '''Normal display box'''. | ||
− | | | We are looking at a '''normal distribution''' in the '''Distribution''' window. | + | ||We are looking at a '''normal distribution''' in the '''Distribution''' window. |
|- | |- | ||
− | | | Place your '''cursor''' on the horizontal boundary below the '''distribution curve'''. | + | ||Place your '''cursor''' on the horizontal boundary below the '''distribution curve'''. |
Drag the arrow upwards to see the data entry window below the '''curve''' properly. | Drag the arrow upwards to see the data entry window below the '''curve''' properly. | ||
− | | | Place your '''cursor''' on the horizontal boundary below the '''distribution curve'''. | + | ||Place your '''cursor''' on the horizontal boundary below the '''distribution curve'''. |
Drag the arrow upwards to see the data entry window below the '''curve''' properly. | Drag the arrow upwards to see the data entry window below the '''curve''' properly. | ||
|- | |- | ||
− | | | | + | || |
− | | | Let us look at a '''normal distribution''' for fish given feed '''A'''. | + | ||Let us look at a '''normal distribution''' for fish given feed '''A'''. |
|- | |- | ||
− | | | Type 745.5 in the box next to '''mu''' >> press '''Enter'''. | + | ||Type 745.5 in the box next to '''mu''' >> press '''Enter'''. |
− | | | In the box next to '''mu (μ)''', type 745.5 and press '''Enter'''. | + | ||In the box next to '''mu (μ)''', type 745.5 and press '''Enter'''. |
|- | |- | ||
− | | | Type 29.0215 in the box next to '''sigma''' >> press '''Enter'''. | + | ||Type 29.0215 in the box next to '''sigma''' >> press '''Enter'''. |
− | | | In the box next to '''sigma (σ)''', type 29.0215 and press '''Enter'''. | + | ||In the box next to '''sigma (σ)''', type 29.0215 and press '''Enter'''. |
|- | |- | ||
− | | | Point to '''normal distribution''' plot. | + | ||Point to '''normal distribution''' plot. |
− | | | A '''normal distribution''' plot appears with mean 745.5 and '''sigma''' 29.0215. | + | ||A '''normal distribution''' plot appears with mean 745.5 and '''sigma''' 29.0215. |
|- | |- | ||
− | | | Click on the 1<sup>st</sup> of three buttons below the ''' | + | ||Click on the 1<sup>st</sup> of three buttons below the '''Mean''' and '''σ''' boxes. |
− | | | Click on the 1<sup>st</sup> of three buttons below the ''' | + | ||Click on the 1<sup>st</sup> of three buttons below the '''Mean''' and '''σ''' boxes. |
|- | |- | ||
− | | | Point to the right side bracket indicates this is the upper limit. | + | ||Point to the right side bracket indicates this is the upper limit. |
− | | | The right side bracket indicates this is the upper limit. | + | ||The right side bracket indicates, this is the upper limit. |
|- | |- | ||
− | | | Type 770 in the box next to '''P (X ≤''' | + | ||Type 770 in the box next to '''P (X ≤''' >> press '''Enter'''. |
− | | | In the box next to '''P of X''' less than or equal to, type 770 and press '''Enter'''. | + | ||In the box next to '''P of X''' less than or equal to, type 770 and press '''Enter'''. |
|- | |- | ||
− | | | Point to the '''probability P''' appearing in the box to the right, 0.8007. | + | ||Point to the '''probability P''' appearing in the box to the right, 0.8007. |
− | | | Note that the '''probability P''' appears in the box to the right, 0.8007. | + | ||Note that the '''probability P''' appears in the box to the right, 0.8007. |
Thus, 80.07% fish fed feed '''A''' are 770 mm long or shorter. | Thus, 80.07% fish fed feed '''A''' are 770 mm long or shorter. | ||
|- | |- | ||
− | | | Type 0.09 in the '''P''' box to the right and press '''Enter'''. | + | ||Type 0.09 in the '''P''' box to the right and press '''Enter'''. |
− | | | Let us do the reverse. | + | ||Let us do the reverse. |
In the '''P''' box to the right of the equal to sign, type 0.09. | In the '''P''' box to the right of the equal to sign, type 0.09. | ||
Line 367: | Line 335: | ||
Press '''Enter'''. | Press '''Enter'''. | ||
|- | |- | ||
− | | | | + | ||Point to '''X''' 706.5893 appearing in the box. |
− | | | | + | ||When you press '''Enter''', '''X''' less than or equal to 706.5893 appears in the box. |
|- | |- | ||
− | | | Point to | + | ||Point to the value. |
− | | | | + | ||Thus, 9% of the fish are shorter than this length. |
|- | |- | ||
− | | | | + | ||Click on the '''curve symbol''' next to the '''Normal''' display box. |
− | | | | + | ||Next to the '''Normal''' display box, click on the '''curve symbol'''. |
|- | |- | ||
− | | | | + | ||Point to the '''cumulative distribution function curve''' appears. |
− | | | | + | ||The '''cumulative distribution function curve''' appears. |
|- | |- | ||
− | | | Point to | + | ||Point to '''Probability''' on '''y-axis''' and length of feed on '''x-axis'''. |
− | | | | + | ||'''Probability''' is plotted on the '''y-axis''', length of '''feed A''' group is plotted on '''x-axis'''. |
|- | |- | ||
− | | | | + | ||Click on '''curve symbol''' to return to the '''normal distribution bell curve'''. |
− | | | ''' | + | ||Click on '''curve symbol''' to return to the '''normal distribution bell curve'''. |
|- | |- | ||
− | | | Click on ''' | + | ||Click on 2<sup>nd</sup> of three buttons below '''mu''' and '''sigma''' displays. |
− | | | | + | ||Below '''mu''' and '''sigma''' displays, click on 2<sup>nd</sup> of the three buttons. |
|- | |- | ||
− | | | | + | ||Point to the two brackets indicate that lower and upper limits can be specified. |
− | | | | + | ||The two brackets indicate that lower and upper limits can be specified. |
|- | |- | ||
− | | | | + | ||Type 705 in the first box and 758 in the second box, press '''Enter'''. |
− | | | | + | ||In the first box, type 705 and in the second box, 758, press '''Enter'''. |
|- | |- | ||
− | + | ||Point to '''P (705 ≤ X ≤ 758) = 0.5852'''. | |
− | + | ||'''P''' equal to 0.5852 appears. | |
− | + | ||
− | | | Point to '''P (705 ≤ X ≤ 758) = 0.5852'''. | + | |
− | | | '''P''' equal to 0.5852 appears. | + | |
This means 58.52% of fish fed '''feed A''' are 705 to 758 mm long. | This means 58.52% of fish fed '''feed A''' are 705 to 758 mm long. | ||
|- | |- | ||
− | | | Click on the 3<sup>rd</sup> of the three buttons showing a left bracket. | + | ||Click on the 3<sup>rd</sup> of the three buttons showing a left bracket. |
− | | | Finally, click on the 3<sup>rd</sup> button showing a left bracket. | + | ||Finally, click on the 3<sup>rd</sup> button showing a left bracket. |
|- | |- | ||
− | | | Type 760 in the box | + | ||Type 760 in the box >> press '''Enter'''. |
− | | | In the box, type 760 and press '''Enter'''. | + | ||In the box, type 760 and press '''Enter'''. |
|- | |- | ||
− | | | Point to 0.3087. | + | ||Point to 0.3087. |
− | | | 30.87% of fish fed '''feed A''' are longer than 760 mm. | + | ||30.87% of fish fed '''feed A''' are longer than 760 mm. |
|- | |- | ||
− | | | Click on '''Statistics''' tab next to '''Distribution''' tab. | + | ||Click on '''Statistics''' tab next to '''Distribution''' tab. |
− | | | Next to '''Distribution''' tab, click on '''Statistics''' tab. | + | ||Next to '''Distribution''' tab, click on '''Statistics''' tab. |
|- | |- | ||
− | | | Close the '''Probability Calculator''' window. | + | ||Close the '''Probability Calculator''' window. |
− | | | Close the '''Probability Calculator''' window. | + | ||Close the '''Probability Calculator''' window. |
|- | |- | ||
− | | | Point to '''Spreadsheet''' view. | + | ||Point to '''Spreadsheet''' view. |
− | | | Let us look at the '''Spreadsheet''' in '''GeoGebra'''. | + | ||Let us look at the '''Spreadsheet''' in '''GeoGebra'''. |
|- | |- | ||
− | | | Use '''mouse''' to drag and highlight length data in '''columns A''' and '''B'''. | + | ||Use '''mouse''' to drag and highlight length data in '''columns A''' and '''B'''. |
− | | | Use '''mouse''' to drag and highlight length data in '''columns A''' and '''B'''. | + | ||Use '''mouse''' to drag and highlight length data in '''columns A''' and '''B'''. |
|- | |- | ||
− | | | Under '''One Variable Analysis''', select '''Probability Calculator'''. | + | ||Under '''One Variable Analysis''', select '''Probability Calculator'''. |
− | | | Under '''One Variable Analysis''', select '''Probability Calculator'''. | + | ||Under '''One Variable Analysis''', select '''Probability Calculator'''. |
|- | |- | ||
− | | | Point to '''Statistics''' window. | + | ||Point to '''Statistics''' window. |
− | | | We are looking, as before, at the '''Statistics''' window. | + | ||We are looking, as before, at the '''Statistics''' window. |
|- | |- | ||
− | | | From the dropdown menu at the top, select '''T Test, Difference of Means'''. | + | ||From the dropdown menu at the top, select '''T Test, Difference of Means'''. |
− | | | From the dropdown menu at the top, select '''T Test, Difference of Means'''. | + | ||From the dropdown menu at the top, select '''T Test, Difference of Means'''. |
|- | |- | ||
− | | | Type '''means, standard deviation σ''' and '''N=10''' in respective boxes. | + | ||Type '''means, standard deviation σ''' and '''N=10''' in respective boxes. |
Press '''Enter''' after entering all values. | Press '''Enter''' after entering all values. | ||
− | | | You can type '''mean, standard deviation σ''' and total number of samples '''N''' in the boxes. | + | ||You can type '''mean, standard deviation σ''' and total number of samples '''N''' in the boxes. |
We will type 10 for '''N''' as each feed group has 10 fish. | We will type 10 for '''N''' as each feed group has 10 fish. | ||
Line 441: | Line 406: | ||
Press '''Enter''' after entering all values. | Press '''Enter''' after entering all values. | ||
|- | |- | ||
− | | | | + | || |
− | | | '''Feed A''' | + | ||'''Feed A''' Mean is lower than '''feed B''' Mean. |
|- | |- | ||
− | | | Choose '''feed B''' group as '''Sample 1''' and '''feed A''' as '''Sample 2'''. | + | ||Choose '''feed B''' group as '''Sample 1''' and '''feed A''' as '''Sample 2'''. |
− | | | So we will choose '''feed B''' group as '''Sample 1''' and '''feed A''' as '''Sample 2'''. | + | ||So we will choose '''feed B''' group as '''Sample 1''' and '''feed A''' as '''Sample 2'''. |
− | |||
|- | |- | ||
− | | | | + | ||Point to '''t''', '''SE''', '''df''' and '''P''' values. |
− | + | ||Note '''t''', standard error, degrees of freedom and '''P''' values. | |
Compare them to results from '''Multiple Variable Analysis'''. | Compare them to results from '''Multiple Variable Analysis'''. | ||
Line 458: | Line 422: | ||
Interpret the results and compare with your calculations. | Interpret the results and compare with your calculations. | ||
|- | |- | ||
− | | | | + | || |
− | | | Let us summarize. | + | ||Let us summarize. |
|- | |- | ||
− | | | '''Slide Number | + | ||'''Slide Number 8''' |
'''Summary''' | '''Summary''' | ||
− | | | In this '''tutorial''', we have learnt how to use '''Probability Calculator''' in '''GeoGebra'''. | + | ||In this '''tutorial''', we have learnt how to use '''Probability Calculator''' in '''GeoGebra'''. |
− | + | Looked at different '''distributions''' and '''parameters'''. | |
|- | |- | ||
− | | | '''Slide Number | + | ||'''Slide Number 9''' |
'''Assignment''' | '''Assignment''' | ||
− | | | '''Assignment''' | + | ||'''Assignment''' |
Perform statistical analyses for weight and girth data given in this '''tutorial'''. | Perform statistical analyses for weight and girth data given in this '''tutorial'''. | ||
− | Four oils were used to deep fry chips. | + | Four oils were used to deep fry chips. |
+ | |||
+ | Amount of absorbed fat was measured for six chips fried in the four oils. | ||
+ | |||
+ | Is any of the oils absorbed more than the others? | ||
− | |||
|- | |- | ||
− | | | '''Slide Number | + | ||'''Slide Number 10''' |
'''About Spoken Tutorial project''' | '''About Spoken Tutorial project''' | ||
− | | | The video at the following link summarizes the '''Spoken Tutorial project'''. | + | ||The video at the following link summarizes the '''Spoken Tutorial project'''. |
Please download and watch it. | Please download and watch it. | ||
|- | |- | ||
− | | | '''Slide Number | + | ||'''Slide Number 11''' |
'''Spoken Tutorial workshops''' | '''Spoken Tutorial workshops''' | ||
− | | | The '''Spoken Tutorial Project''' team conducts workshops and gives certificates. | + | ||The '''Spoken Tutorial Project''' team conducts workshops and gives certificates. |
For more details, please write to us. | For more details, please write to us. | ||
|- | |- | ||
− | | | '''Slide Number | + | ||'''Slide Number 12''' |
'''Forum for specific questions:''' | '''Forum for specific questions:''' | ||
Line 506: | Line 473: | ||
Someone from our team will answer them | Someone from our team will answer them | ||
− | | | Please post your timed queries on this forum. | + | ||Please post your timed queries on this forum. |
|- | |- | ||
− | | | '''Slide Number | + | ||'''Slide Number 13''' |
'''Acknowledgement''' | '''Acknowledgement''' | ||
− | | | '''Spoken Tutorial Project''' is funded by NMEICT, MHRD, Government of India. | + | ||'''Spoken Tutorial Project''' is funded by NMEICT, MHRD, Government of India. |
More information on this mission is available at this link. | More information on this mission is available at this link. | ||
|- | |- | ||
− | | | | + | || |
− | | | This is '''Vidhya Iyer''' from '''IIT Bombay''', signing off. | + | ||This is '''Vidhya Iyer''' from '''IIT Bombay''', signing off. |
Thank you for joining. | Thank you for joining. | ||
|- | |- | ||
|} | |} |
Latest revision as of 12:47, 22 January 2019
Visual Cue | Narration |
Slide Number 1
Title Slide |
Welcome to this tutorial on Probability and Distributions in GeoGebra. |
Slide Number 2
Learning Objectives |
In this tutorial, we will:
Learn how to use Probability Calculator in GeoGebra Look at different distributions and parameters. |
Slide Number 3
System Requirement |
Here I am using:
Ubuntu Linux Operating System version 16.04 GeoGebra 5.0.481.0-d |
Slide Number 4
Pre-requisites |
To follow this tutorial, you should be familiar with
GeoGebra interface Statistics |
Slide Number 5
Fish Feed A fishery is testing four types of feed formulation on its fish: A, B, C and D Length (mm) Weight (lbs) Girth (mm) |
Fish Feed
Let us look at an example. A fishery is testing four types of feed formulation on its fish: A, B, C and D. Data to be collected after feeding the fish for 6 months are: Length in millimeters Weight in pounds Girth in millimeters Let’s look at some of these data. |
Slide Number 6
Fish Feed Data |
Fish Feed Data
We will use these data for our analysis. Please download the code file, Fishery-data, provided along with this tutorial. |
Slide Number 7
Probability Probability of an event P(A), from 0 to 1 P(A) is ratio of frequency of event A to number of trials Sampling distribution (normal, t etc) Probabilities compare 2 independent sample proportions or means |
Probability
Probability of an event P(A), lies between 0 and 1. Statistics are calculated for each sample. The probability distribution of these statistics is called a sampling distribution. Examples are normal, t etc. Please refer to Additional material provided along with this tutorial. |
Show the GeoGebra window. | I have opened the GeoGebra interface. |
Click on View tool >> select Spreadsheet. | Click on View tool and select Spreadsheet. |
Click on X at top right corner of Graphics and Algebra views. | Click on X at top right corner of Graphics and Algebra views. |
In the code file, use the mouse to highlight length data in column B. | In the code file, use the mouse to highlight length data in column B. |
Hold Ctrl key down and press C to copy the data. | Hold Control key down and press C to copy the data. |
Click on Spreadsheet view in GeoGebra. | Click in the top of the Spreadsheet in GeoGebra. |
Hold Ctrl key down and press V. | Hold Control key down and press V. |
Drag and adjust the column width. | Drag and adjust the column width. |
Click on Text and change name to Length (mm)-A.
Close the dialog box. |
As shown earlier in the series, change the name to Length (mm) hyphen A. |
Adjust the column width. | Adjust the column width. |
Highlight data in columns E, H and K.
Copy and paste data from code file into GeoGebra. Change names of data from columns E, H and K to: Length (mm)-B Length (mm)-C Length (mm)-D |
Repeat this with data in columns E, H and K. |
Drag mouse to highlight all labels and data in the four columns. | Select all data in the four columns by dragging. |
Under the menubar, under One Variable Analysis, click on Multiple Variable Analysis. | Under the menubar, under One Variable Analysis, click on Multiple Variable Analysis. |
Show Data Source popup window.
Click on Analyze button. |
AData Source popup window appears.
Click on Analyze button. |
Show the Data Analysis window. | A Data Analysis window appears. |
Drag the boundary to see it properly. | Drag the boundary to see it properly. |
Point to Stacked box plots appearing in all four columns. | Box plots appear for data for all four columns. |
Click anywhere in the GeoGebra window >> click on Show Statistics tool.
Point to Statistics displayed below the box plots. |
Click anywhere in the GeoGebra window and then click on Show Statistics tool.
Statistics are displayed below the box plots. |
Above the statistics, click on menu button next to the display.
Select ANOVA. |
Above the statistics, click on menu button next to the word Statistics.
Select ANOVA. |
Drag boundaries to increase size of statistics tables. | Drag the boundaries and resize the window to increase size of statistics tables. |
Place the cursor on the boundary below the plots.
And drag to increase the size of the tables. |
Place the cursor on the boundary below the plots.
And drag to increase the size of the tables. |
Point to the results. | F value is the ratio of between groups MS to within groups MS.
Hence, F value is quite large (36.5892). P value is 0. This means it is probably less than 0.001. The feed does make a statistically significant difference to the length of the fish. Hence, the null hypothesis can be rejected in this case. The null hypothesis here is that none of the feeds make any difference to the length of the fish. |
Click on the menu button next to the ANOVA display. | Next to the ANOVA display, click on the menu button. |
Point to two options appearing for T Test and T Estimate. | Two options appear for T Test: Difference of Means and Paired Differences. |
Point to T Test in the menu. | The same two options appear for T Estimate.
Difference of Means is for unpaired T Test. Paired Differences is for paired T Test. |
Point to T Test . | The T Test compares two groups at a time. |
Select T Test: Difference of Means. | Select T Test: Difference of Means. |
Point to Sample 1 and Sample 2. | Column A data are denoted by default as Sample 1.
Column B data are denoted by default as Sample 2 |
Click on menu buttons next to the displays to reverse the order. | Click on the menu buttons next to the displays to reverse the order.
As Mean of column B is greater than Mean of column A, T values and limits will now be positive. |
Point to t and P values in T tests. | T Tests give t and P values.
Comparing A and B gives P less than 0.001 and T value greater than 4. Thus, feeds A and B have a significant effect on lengths of fish. |
Click on the menu button >> choose T estimates, Difference of Means. | Click on the menu button and choose T estimates, Difference of Means. |
Show the statistics tables.
Point to Confidence Level 0.95. |
T Estimates give lower and upper limits for the Mean Difference.
The confidence level is 95%. We can be 95% sure that the Mean difference is between the lower and upper limits. |
Close the Data Analysis window. | Close the Data Analysis window. |
Now let us look at the Probability Calculator. | |
Point to Spreadsheet view.
Use mouse to drag and highlight length data for feed A. |
We are in the Spreadsheet view.
Use the mouse to drag and highlight length data for feed A. |
Click on One Variable Analysis tool. | Click on One Variable Analysis tool.
In the Data Source popup window that appears, click on Analyze button. |
At the top of the Data Analysis window, click on the 2nd Show Statistics button.
Note down mean mu (µ) and standard deviation sigma (σ). (745.5, 29.0215) |
At the top of the Data Analysis window, click on the second( 2nd) Show Statistics button.
Note down Mean mu (µ) and Standard deviation sigma (σ). |
Close the Data Analysis window and follow the same steps for feed B. (801.5, 21.2191) | Close the Data Analysis window and follow the same steps for feed B. |
Drag and highlight feed A length data. | Again, drag and highlight feed A length data. |
Click on View >> click on Probability Calculator. | Click on View and then click on Probability Calculator. |
Point to the Probability Calculator window that pops up. | The Probability Calculator window pops up. |
Drag the boundary to see it properly. | Drag the boundary to see it properly. |
Point to the plot and the Distribution tab above the plot.
Below the plot, point to the Normal display box. |
We are looking at a normal distribution in the Distribution window. |
Place your cursor on the horizontal boundary below the distribution curve.
Drag the arrow upwards to see the data entry window below the curve properly. |
Place your cursor on the horizontal boundary below the distribution curve.
Drag the arrow upwards to see the data entry window below the curve properly. |
Let us look at a normal distribution for fish given feed A. | |
Type 745.5 in the box next to mu >> press Enter. | In the box next to mu (μ), type 745.5 and press Enter. |
Type 29.0215 in the box next to sigma >> press Enter. | In the box next to sigma (σ), type 29.0215 and press Enter. |
Point to normal distribution plot. | A normal distribution plot appears with mean 745.5 and sigma 29.0215. |
Click on the 1st of three buttons below the Mean and σ boxes. | Click on the 1st of three buttons below the Mean and σ boxes. |
Point to the right side bracket indicates this is the upper limit. | The right side bracket indicates, this is the upper limit. |
Type 770 in the box next to P (X ≤ >> press Enter. | In the box next to P of X less than or equal to, type 770 and press Enter. |
Point to the probability P appearing in the box to the right, 0.8007. | Note that the probability P appears in the box to the right, 0.8007.
Thus, 80.07% fish fed feed A are 770 mm long or shorter. |
Type 0.09 in the P box to the right and press Enter. | Let us do the reverse.
In the P box to the right of the equal to sign, type 0.09. Press Enter. |
Point to X 706.5893 appearing in the box. | When you press Enter, X less than or equal to 706.5893 appears in the box. |
Point to the value. | Thus, 9% of the fish are shorter than this length. |
Click on the curve symbol next to the Normal display box. | Next to the Normal display box, click on the curve symbol. |
Point to the cumulative distribution function curve appears. | The cumulative distribution function curve appears. |
Point to Probability on y-axis and length of feed on x-axis. | Probability is plotted on the y-axis, length of feed A group is plotted on x-axis. |
Click on curve symbol to return to the normal distribution bell curve. | Click on curve symbol to return to the normal distribution bell curve. |
Click on 2nd of three buttons below mu and sigma displays. | Below mu and sigma displays, click on 2nd of the three buttons. |
Point to the two brackets indicate that lower and upper limits can be specified. | The two brackets indicate that lower and upper limits can be specified. |
Type 705 in the first box and 758 in the second box, press Enter. | In the first box, type 705 and in the second box, 758, press Enter. |
Point to P (705 ≤ X ≤ 758) = 0.5852. | P equal to 0.5852 appears.
This means 58.52% of fish fed feed A are 705 to 758 mm long. |
Click on the 3rd of the three buttons showing a left bracket. | Finally, click on the 3rd button showing a left bracket. |
Type 760 in the box >> press Enter. | In the box, type 760 and press Enter. |
Point to 0.3087. | 30.87% of fish fed feed A are longer than 760 mm. |
Click on Statistics tab next to Distribution tab. | Next to Distribution tab, click on Statistics tab. |
Close the Probability Calculator window. | Close the Probability Calculator window. |
Point to Spreadsheet view. | Let us look at the Spreadsheet in GeoGebra. |
Use mouse to drag and highlight length data in columns A and B. | Use mouse to drag and highlight length data in columns A and B. |
Under One Variable Analysis, select Probability Calculator. | Under One Variable Analysis, select Probability Calculator. |
Point to Statistics window. | We are looking, as before, at the Statistics window. |
From the dropdown menu at the top, select T Test, Difference of Means. | From the dropdown menu at the top, select T Test, Difference of Means. |
Type means, standard deviation σ and N=10 in respective boxes.
Press Enter after entering all values. |
You can type mean, standard deviation σ and total number of samples N in the boxes.
We will type 10 for N as each feed group has 10 fish. Press Enter after entering all values. |
Feed A Mean is lower than feed B Mean. | |
Choose feed B group as Sample 1 and feed A as Sample 2. | So we will choose feed B group as Sample 1 and feed A as Sample 2. |
Point to t, SE, df and P values. | Note t, standard error, degrees of freedom and P values.
Compare them to results from Multiple Variable Analysis. Select different tests for different pairs of columns in the Spreadsheet. Interpret the results and compare with your calculations. |
Let us summarize. | |
Slide Number 8
Summary |
In this tutorial, we have learnt how to use Probability Calculator in GeoGebra.
Looked at different distributions and parameters. |
Slide Number 9
Assignment |
Assignment
Perform statistical analyses for weight and girth data given in this tutorial. Four oils were used to deep fry chips. Amount of absorbed fat was measured for six chips fried in the four oils. Is any of the oils absorbed more than the others? |
Slide Number 10
About Spoken Tutorial project |
The video at the following link summarizes the Spoken Tutorial project.
Please download and watch it. |
Slide Number 11
Spoken Tutorial workshops |
The Spoken Tutorial Project team conducts workshops and gives certificates.
For more details, please write to us. |
Slide Number 12
Forum for specific questions: Do you have questions in THIS Spoken Tutorial? Please visit this site Choose the minute and second where you have the question Explain your question briefly Someone from our team will answer them |
Please post your timed queries on this forum. |
Slide Number 13
Acknowledgement |
Spoken Tutorial Project is funded by NMEICT, MHRD, Government of India.
More information on this mission is available at this link. |
This is Vidhya Iyer from IIT Bombay, signing off.
Thank you for joining. |