Plotting data & Regression using the parallelogram method Annika Lohstroh 17 BB 03...

14
Plotting data & Regression using the parallelogram method Annika Lohstroh 17 BB 03 [email protected]
  • date post

    22-Dec-2015
  • Category

    Documents

  • view

    220
  • download

    0

Transcript of Plotting data & Regression using the parallelogram method Annika Lohstroh 17 BB 03...

Page 1: Plotting data & Regression using the parallelogram method Annika Lohstroh 17 BB 03 A.Lohstroh@surrey.ac.uk.

Plotting data &

Regression using the parallelogram method

Annika Lohstroh

17 BB 03

[email protected]

Page 2: Plotting data & Regression using the parallelogram method Annika Lohstroh 17 BB 03 A.Lohstroh@surrey.ac.uk.

Outline

• Plotting data

• Taking the data

•Choosing the graph scales

• Formatting the graph

• Parallelogram method

• Drawing the best fit line

• Drawing the parallelogram

• Determining the gradient and

intercept

• Using your result

• Adding error bars to your graph

• Quoting the fit results

Page 3: Plotting data & Regression using the parallelogram method Annika Lohstroh 17 BB 03 A.Lohstroh@surrey.ac.uk.

Taking data – table & graph

Power supplyTX Ltd

Model 832

Multimeter Fluke 73Series II

20 V scale

MultimeterFluke 73Series II

1 mA scale

Sample

V [V]

0.01.02.03.04.05.0

I [mA]

64.887365.150265.0376………

Uncertainty in the instrument ?

Page 4: Plotting data & Regression using the parallelogram method Annika Lohstroh 17 BB 03 A.Lohstroh@surrey.ac.uk.

Plotting the graph

-2 0 2 4 6 8 10 12 14 16 18 20 22 24 26 28 300

20

40

60

80

100

120

Axis label & units

Axi

s la

bel &

uni

tsTitle

Scale not ideal

Page 5: Plotting data & Regression using the parallelogram method Annika Lohstroh 17 BB 03 A.Lohstroh@surrey.ac.uk.

Choosing the scale & labeling

Fig 1: Current vs Voltage

Voltage [V]

-2 0 2 4 6 8 10 12 14 16 18 20 22

Cu

rren

t [m

A]

64.8

65.0

65.2

65.4

65.6

65.8

66.0

66.2

•Plot as you go along•Your graph does not have to show the coordinate (0/0)

Page 6: Plotting data & Regression using the parallelogram method Annika Lohstroh 17 BB 03 A.Lohstroh@surrey.ac.uk.

Drawing the best fit line

Fig 1: Current vs Voltage

Voltage [V]

-2 0 2 4 6 8 10 12 14 16 18 20 22

Cu

rren

t [m

A]

64.8

65.0

65.2

65.4

65.6

65.8

66.0

66.2

Page 7: Plotting data & Regression using the parallelogram method Annika Lohstroh 17 BB 03 A.Lohstroh@surrey.ac.uk.

Drawing the parallelogram

Fig 1: Current vs Voltage

Voltage [V]

-2 0 2 4 6 8 10 12 14 16 18 20 22

Cu

rren

t [m

A]

64.8

65.0

65.2

65.4

65.6

65.8

66.0

66.2

The best fit line is in the centre of the two parallel lines above and below it

2/3 of the data points should lie within the parallelogramm

Page 8: Plotting data & Regression using the parallelogram method Annika Lohstroh 17 BB 03 A.Lohstroh@surrey.ac.uk.

Determining the gradient

• Section1

• Subsection

Fig 1: Current vs Voltage

Voltage [V]

-2 0 2 4 6 8 10 12 14 16 18 20 22

Cu

rren

t [m

A]

64.8

65.0

65.2

65.4

65.6

65.8

66.0

66.2

Use a large triangle to determine the gradient mbest

V24

mA .92 64mA 65.80 bestm

mS 0.0367

Page 9: Plotting data & Regression using the parallelogram method Annika Lohstroh 17 BB 03 A.Lohstroh@surrey.ac.uk.

Determining the gradient

• Section1

• Subsection

Fig 1: Current vs Voltage

Voltage [V]

-2 0 2 4 6 8 10 12 14 16 18 20 22

Cu

rren

t [m

A]

64.8

65.0

65.2

65.4

65.6

65.8

66.0

66.2

Draw the diagonals in the parallelogram and determine their gradients

mS 0.0238minm

mS 0.0483maxm

mS 0.0367bestm

Page 10: Plotting data & Regression using the parallelogram method Annika Lohstroh 17 BB 03 A.Lohstroh@surrey.ac.uk.

Determining the intercept

• Section1

• Subsection

Fig 1: Current vs Voltage

Voltage [V]

-2 0 2 4 6 8 10 12 14 16 18 20 22

Cu

rren

t [m

A]

64.8

65.0

65.2

65.4

65.6

65.8

66.0

66.2

Determine the intercept c for all 3 lines

Cmin = 64.78 mA

Cbest = 64.92 mA

Cmax = 65.08 mA

Page 11: Plotting data & Regression using the parallelogram method Annika Lohstroh 17 BB 03 A.Lohstroh@surrey.ac.uk.

Using those results…

Quoting your results:

Never use more than 2 digits of precision for the uncertainty – round the values accordingly:

mS 0.005321

mS 0.0238 - mS 0.0483

n

minmax mm

m

Calculating the uncertainties, where n is the #data points:

mA 0.06521

mA 64.78 -mA 65.08

n

minmax ccc

mS 0.005)0.037 (mmm best

mA 0.07)64.92 (ccc best

Page 12: Plotting data & Regression using the parallelogram method Annika Lohstroh 17 BB 03 A.Lohstroh@surrey.ac.uk.

Adding error bars…

Fig 1: Current vs Voltage

Voltage [V]

-2 0 2 4 6 8 10 12 14 16 18 20 22

Cu

rren

t [m

A]

64.8

65.0

65.2

65.4

65.6

65.8

66.0

66.2

The error bars have the height of the parallelogram.

mS 0.005)0.037 (m

mA 0.07)64.92 (c

Page 13: Plotting data & Regression using the parallelogram method Annika Lohstroh 17 BB 03 A.Lohstroh@surrey.ac.uk.

Fig 1: Current vs Voltage

Voltage [V]

-2 0 2 4 6 8 10 12 14 16 18 20 22

Cu

rren

t [m

A]

64.8

65.0

65.2

65.4

65.6

65.8

66.0

66.2

Adding error bars…

In a formal report you may choose not to show the helping lines(parallelogram, grid lines…)

mS 0.005)0.037 (m

mA 0.07)64.92 (c

Page 14: Plotting data & Regression using the parallelogram method Annika Lohstroh 17 BB 03 A.Lohstroh@surrey.ac.uk.

Questions ?