Presentation is loading. Please wait.

Presentation is loading. Please wait.

ENGR-25_Lec-29_MS_Excel-2.ppt 1 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Bruce Mayer, PE Licensed Electrical.

Similar presentations


Presentation on theme: "ENGR-25_Lec-29_MS_Excel-2.ppt 1 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Bruce Mayer, PE Licensed Electrical."— Presentation transcript:

1 ENGR-25_Lec-29_MS_Excel-2.ppt 1 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Bruce Mayer, PE Licensed Electrical & Mechanical Engineer Engr/Math/Physics 25 MS Excel Tables/Plots

2 ENGR-25_Lec-29_MS_Excel-2.ppt 2 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods The 11 MS Excel Chart Types

3 ENGR-25_Lec-29_MS_Excel-2.ppt 3 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Graph Construction Demo TABLE I: Vapor Pressure Data Vapor pressures (mm Hg) of less than one atmosphere as a function of temperature. (All temperatures are in degrees Celsius) Chemical mmHg Sodium, Na oC 1,4-Dioxane C 4 H 8 O oC Acetone (CH3)2CO oC Butyric Acid, C 4 H 8 O oC Stannic Chloride, SnCl oC  Given Vapor Pressure Data  Construct a Scatter Chart to Find the Clapeyron Eqn Constants m & b for Stannic Chloride

4 ENGR-25_Lec-29_MS_Excel-2.ppt 4 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Chart Construction Result Demo_Excel_Table-n-Chart_Build_Fa06.xls

5 ENGR-25_Lec-29_MS_Excel-2.ppt 5 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods

6 ENGR-25_Lec-29_MS_Excel-2.ppt 6 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods All Done for Today Excel Plotting

7 ENGR-25_Lec-29_MS_Excel-2.ppt 7 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Bruce Mayer, PE Licensed Electrical & Mechanical Engineer Engr/Math/Physics 25 Appendix

8 ENGR-25_Lec-29_MS_Excel-2.ppt 8 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Chart Construction Demo (1)  Start Open File Demo_Excel_Table- n- Chart_Build_0511.xl s  Copy from Table from Slide-22 → Paste into Demo Sheet Need Vertical Data  Horizontal table starting in Col-H  Copy Table Cells and EDIT → PASTE SPECIAL → transpose

9 ENGR-25_Lec-29_MS_Excel-2.ppt 9 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Chart Construction Demo (2)  Result after Transpose Paste

10 ENGR-25_Lec-29_MS_Excel-2.ppt 10 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Chart Construction Demo (3)  Archive Data Make Scratch WorkSheet; Xfer horizontal Table to to this sheet  Edit Worksheet Adjust Headings Delete Cols other Than SnCl4 Move Remaining to Right

11 ENGR-25_Lec-29_MS_Excel-2.ppt 11 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Chart Construction Demo (4)  Place in cols A & B 1000/T; T in Kelvins Ln(Pv)  After Filling A & B  Formula for Col-B =LN(E8)

12 ENGR-25_Lec-29_MS_Excel-2.ppt 12 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Chart Construction Demo (5)  Now need to Sort the Data with the indep var (1000/T) in ASCENDING ORDER DATA → SORT

13 ENGR-25_Lec-29_MS_Excel-2.ppt 13 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Chart Construction Demo (6)  Highlight/Select Data to Plot  Invoke Chart Wizard

14 ENGR-25_Lec-29_MS_Excel-2.ppt 14 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Chart Construction Demo (7)  Continue with Chart Wizard

15 ENGR-25_Lec-29_MS_Excel-2.ppt 15 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Chart Construction Demo (8)  Add X-Grid Lines  Remove Legend  Insert As NEW Sheet Give Descriptive Name

16 ENGR-25_Lec-29_MS_Excel-2.ppt 16 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Chart Construction Demo (9)  Chart Wizard Result  Change X-axis Scale: Shorten Title Clear BackGround Lager, Sq Data Markers GridLine & Text Colors

17 ENGR-25_Lec-29_MS_Excel-2.ppt 17 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Chart Construction Demo (10)  Select Chart Area Then Right-Clik  Select X-axis, Ther Right-Clik

18 ENGR-25_Lec-29_MS_Excel-2.ppt 18 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Chart Construction Demo (11)  Select Grid Lines, Rt-Clik, Chg Colors  Select Data Series, Rt-Clik, Chg Marker

19 ENGR-25_Lec-29_MS_Excel-2.ppt 19 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Chart Construction Demo (12)  Position Labels at Page Edges → Stretch-Out Plot Area

20 ENGR-25_Lec-29_MS_Excel-2.ppt 20 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Chart Construction Demo (13)  Chart Fine-Tuning Result  Add TrendLine to find Clapeyron m &b Constants

21 ENGR-25_Lec-29_MS_Excel-2.ppt 21 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Chart Construction Demo (14)  Select Data Series, Rt-Clik, Add TrendLn  Select: Linear, Display Parameters

22 ENGR-25_Lec-29_MS_Excel-2.ppt 22 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Chart Construction Demo (15)  Fine Tune TrendLine Form & Display  Done with Plot; and have determined m & b by Trendline Note that the Fit is Excellent; R 2 = 99.92%

23 ENGR-25_Lec-29_MS_Excel-2.ppt 23 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Chart Construction Demo (16)  Add Fitted Data to table Copy & Paste from Chart Calc Using m & b Analysis of Fit Characteristics Calc Error =(G4-E4)/E4

24 ENGR-25_Lec-29_MS_Excel-2.ppt 24 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods  Put Fitted Data on Chart On Table: Select & Copy Data On chart: EDIT → PASTE SPECIAL → dialog Box above

25 ENGR-25_Lec-29_MS_Excel-2.ppt 25 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Chart Construction Demo (17)  Fine Tune Two-Variable Display Error Data Series  To Make Error Data More Visible Show using SECONDARY Axis at Right

26 ENGR-25_Lec-29_MS_Excel-2.ppt 26 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Chart Construction Demo (18)

27 ENGR-25_Lec-29_MS_Excel-2.ppt 27 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Chart Construction Demo (19)  Fine Tune Two-Axes Display

28 ENGR-25_Lec-29_MS_Excel-2.ppt 28 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Chart Construction Demo (20)

29 ENGR-25_Lec-29_MS_Excel-2.ppt 29 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Nice Chart

30 ENGR-25_Lec-29_MS_Excel-2.ppt 30 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Coefficient of Correlation  The coefficient of correlation is an indication of how well the linear relationship determined by the method of least squares fits the data set.  The equation for the coefficient of correlation is:

31 ENGR-25_Lec-29_MS_Excel-2.ppt 31 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Interpretation of R  If R is 0, the points are so scattered that the regression line does not help predict y for a given x.  If R is +1 (positive slope) or –1 (negative slope), the points actually lie on a straight line so almost perfect predictions of y for a given x can be made using the regression line.

32 ENGR-25_Lec-29_MS_Excel-2.ppt 32 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Goodness of Fit R ValueCorrelation 0.9 to 1.0Very high positive 0.7 to 0.9High positive 0.5 to 0.7Moderate positive 0.3 to 0.5Low positive -0.3 to 0.3Little, if any -0.5 to -0.3Low negative -0.7 to -0.5Moderate negative -0.9 to -0.7High negative -1.0 to -0.9Very high negative

33 ENGR-25_Lec-29_MS_Excel-2.ppt 33 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods


Download ppt "ENGR-25_Lec-29_MS_Excel-2.ppt 1 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Bruce Mayer, PE Licensed Electrical."

Similar presentations


Ads by Google