Difference between revisions of "PhET/C3/Curve-Fitting/English"
(Created page with " {|border=1 | | '''Visual Cue''' | | '''Narration''' |- | | '''Slide Number 1''' '''Title Slide''' | | Welcome to this tutorial on ''' Curve Fitting'''. |- | | '''Slide Num...") |
Snehalathak (Talk | contribs) |
||
(2 intermediate revisions by 2 users 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 ''' Curve Fitting'''. | + | ||Welcome to this tutorial on '''Curve Fitting'''. |
|- | |- | ||
− | | | '''Slide Number 2''' | + | ||'''Slide Number 2''' |
'''Learning Objectives''' | '''Learning Objectives''' | ||
Demonstrate an interactive '''PhET simulation''' | Demonstrate an interactive '''PhET simulation''' | ||
− | | | In this tutorial, we will demonstrate '''Curve Fitting PhET simulation'''. | + | ||In this tutorial, we will demonstrate '''Curve Fitting PhET simulation'''. |
|- | |- | ||
− | | | '''Slide Number 3''' | + | ||'''Slide Number 3''' |
'''System Requirements''' | '''System Requirements''' | ||
Line 27: | Line 25: | ||
'''Firefox Web Browser''' 60.0.2 | '''Firefox Web Browser''' 60.0.2 | ||
− | | | Here I am using, | + | ||Here I am using, |
'''Ubuntu Linux OS''' version 16.04 | '''Ubuntu Linux OS''' version 16.04 | ||
Line 35: | Line 33: | ||
'''Firefox Web Browser''' 60.0.2 | '''Firefox Web Browser''' 60.0.2 | ||
|- | |- | ||
− | | | '''Slide Number 4''' | + | ||'''Slide Number 4''' |
'''Pre-requisites''' | '''Pre-requisites''' | ||
− | | | The learner should be familiar with topics in high school mathematics. | + | ||The learner should be familiar with topics in high school mathematics. |
|- | |- | ||
− | | | '''Slide Number 5''' | + | ||'''Slide Number 5''' |
'''Learning Goals''' | '''Learning Goals''' | ||
Line 53: | Line 51: | ||
'''Reduced chi squared statistic χ<sub>r</sub><sup>2'''</sup> and '''correlation coefficient r<sup>2'''</sup> | '''Reduced chi squared statistic χ<sub>r</sub><sup>2'''</sup> and '''correlation coefficient r<sup>2'''</sup> | ||
− | | | Using this '''simulation''' we will look at, | + | ||Using this '''simulation''' we will look at, |
− | Lines | + | Lines |
− | + | Quadratic polynomials | |
− | + | Cubic polynomials | |
− | + | Quartic polynomials | |
'''Reduced chi squared statistic''' and '''correlation coefficient r squared''' | '''Reduced chi squared statistic''' and '''correlation coefficient r squared''' | ||
|- | |- | ||
− | + | || | |
− | + | ||Let us begin. | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | | | | + | |
− | | | Let us begin. | + | |
|- | |- | ||
− | | | '''Slide Number | + | ||'''Slide Number 6''' |
'''Link for PhET simulation''' | '''Link for PhET simulation''' | ||
[http://phet.colorado.edu/ http://phet.colorado.edu] | [http://phet.colorado.edu/ http://phet.colorado.edu] | ||
− | | | Use the given link to download the '''simulation'''. | + | ||Use the given link to download the '''simulation'''. |
[http://phet.colorado.edu/ http://phet.colorado.edu] | [http://phet.colorado.edu/ http://phet.colorado.edu] | ||
|- | |- | ||
− | | | Show the '''Downloads''' folder. | + | ||Show the '''Downloads''' folder. |
− | | | I have already downloaded '''Curve Fitting simulation''' to my '''Downloads''' folder. | + | ||I have already downloaded '''Curve Fitting simulation''' to my '''Downloads''' folder. |
|- | |- | ||
− | | | Press Ctrl+Alt+T to the terminal. | + | ||Press Ctrl+Alt+T to the terminal. |
Type '''cd Downloads''' >> press '''Enter'''. | Type '''cd Downloads''' >> press '''Enter'''. | ||
Type '''java space hyphen jar space equation-grapher_en.jar'''. | Type '''java space hyphen jar space equation-grapher_en.jar'''. | ||
+ | |||
+ | Press Enter. | ||
Point to the opened '''file''' format. | Point to the opened '''file''' format. | ||
− | | | To open the '''jar file''', open the '''terminal'''. | + | ||To open the '''jar file''', open the '''terminal'''. |
At the '''terminal prompt''', type '''cd Downloads''' and press '''Enter'''. | At the '''terminal prompt''', type '''cd Downloads''' and press '''Enter'''. | ||
− | Type '''java space hyphen jar space curve hyphen fitting underscore en | + | Type '''java space hyphen jar space curve hyphen fitting underscore en dot jar'''. |
+ | |||
+ | Press Enter. | ||
− | '''File''' opens in the '''browser''' in | + | '''File''' opens in the '''browser''' in '''html''' format. |
|- | |- | ||
− | | | '''Cursor''' on the '''interface'''. | + | ||'''Cursor''' on the '''interface'''. |
− | | | This is the '''interface''' for the '''Curve Fitting simulation'''. | + | ||This is the '''interface''' for the '''Curve Fitting simulation'''. |
|- | |- | ||
− | | | Point to the '''Help | + | ||Point to the '''Help''' button, the '''Functions''' box and the '''Data Points''' bucket in the first quadrant. |
Point to '''Linear''' and '''Best Fit''' default selections. | Point to '''Linear''' and '''Best Fit''' default selections. | ||
− | | | Observe the '''Help button''', the '''Functions''' box and the '''Data Points''' bucket in the first quadrant. | + | ||Observe the '''Help button''', the '''Functions''' box and the '''Data Points''' bucket in the first quadrant. |
− | In '''Functions''' box, '''Linear''' and '''Best Fit | + | In '''Functions''' box, '''Linear''' and '''Best Fit''' radio buttons are default selections. |
|- | |- | ||
− | | | Click the '''Help | + | ||Click the '''Help''' button. |
− | | | Let us click the '''Help | + | ||Let us click the '''Help''' button. |
|- | |- | ||
− | | | Point to the legend for '''draggable error bars''' in the first quadrant. | + | ||Point to the legend for '''draggable error bars''' in the first quadrant. |
Point to the data point bucket. | Point to the data point bucket. | ||
− | | | A legend for '''draggable error bars''' appears in the first quadrant. | + | ||A legend for '''draggable error bars''' appears in the first quadrant. |
The data points can be pulled out or put in the bucket. | The data points can be pulled out or put in the bucket. | ||
|- | |- | ||
− | | | Point to the '''Best Fit equation''' in the 4<sup>th</sup> quadrant. | + | ||Point to the '''Best Fit equation''' in the 4<sup>th</sup> quadrant. |
Point to the '''display''' boxes for '''a''' and '''b'''. | Point to the '''display''' boxes for '''a''' and '''b'''. | ||
Line 139: | Line 124: | ||
Point to '''r<sup>2'''</sup>. | Point to '''r<sup>2'''</sup>. | ||
− | | | In the fourth quadrant, '''Best Fit equation''' is seen with the '''display''' boxes for '''a''' and '''b'''. | + | ||In the fourth quadrant, '''Best Fit equation''' is seen with the '''display''' boxes for '''a''' and '''b'''. |
The equation is '''y equals a plus bx'''. | The equation is '''y equals a plus bx'''. | ||
− | Below the | + | Below the display boxes is the '''correlation coefficient r squared'''. |
|- | |- | ||
− | | | Point to the '''χ<sub>r</sub><sup>2'''</sup> scale. | + | ||Point to the '''χ<sub>r</sub><sup>2'''</sup> scale. |
Point to the formula in the '''Help''' box. | Point to the formula in the '''Help''' box. | ||
− | | | In the 2<sup>nd</sup> and 3<sup>rd</sup> quadrants is a scale for the '''reduced chi squared statistic'''. | + | ||In the 2<sup>nd</sup> and 3<sup>rd</sup> quadrants is a scale for the '''reduced chi squared statistic'''. |
The formula for the '''chi squared statistic''' is given in the '''Help''' box. | The formula for the '''chi squared statistic''' is given in the '''Help''' box. | ||
|- | |- | ||
− | | | Point to the '''conditions for fit''' in the '''Help''' box. | + | ||Point to the '''conditions for fit''' in the '''Help''' box. |
− | | | Below the formula, we see the ''' | + | ||Below the formula, we see the conditions for '''fit'''. |
Good or very good fit of data with the equation is seen with a '''chi squared statistic''' of or below 1. | Good or very good fit of data with the equation is seen with a '''chi squared statistic''' of or below 1. | ||
|- | |- | ||
− | | | Click on '''Hide Help'''. | + | ||Click on '''Hide Help'''. |
− | | | Let us click on '''Hide Help''' to hide these boxes. | + | ||Let us click on '''Hide Help''' to hide these boxes. |
|- | |- | ||
− | | | Drag three data points out of the bucket. | + | ||Drag three data points out of the bucket. |
− | Place them at | + | Place them at (-10, -4), (-4, 4) and (5, 10). |
Place the mouse on the '''co-ordinates''' to show them. | Place the mouse on the '''co-ordinates''' to show them. | ||
− | | | Drag three data points out of the bucket. | + | ||Drag three data points out of the bucket. |
− | Place them at '''-10 comma -4''', | + | Place them at '''-10 comma -4''', '''-4 comma 4''', and '''5 comma 10'''. |
Placing the mouse on them will show their '''co-ordinates'''. | Placing the mouse on them will show their '''co-ordinates'''. | ||
|- | |- | ||
− | | | Point to the equation '''y = 6.07 + 0.912 x'''. | + | ||Point to the equation '''y = 6.07 + 0.912 x'''. |
Point to '''r<sup>2</sup> '''<nowiki>= 0.9616. </nowiki> | Point to '''r<sup>2</sup> '''<nowiki>= 0.9616. </nowiki> | ||
− | | | Note that the equation for the best fit line drawn is '''y equals 6.07 plus 0.912 x'''. | + | ||Note that the equation for the best fit line drawn is '''y equals 6.07 plus 0.912 x'''. |
The '''correlation coefficient r squared''' for the '''best fit line''' is 0.9616. | The '''correlation coefficient r squared''' for the '''best fit line''' is 0.9616. | ||
Line 181: | Line 166: | ||
The closer the '''r squared''' value is to 1, the better is the prediction of '''variance''' in '''y''' from '''x'''. | The closer the '''r squared''' value is to 1, the better is the prediction of '''variance''' in '''y''' from '''x'''. | ||
|- | |- | ||
− | | | Point to '''χ<sub>r</sub><sup>2'''</sup> = 6.74 and the red bar. | + | ||Point to '''χ<sub>r</sub><sup>2'''</sup> = 6.74 and the red bar. |
Click on '''Help''' and to conditions for a poor fit. | Click on '''Help''' and to conditions for a poor fit. | ||
− | | | Note that the '''reduced chi statistic''' is 6.74 but the bar is red. | + | ||Note that the '''reduced chi squared statistic''' is 6.74 but the bar is red. |
Click on '''Help''' and note that this means that the fit is poor. | Click on '''Help''' and note that this means that the fit is poor. | ||
+ | Again click on hide Help. | ||
|- | |- | ||
− | | | Drag another data point and place it at '''(0, 11)''' on the '''y axis'''. | + | ||Drag another data point and place it at '''(0, 11)''' on the '''y axis'''. |
Point to the '''best fit line''', '''y = 7.51 + 1.004 x'''. | Point to the '''best fit line''', '''y = 7.51 + 1.004 x'''. | ||
− | | | Let us drag another data point and place it at '''0 comma 11''' on the '''y axis'''. | + | ||Let us drag another data point and place it at '''0 comma 11''' on the '''y axis'''. |
Note that the '''best fit line''' becomes '''y equals 7.51 plus 1.004 x'''. | Note that the '''best fit line''' becomes '''y equals 7.51 plus 1.004 x'''. | ||
|- | |- | ||
− | | | Point to the slope of the '''best fit line''', 1.004. | + | ||Point to the slope of the '''best fit line''', 1.004. |
Point to the '''y intercept''' of 7.51. | Point to the '''y intercept''' of 7.51. | ||
Line 204: | Line 190: | ||
Point to '''r<sup>2'''</sup><nowiki>= 0.8529. </nowiki> | Point to '''r<sup>2'''</sup><nowiki>= 0.8529. </nowiki> | ||
− | | | The slope of the '''best fit line''' has increased slightly from 0.912 to 1.004. | + | ||The slope of the '''best fit line''' has increased slightly from 0.912 to 1.004. |
The '''y intercept''' has also increased from 6.07 to 7.51. | The '''y intercept''' has also increased from 6.07 to 7.51. | ||
Line 214: | Line 200: | ||
The prediction of '''variance''' in '''y''' from '''x''' with this equation has become less reliable. | The prediction of '''variance''' in '''y''' from '''x''' with this equation has become less reliable. | ||
|- | |- | ||
− | | | Point to the '''χ<sub>r</sub><sup>2'''</sup> of 18.66. | + | ||Point to the '''χ<sub>r</sub><sup>2'''</sup> of 18.66. |
− | | | Note also how the '''reduced chi squared statistic''' has increased from 6.74 to 18.66. | + | ||Note also how the '''reduced chi squared statistic''' has increased from 6.74 to 18.66. |
|- | |- | ||
− | | | Drag the data point from '''(0, 11)''' to '''(0, 6'''). | + | ||Drag the data point from '''(0, 11)''' to '''(0, 6'''). |
Point to the equation '''y = 6.05 + 0.911 x'''. | Point to the equation '''y = 6.05 + 0.911 x'''. | ||
Point to '''r<sup>2'''</sup> = 0.9635 and''' χ<sub>r</sub><sup>2'''</sup> of 3.37. | Point to '''r<sup>2'''</sup> = 0.9635 and''' χ<sub>r</sub><sup>2'''</sup> of 3.37. | ||
− | | | Drag the data point from '''0 comma 11''' to '''0 comma 6'''. | + | ||Drag the data point from '''0 comma 11''' to '''0 comma 6'''. |
Note how the equation becomes '''y equals 6.05 plus 0.911 x'''. | Note how the equation becomes '''y equals 6.05 plus 0.911 x'''. | ||
Line 228: | Line 214: | ||
The '''r squared''' value increases to 0.9635 and the '''reduced chi squared statistic''' falls to 3.37. | The '''r squared''' value increases to 0.9635 and the '''reduced chi squared statistic''' falls to 3.37. | ||
|- | |- | ||
− | | | Drag the data point from '''(-4, 4)''' to '''(-4, 3.5)'''. | + | ||Drag the data point from '''(-4, 4)''' to '''(-4, 3.5)'''. |
The '''r<sup>2'''</sup> value increases to 0.9772 and '''χ<sub>r</sub><sup>2 '''</sup>falls to 2.12. | The '''r<sup>2'''</sup> value increases to 0.9772 and '''χ<sub>r</sub><sup>2 '''</sup>falls to 2.12. | ||
Line 237: | Line 223: | ||
Click on '''Hide Help'''. | Click on '''Hide Help'''. | ||
− | | | Drag the data point from '''-4 comma 4''' to '''-4 comma 3.5'''. | + | ||Drag the data point from '''-4 comma 4''' to '''-4 comma 3.5'''. |
The '''r squared''' value increases to 0.9772. | The '''r squared''' value increases to 0.9772. | ||
Line 251: | Line 237: | ||
A true '''best fit line''' explains all the data and gives a good prediction of '''y''' values from '''x''' values. | A true '''best fit line''' explains all the data and gives a good prediction of '''y''' values from '''x''' values. | ||
|- | |- | ||
− | | | Click '''Adjustable Fit'''. | + | ||Click '''Adjustable Fit'''. |
Drag '''sliders a''' and '''b''' to values close to 0. | Drag '''sliders a''' and '''b''' to values close to 0. | ||
Line 266: | Line 252: | ||
Point to the '''r<sup>2'''</sup> value of 0. | Point to the '''r<sup>2'''</sup> value of 0. | ||
− | | | Click '''Adjustable Fit radio button'''. | + | ||Click '''Adjustable Fit radio button'''. |
Drag '''sliders a''' and '''b''' to values close to 0. | Drag '''sliders a''' and '''b''' to values close to 0. | ||
Line 282: | Line 268: | ||
And the '''r squared''' value is 0, meaning poor correlation. | And the '''r squared''' value is 0, meaning poor correlation. | ||
|- | |- | ||
− | | | Click '''Best Fit '''again. | + | ||Click '''Best Fit '''again. |
Note down the values for '''a''' and '''b''' (5.94 and 0.918). | Note down the values for '''a''' and '''b''' (5.94 and 0.918). | ||
− | + | click '''Adjustable Fit'''. | |
− | + | Drag '''sliders a''' and '''b''' and point to the line. | |
Point to the line. | Point to the line. | ||
Line 295: | Line 281: | ||
Point to the line, '''r<sup>2'''</sup> (0.9709) and '''χ<sub>r</sub><sup>2'''</sup> (2.23). | Point to the line, '''r<sup>2'''</sup> (0.9709) and '''χ<sub>r</sub><sup>2'''</sup> (2.23). | ||
− | | | Click '''Best Fit radio button''' again. | + | ||Click '''Best Fit radio button''' again. |
Note down the values for '''a''' and '''b''' (5.94 and 0.918). | Note down the values for '''a''' and '''b''' (5.94 and 0.918). | ||
Line 311: | Line 297: | ||
Note '''r squared''' and the '''reduced chi squared statistic'''. | Note '''r squared''' and the '''reduced chi squared statistic'''. | ||
|- | |- | ||
− | | | Check '''Show deviations''' and click '''Best Fit'''. | + | ||Check '''Show deviations''' and click '''Best Fit'''. |
Point to the vertical lines from the data points to the '''best fit line'''. | Point to the vertical lines from the data points to the '''best fit line'''. | ||
− | | | Check '''Show deviations''' and click '''Best Fit'''. | + | ||Check '''Show deviations''' and click '''Best Fit'''. |
The vertical lines from the data points to the '''best fit line''' show the deviations from the line. | The vertical lines from the data points to the '''best fit line''' show the deviations from the line. | ||
|- | |- | ||
− | | | Drag the data points at '''(-4, 3.5)''' and '''(0, 6)''' into the bucket. | + | ||Drag the data points at '''(-4, 3.5)''' and '''(0, 6)''' into the bucket. |
Point to the line and the two points. | Point to the line and the two points. | ||
Line 324: | Line 310: | ||
Point to '''r<sup>2</sup> '''and '''χ<sub>r</sub><sup>2'''</sup>. | Point to '''r<sup>2</sup> '''and '''χ<sub>r</sub><sup>2'''</sup>. | ||
− | | | Drag the data points at '''-4 comma 3.5''' and '''0 comma 6''' into the bucket. | + | ||Drag the data points at '''-4 comma 3.5''' and '''0 comma 6''' into the bucket. |
Note how the line now passes through the two points. | Note how the line now passes through the two points. | ||
Line 334: | Line 320: | ||
Without a third point, there is no question of the line being anything but the '''best fit line'''. | Without a third point, there is no question of the line being anything but the '''best fit line'''. | ||
|- | |- | ||
− | | | | + | || |
− | | | Now, we will look at some information for you to graph a '''quadratic polynomial'''. | + | ||Now, we will look at some information for you to graph a '''quadratic polynomial'''. |
|- | |- | ||
− | | | '''Slide Number | + | ||'''Slide Number 7''' |
− | Quadratic polynomials | + | '''Quadratic polynomials''' |
FIGURE | FIGURE | ||
− | y = a + bx + cx<sup>2</sup> | + | '''y = a + bx + cx<sup>2</sup>''' |
− | Degree = 2; quadratic | + | Degree = 2; '''quadratic''' |
Maximum 2 roots | Maximum 2 roots | ||
− | (-9, 10), (-7, 2), (2.5, -2.5), (5, 10) | + | '''(-9, 10), (-7, 2), (2.5, -2.5), (5, 10)''' |
− | a = -7.89, b = 1.495, c = 0.396 | + | '''a''' = -7.89, '''b''' = 1.495, '''c''' = 0.396 |
− | r<sup>2</sup> = ?,''' χ<sub>r</sub><sup>2'''</sup> = ? | + | '''r<sup>2</sup>''' = ?, '''χ<sub>r</sub><sup>2'''</sup> = ? |
Adjustable Fit | Adjustable Fit | ||
− | | | '''Quadratic polynomials''' | + | ||'''Quadratic polynomials''' |
'''Quadratic polynomials''' are of the form '''y equals a plus bx plus c x squared'''. | '''Quadratic polynomials''' are of the form '''y equals a plus bx plus c x squared'''. | ||
− | The degree of the | + | The degree of the polynomial is 2, hence, it is called '''quadratic'''. |
The '''function''' can have a maximum of 2 roots. | The '''function''' can have a maximum of 2 roots. | ||
Line 370: | Line 356: | ||
Note the '''r squared''' and '''reduced chi squared statistic''' values. (0.9794, 4.23) | Note the '''r squared''' and '''reduced chi squared statistic''' values. (0.9794, 4.23) | ||
− | Also, click '''Adjustable Fit''' and see effects of '''a''', '''b''' | + | Also, click '''Adjustable Fit''' and see effects of '''a''', '''b''', '''c''' on the fit. |
|- | |- | ||
− | | | Show the '''best fit'''graph for the '''quadratic polynomial'''. | + | ||Show the '''best fit'''graph for the '''quadratic polynomial'''. |
− | | | This is what the '''best fit''' graph for this '''quadratic polynomial''' will look like. | + | ||This is what the '''best fit''' graph for this '''quadratic polynomial''' will look like. |
|- | |- | ||
− | + | ||'''Slide Number 8''' | |
− | + | ||
− | + | ||
− | | | '''Slide Number | + | |
− | Cubic polynomials | + | '''Cubic polynomials''' |
FIGURE | FIGURE | ||
− | y = a + bx + cx<sup>2</sup> + dx<sup>3</sup> | + | '''y = a + bx + cx<sup>2</sup> + dx<sup>3</sup>''' |
− | Degree = 3; cubic | + | Degree = 3; '''cubic''' |
Maximum 3 roots | Maximum 3 roots | ||
− | (-9, 10), (-7, 2), (-6, -4), (5, 10), (13, 2) | + | '''(-9, 10), (-7, 2), (-6, -4), (5, 10), (13, 2)''' |
− | r<sup>2</sup> = ?,''' χ<sub>r</sub><sup>2'''</sup> = ? | + | '''r<sup>2</sup>''' = ?,''' χ<sub>r</sub><sup>2'''</sup> = ? |
Adjustable Fit | Adjustable Fit | ||
− | | | '''Cubic polynomials''' | + | ||'''Cubic polynomials''' |
− | + | Now, we will look at some information for you to graph a '''cubic polynomial'''. | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
Note the '''r squared''' and '''reduced chi squared statistic''' values. | Note the '''r squared''' and '''reduced chi squared statistic''' values. | ||
− | |||
− | |||
|- | |- | ||
− | | | Show the '''best fit''' graph for the '''cubic polynomial'''. | + | ||Show the '''best fit''' graph for the '''cubic polynomial'''. |
− | | | This is what the '''best fit''' graph for this '''cubic polynomial''' will look like. | + | ||This is what the '''best fit''' graph for this '''cubic polynomial''' will look like. |
|- | |- | ||
− | + | ||'''Slide Number 9''' | |
− | + | ||
− | + | ||
− | | | '''Slide Number | + | |
− | Quartic polynomials | + | '''Quartic polynomials''' |
FIGURE | FIGURE | ||
− | y = a + bx + cx<sup>2</sup> + dx<sup>3</sup> + ex<sup>4</sup> | + | '''y = a + bx + cx<sup>2</sup> + dx<sup>3</sup> + ex<sup>4</sup>''' |
− | Degree = 4; quartic | + | Degree = 4; '''quartic''' |
Maximum 4 roots | Maximum 4 roots | ||
− | (-9, 10), (-7, 2), (-6, -4), (5, 10), (9, 3) (13, 2) | + | '''(-9, 10), (-7, 2), (-6, -4), (5, 10), (9, 3) (13, 2)''' |
− | r<sup>2</sup> = ?,''' χ<sub>r</sub><sup>2'''</sup> = ? | + | '''r<sup>2</sup>''' = ?, '''χ<sub>r</sub><sup>2'''</sup> = ? |
Adjustable Fit | Adjustable Fit | ||
− | | | '''Quartic polynomials''' | + | ||'''Quartic polynomials''' |
− | + | Now, we will look at some information for you to graph a '''quartic polynomial'''. | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
Note the '''r squared''' and '''reduced chi squared statistic''' values. | Note the '''r squared''' and '''reduced chi squared statistic''' values. | ||
− | |||
− | |||
|- | |- | ||
− | | | Show the '''best fit''' graph for the '''quartic polynomial'''. | + | ||Show the '''best fit''' graph for the '''quartic polynomial'''. |
− | | | This is what the '''best fit''' graph for this '''quartic polynomial''' will look like. | + | ||This is what the '''best fit''' graph for this '''quartic polynomial''' will look like. |
|- | |- | ||
− | | | '''Slide Number | + | ||'''Slide Number 10''' |
'''Assignment''' | '''Assignment''' | ||
− | | | As an '''assignment''', | + | ||As an '''assignment''', |
Change the data points and their number. | Change the data points and their number. | ||
Line 462: | Line 422: | ||
Follow the steps shown earlier to get '''best fit''' graphs for all the '''polynomials'''. | Follow the steps shown earlier to get '''best fit''' graphs for all the '''polynomials'''. | ||
|- | |- | ||
− | | | '''Slide Number | + | ||'''Slide Number 11''' |
'''Summary''' | '''Summary''' | ||
− | | | In this '''tutorial''', we have demonstrated the | + | ||In this '''tutorial''', we have demonstrated the |
'''Curve Fitting PhET simulation''' | '''Curve Fitting PhET simulation''' | ||
|- | |- | ||
− | | | '''Slide Number | + | ||'''Slide Number 12''' |
'''Summary''' | '''Summary''' | ||
− | |||
− | Lines | + | Lines '''y=ax + b''' |
− | '''Quadratic | + | '''Quadratic polynomials y= ax<sup>2</sup>+bx+c''' |
− | '''Cubic | + | '''Cubic polynomials y = ax<sup>3</sup> + bx<sup>2</sup> + cx + d''' |
− | '''Quartic | + | '''Quartic polynomials y = 'ax<sup>4</sup> + bx<sup>3</sup> + cx<sup>2</sup> + dx + e''' |
+ | |||
+ | '''Reduced chi square statistic χ<sub>r</sub><sup>2'''</sup> and '''correlation coefficient r<sup>2'''</sup> | ||
+ | || Using this '''simulation''', we have looked at: | ||
+ | |||
+ | Lines | ||
+ | ''' | ||
+ | Quadratic polynomials | ||
+ | |||
+ | Cubic polynomials | ||
+ | |||
+ | Quartic polynomials | ||
'''Reduced chi square statistic χ<sub>r</sub><sup>2'''</sup> and '''correlation coefficient r<sup>2'''</sup> | '''Reduced chi square statistic χ<sub>r</sub><sup>2'''</sup> and '''correlation coefficient r<sup>2'''</sup> | ||
|- | |- | ||
− | | | '''Slide Number | + | ||'''Slide Number 13''' |
'''About the Spoken Tutorial Project''' | '''About the Spoken Tutorial Project''' | ||
Line 494: | Line 464: | ||
If you do not have good bandwidth, you can download and watch it | If you do not have good bandwidth, you can download and watch it | ||
− | | | 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 14''' |
'''Spoken Tutorial workshops''' | '''Spoken Tutorial workshops''' | ||
− | | | The '''Spoken Tutorial Project '''team conducts workshops using '''spoken tutorials''' and gives certificate courses | + | ||The '''Spoken Tutorial Project '''team conducts workshops using '''spoken tutorials''' and gives certificate courses on passing online tests. |
For more details, please write to us. | For more details, please write to us. | ||
|- | |- | ||
− | | | '''Slide Number | + | ||'''Slide Number 15''' |
'''Forum for specific questions:''' | '''Forum for specific questions:''' | ||
Line 518: | Line 488: | ||
Someone from our team will answer them | Someone from our team will answer them | ||
− | | | Please post your timed queries in this forum. | + | ||Please post your timed queries in this forum. |
|- | |- | ||
− | | | '''Slide Number | + | ||'''Slide Number 16''' |
'''Acknowledgement''' | '''Acknowledgement''' | ||
− | | | This project is partially funded by '''Pandit Madan Mohan Malaviya National Mission on Teachers and Teaching'''. | + | ||This project is partially funded by '''Pandit Madan Mohan Malaviya National Mission on Teachers and Teaching'''. |
|- | |- | ||
− | | | '''Slide Number | + | ||'''Slide Number 17''' |
'''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'''. | + | ||This is '''Vidhya Iyer''' from '''IIT Bombay''' signing off. |
Thank you for joining. | Thank you for joining. | ||
|- | |- | ||
|} | |} |
Latest revision as of 17:14, 5 October 2018
Visual Cue | Narration |
Slide Number 1
Title Slide |
Welcome to this tutorial on Curve Fitting. |
Slide Number 2
Learning Objectives Demonstrate an interactive PhET simulation |
In this tutorial, we will demonstrate Curve Fitting PhET simulation. |
Slide Number 3
System Requirements Ubuntu Linux OS version 16.04 Java version 1.8.0 Firefox Web Browser 60.0.2 |
Here I am using,
Ubuntu Linux OS version 16.04 Java version 1.8.0 Firefox Web Browser 60.0.2 |
Slide Number 4
Pre-requisites |
The learner should be familiar with topics in high school mathematics. |
Slide Number 5
Learning Goals Lines y=ax + b Quadratic polynomials y = ax2+bx+c Cubic polynomials y= ax3 + bx2 + cx + d Quartic polynomials y = ax4 + bx3 + cx2 + dx + e Reduced chi squared statistic χr2 and correlation coefficient r2 |
Using this simulation we will look at,
Lines Quadratic polynomials Cubic polynomials Quartic polynomials Reduced chi squared statistic and correlation coefficient r squared |
Let us begin. | |
Slide Number 6
Link for PhET simulation |
Use the given link to download the simulation. |
Show the Downloads folder. | I have already downloaded Curve Fitting simulation to my Downloads folder. |
Press Ctrl+Alt+T to the terminal.
Type cd Downloads >> press Enter. Type java space hyphen jar space equation-grapher_en.jar. Press Enter. Point to the opened file format. |
To open the jar file, open the terminal.
At the terminal prompt, type cd Downloads and press Enter. Type java space hyphen jar space curve hyphen fitting underscore en dot jar. Press Enter. File opens in the browser in html format. |
Cursor on the interface. | This is the interface for the Curve Fitting simulation. |
Point to the Help button, the Functions box and the Data Points bucket in the first quadrant.
Point to Linear and Best Fit default selections. |
Observe the Help button, the Functions box and the Data Points bucket in the first quadrant.
In Functions box, Linear and Best Fit radio buttons are default selections. |
Click the Help button. | Let us click the Help button. |
Point to the legend for draggable error bars in the first quadrant.
Point to the data point bucket. |
A legend for draggable error bars appears in the first quadrant.
The data points can be pulled out or put in the bucket. |
Point to the Best Fit equation in the 4th quadrant.
Point to the display boxes for a and b. Point to the equation y = a + bx. Point to r2. |
In the fourth quadrant, Best Fit equation is seen with the display boxes for a and b.
The equation is y equals a plus bx. Below the display boxes is the correlation coefficient r squared. |
Point to the χr2 scale.
Point to the formula in the Help box. |
In the 2nd and 3rd quadrants is a scale for the reduced chi squared statistic.
The formula for the chi squared statistic is given in the Help box. |
Point to the conditions for fit in the Help box. | Below the formula, we see the conditions for fit.
Good or very good fit of data with the equation is seen with a chi squared statistic of or below 1. |
Click on Hide Help. | Let us click on Hide Help to hide these boxes. |
Drag three data points out of the bucket.
Place them at (-10, -4), (-4, 4) and (5, 10). Place the mouse on the co-ordinates to show them. |
Drag three data points out of the bucket.
Place them at -10 comma -4, -4 comma 4, and 5 comma 10. Placing the mouse on them will show their co-ordinates. |
Point to the equation y = 6.07 + 0.912 x.
Point to r2 = 0.9616. |
Note that the equation for the best fit line drawn is y equals 6.07 plus 0.912 x.
The correlation coefficient r squared for the best fit line is 0.9616. The closer the r squared value is to 1, the better is the prediction of variance in y from x. |
Point to χr2 = 6.74 and the red bar.
Click on Help and to conditions for a poor fit. |
Note that the reduced chi squared statistic is 6.74 but the bar is red.
Click on Help and note that this means that the fit is poor. Again click on hide Help. |
Drag another data point and place it at (0, 11) on the y axis.
Point to the best fit line, y = 7.51 + 1.004 x. |
Let us drag another data point and place it at 0 comma 11 on the y axis.
Note that the best fit line becomes y equals 7.51 plus 1.004 x. |
Point to the slope of the best fit line, 1.004.
Point to the y intercept of 7.51.
Point to r2= 0.8529. |
The slope of the best fit line has increased slightly from 0.912 to 1.004.
The y intercept has also increased from 6.07 to 7.51. The data point 0 comma 11 is further away from the best fit line than the other points. Note how the r squared value decreases from 0.9616 to 0.8529. The prediction of variance in y from x with this equation has become less reliable. |
Point to the χr2 of 18.66. | Note also how the reduced chi squared statistic has increased from 6.74 to 18.66. |
Drag the data point from (0, 11) to (0, 6).
Point to the equation y = 6.05 + 0.911 x. Point to r2 = 0.9635 and χr2 of 3.37. |
Drag the data point from 0 comma 11 to 0 comma 6.
Note how the equation becomes y equals 6.05 plus 0.911 x. The r squared value increases to 0.9635 and the reduced chi squared statistic falls to 3.37. |
Drag the data point from (-4, 4) to (-4, 3.5).
The r2 value increases to 0.9772 and χr2 falls to 2.12. Point to the green bar. Click on Help and to the green zone indicating good fit. Click on Hide Help. |
Drag the data point from -4 comma 4 to -4 comma 3.5.
The r squared value increases to 0.9772. The reduced chi squared statistic falls to 2.12. The bar now becomes green. Click on Help; the green zone shows good fit. Click on Hide Help. A true best fit line explains all the data and gives a good prediction of y values from x values. |
Click Adjustable Fit.
Drag sliders a and b to values close to 0. Show space where erased line was seen. Point to the line that is now parallel to the x axis. Point to the display boxes for a and b and to sliders a and b. Point to the data points. Point to the red bar and χr2. Point to the r2 value of 0. |
Click Adjustable Fit radio button.
Drag sliders a and b to values close to 0. Observe how this erases the line drawn earlier. A line parallel to the x axis is seen. Slider a and b values will be displayed in the boxes. The data points are still where we placed them. But the reduced chi square statistic is very high and in the red zone. And the r squared value is 0, meaning poor correlation. |
Click Best Fit again.
Note down the values for a and b (5.94 and 0.918). click Adjustable Fit. Drag sliders a and b and point to the line. Point to the line. Drag slider a to 6 and b to 0.97. Point to the line, r2 (0.9709) and χr2 (2.23). |
Click Best Fit radio button again.
Note down the values for a and b (5.94 and 0.918). Again, click Adjustable Fit radio button. Now drag sliders a and b from end to end. Observe the effects of these changes on the line. Drag slider a to 6 and b to 0.97. The line looks like the best fit line we saw earlier. Note r squared and the reduced chi squared statistic. |
Check Show deviations and click Best Fit.
Point to the vertical lines from the data points to the best fit line. |
Check Show deviations and click Best Fit.
The vertical lines from the data points to the best fit line show the deviations from the line. |
Drag the data points at (-4, 3.5) and (0, 6) into the bucket.
Point to the line and the two points. Point to r2 and χr2. |
Drag the data points at -4 comma 3.5 and 0 comma 6 into the bucket.
Note how the line now passes through the two points. R squared approaches 1 and the reduced chi squared statistic becomes 0. The fit has become too good because a line is defined by two points. Without a third point, there is no question of the line being anything but the best fit line. |
Now, we will look at some information for you to graph a quadratic polynomial. | |
Slide Number 7
Quadratic polynomials FIGURE y = a + bx + cx2 Degree = 2; quadratic Maximum 2 roots (-9, 10), (-7, 2), (2.5, -2.5), (5, 10) a = -7.89, b = 1.495, c = 0.396 r2 = ?, χr2 = ? Adjustable Fit |
Quadratic polynomials
Quadratic polynomials are of the form y equals a plus bx plus c x squared. The degree of the polynomial is 2, hence, it is called quadratic. The function can have a maximum of 2 roots. Drag and place data points at the following co-ordinates. -9 comma 10, -7 comma 2, 2.5 comma -2.5 and 5 comma 10 Note the r squared and reduced chi squared statistic values. (0.9794, 4.23) Also, click Adjustable Fit and see effects of a, b, c on the fit. |
Show the best fitgraph for the quadratic polynomial. | This is what the best fit graph for this quadratic polynomial will look like. |
Slide Number 8
Cubic polynomials FIGURE y = a + bx + cx2 + dx3 Degree = 3; cubic Maximum 3 roots (-9, 10), (-7, 2), (-6, -4), (5, 10), (13, 2) r2 = ?, χr2 = ? Adjustable Fit |
Cubic polynomials
Now, we will look at some information for you to graph a cubic polynomial. Note the r squared and reduced chi squared statistic values. |
Show the best fit graph for the cubic polynomial. | This is what the best fit graph for this cubic polynomial will look like. |
Slide Number 9
Quartic polynomials FIGURE y = a + bx + cx2 + dx3 + ex4 Degree = 4; quartic Maximum 4 roots (-9, 10), (-7, 2), (-6, -4), (5, 10), (9, 3) (13, 2) r2 = ?, χr2 = ? Adjustable Fit |
Quartic polynomials
Now, we will look at some information for you to graph a quartic polynomial. Note the r squared and reduced chi squared statistic values. |
Show the best fit graph for the quartic polynomial. | This is what the best fit graph for this quartic polynomial will look like. |
Slide Number 10
Assignment |
As an assignment,
Change the data points and their number. Follow the steps shown earlier to get best fit graphs for all the polynomials. |
Slide Number 11
Summary |
In this tutorial, we have demonstrated the
Curve Fitting PhET simulation |
Slide Number 12
Summary Lines y=ax + b Quadratic polynomials y= ax2+bx+c Cubic polynomials y = ax3 + bx2 + cx + d Quartic polynomials y = 'ax4 + bx3 + cx2 + dx + e Reduced chi square statistic χr2 and correlation coefficient r2 |
Using this simulation, we have looked at:
Lines Quadratic polynomials Cubic polynomials Quartic polynomials Reduced chi square statistic χr2 and correlation coefficient r2 |
Slide Number 13
About the Spoken Tutorial Project Watch the video available at http://spoken-tutorial.org/ What_is_a_Spoken_Tutorial It summarizes the Spoken Tutorial project If you do not have good bandwidth, you can download and watch it |
The video at the following link summarizes the Spoken Tutorial project.
Please download and watch it |
Slide Number 14
Spoken Tutorial workshops |
The Spoken Tutorial Project team conducts workshops using spoken tutorials and gives certificate courses on passing online tests.
For more details, please write to us. |
Slide Number 15
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 in this forum. |
Slide Number 16
Acknowledgement |
This project is partially funded by Pandit Madan Mohan Malaviya National Mission on Teachers and Teaching. |
Slide Number 17
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. |