MTH16_Lec-07a_sec_7-4.pptx 1 Bruce Mayer, PE Mathematics-16: Applied Calculus II Bruce Mayer, PE Licensed Electrical & Mechanical Engineer

Slides:



Advertisements
Similar presentations
E ENGR-25_Chp2_AirCraft_Separation_.pptx 1 Bruce Mayer, PE Engineering-25: Computational Methods Bruce Mayer, PE Licensed Electrical & Mechanical Engineer.
Advertisements

ENGR-25_Prob_9_3_Solution.ppt 1 Bruce Mayer, PE Engineering-25: Computational Methods Bruce Mayer, PE Licensed Electrical & Mechanical Engineer
ENGR-25_Lec-29_MS_Excel-2.ppt 1 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Bruce Mayer, PE Licensed Electrical.
MTH55_Lec-53_Fa08_sec_8-4_Eqns_Quadratic_in_Form.ppt 1 Bruce Mayer, PE Chabot College Mathematics Bruce Mayer, PE Licensed Electrical.
Tutorial: Flat & Belt Friction P8.133
ENGR-25_Chp6_Tutorial_PolyFit_J_S_rsq.pptx 1 Bruce Mayer, PE Engineering-25: Computational Methods Bruce Mayer, PE Licensed Electrical & Mechanical Engineer.
ENGR36_Tutorial_Triangle-Prism_Mass_Moment_of_Inertia.pptx 1 Bruce Mayer, PE Engineering-36: Engineering Mechanics - Statics Bruce Mayer, PE Licensed Electrical.
MTH15_Lec-03_sec_1-3_Lines_LinearFcns_.pptx 1 Bruce Mayer, PE Chabot College Mathematics Bruce Mayer, PE Licensed Electrical &
ENGR-36_Lab-06_Fa08_Lec-Notes.ppt 1 Bruce Mayer, PE Engineering-36: Vector Mechanics - Statics Bruce Mayer, PE Licensed Electrical & Mechanical Engineer.
MTH55_Lec-63_sec_9-4b_Log_Change_Base.ppt 1 Bruce Mayer, PE Chabot College Mathematics Bruce Mayer, PE Licensed Electrical & Mechanical.
MTH55_Lec-13_sec_3-3a_3Var_Lin_Sys.ppt 1 Bruce Mayer, PE Chabot College Mathematics Bruce Mayer, PE Licensed Electrical & Mechanical.
MTH55_Lec-07_sec_2-3a_Lines_by_Intercepts.ppt 1 Bruce Mayer, PE Chabot College Mathematics Bruce Mayer, PE Licensed Electrical.
MTH16_Lec-14_sec_10-1_Infinite_Series.pptx 1 Bruce Mayer, PE Chabot College Mathematics Bruce Mayer, PE Licensed Electrical &
ENGR-25_MATLAB_OverView-1.ppt 1 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Bruce Mayer, PE Licensed Electrical.
ENGR-25_HW-01_Solution.ppt 1 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Bruce Mayer, PE Licensed Electrical.
MTH16_Lec-01_sec_6-1_Integration_by_Parts.pptx 1 Bruce Mayer, PE Chabot College Mathematics Bruce Mayer, PE Licensed Electrical.
MTH55_Lec-09_sec_2-4_Pt-Slp_Line-Eqn.ppt 1 Bruce Mayer, PE Chabot College Mathematics Bruce Mayer, PE Licensed Electrical & Mechanical.
ENGR-36_Lec-22_Wedge-n-Belt_Friction.pptx 1 Bruce Mayer, PE Engineering-36: Engineering Mechanics - Statics Bruce Mayer, PE Licensed.
MTH55_Lec-10_sec_3-1_2Var_LinSys_ppt 1 Bruce Mayer, PE Chabot College Mathematics Bruce Mayer, PE Licensed Electrical & Mechanical.
MTH55_Lec-62_sec_9-4a_Log_Rules.ppt 1 Bruce Mayer, PE Chabot College Mathematics Bruce Mayer, PE Licensed Electrical & Mechanical.
MTH16_Lec-09_sec_7-6_Double_Integrals.pptx 1 Bruce Mayer, PE Chabot College Mathematics Bruce Mayer, PE Licensed Electrical &
ENGR-25_MATLAB_OverView-1.ppt 1 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Bruce Mayer, PE Licensed Electrical.
MTH55_Lec-20_sec_5-1_Intro_to_PolyNom_Fcns.ppt 1 Bruce Mayer, PE Chabot College Mathematics Bruce Mayer, PE Licensed Electrical.
ENGR-25_EXCEL_Integration_Tutorial-Example.pptx 1 Bruce Mayer, PE ENGR/MTH/PHYS25: Computational Methods Bruce Mayer, PE Registered.
MTH55_Lec-65_Fa08_sec_9-5b_Logarithmic_Eqns.ppt 1 Bruce Mayer, PE Chabot College Mathematics Bruce Mayer, PE Licensed Electrical.
ENGR-25_Linear_Regression_Tutorial.ppt 1 Bruce Mayer, PE Engineering-25: Computational Methods Bruce Mayer, PE Licensed Electrical & Mechanical Engineer.
ENGR-36_Lab-24_Fa07_Lec-Notes.ppt 1 Bruce Mayer, PE Engineering-36: Engineering Mechanics - Statics Bruce Mayer, PE Licensed Electrical & Mechanical Engineer.
ENGR-25_Plot_Model-4.ppt 1 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Bruce Mayer, PE Registered Electrical.
ENGR-25_Prob_6-12_Solution.ppt 1 Bruce Mayer, PE Engineering-25: Computational Methods Bruce Mayer, PE Licensed Electrical & Mechanical Engineer
ENGR-25_Prob_10-25_Catenary_Solution.ppt.ppt 1 Bruce Mayer, PE ENGR/MTH/PHYS25: Computational Methods Bruce Mayer, PE Registered.
MTH55_Lec-17_sec_4-3a_Absolute_Value.ppt 1 Bruce Mayer, PE Chabot College Mathematics Bruce Mayer, PE Licensed Electrical & Mechanical.
ENGR-25_Prob_6-12_Solution.ppt 1 Bruce Mayer, PE Engineering-25: Computational Methods Bruce Mayer, PE Licensed Electrical & Mechanical Engineer
ENGR-10_HW_Engr_Fields_Disciplines_Instructions.pptx 1 Bruce Mayer, PE Engineering-10: Intro to Engineering Bruce Mayer, PE Licensed.
MTH55_Lec-45_7-6a_Radical_Equations.ppt 1 Bruce Mayer, PE Chabot College Mathematics Bruce Mayer, PE Licensed Electrical & Mechanical.
ENGR-43_Prob_5-80_Dual-Src_Complex-Pwr_Solution_.pptx 1 Bruce Mayer, PE Engineering 43: Electrical Circuits & Devices Bruce Mayer,
MTH16_MTE1_Review.pptx 1 Bruce Mayer, PE Mathematics 16: Applied Calculus-II Bruce Mayer, PE Licensed Electrical & Mechanical.
ENGR-25_Lec-21_Integ_Diff.ppt 1 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Bruce Mayer, PE Licensed Electrical.
ENGR-25_Programming-1.ppt 1 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Bruce Mayer, PE Registered Electrical.
MTH55_Lec-17_sec_4-3a_Absolute_Value.ppt 1 Bruce Mayer, PE Chabot College Mathematics Bruce Mayer, PE Licensed Electrical & Mechanical.
E ENGR36_Tutorial_Areal_Moment_of_Inertia.pptx 1 Bruce Mayer, PE Engineering-36: Engineering Mechanics - Statics Bruce Mayer, PE Licensed Electrical &
ENGR-36_Prob_4_5_32_ACAD_Solution.ppt 1 Bruce Mayer, PE Engineering-36: Engineering Mechanics - Statics Bruce Mayer, PE Licensed.
ENGR36_H13_Tutorial_Catenary_Cables.pptx 1 Bruce Mayer, PE Engineering-36: Engineering Mechanics - Statics Bruce Mayer, PE Licensed Electrical & Mechanical.
ENGR-36_Lab-06_Fa07_Lec-Notes.ppt 1 Bruce Mayer, PE Engineering-36: Vector Mechanics - Statics Bruce Mayer, PE Licensed Electrical & Mechanical Engineer.
ENGR-25_HW-01_Solution.ppt 1 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Bruce Mayer, PE Licensed Electrical.
MTH16_MTE1_Review.pptx 1 Bruce Mayer, PE Mathematics 16: Applied Calculus-II Bruce Mayer, PE Licensed Electrical & Mechanical.
MTH15_Lec-17a_sec_3-5_Round_End_Fence_Enclosure.pptx 1 Bruce Mayer, PE MTH15: Applied Calculus I Bruce Mayer, PE Licensed Electrical.
© ENGR-43_Prob_14-32_OpAmp_OutPut_Current.pptx 1 Bruce Mayer, PE Engineering-43 Electrical Circuits & Devices Bruce Mayer, PE.
MTH16_MTE1_Review.pptx 1 Bruce Mayer, PE Mathematics 16: Applied Calculus-II Bruce Mayer, PE Licensed Electrical & Mechanical.
MTH16_Lec-14_sec_10-1_Infinite_Series.pptx 1 Bruce Mayer, PE Chabot College Mathematics Bruce Mayer, PE Licensed Electrical &
ENGR-25_HW-01_Solution.ppt 1 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Bruce Mayer, PE Licensed Electrical.
ENGR36_Flat_n_Belt_Friction_Balance_H13e_P8_133.pptx 1 Bruce Mayer, PE Engineering-36: Engineering Mechanics - Statics Bruce Mayer, PE Licensed Electrical.
ENGR-25_Linear_Regression_Tutorial.ppt 1 Bruce Mayer, PE Engineering-25: Computational Methods Bruce Mayer, PE Licensed Electrical & Mechanical Engineer.
Licensed Electrical & Mechanical Engineer
§5.6 Factoring Strategies
Licensed Electrical & Mechanical Engineer
Licensed Electrical & Mechanical Engineer
Linear RegressionTutorial
Chp4 Tutorial: Prob 4.25 Solution
Catenary Tutorial Part-2
Licensed Electrical & Mechanical Engineer
Licensed Electrical & Mechanical Engineer
Licensed Electrical & Mechanical Engineer
Registered Electrical & Mechanical Engineer
Lab-23 Chp10 Beam VM Diagrams By Calculus
§5.6 Factoring Strategies
Chp3 Nodal Analysis & MATLAB
Licensed Electrical & Mechanical Engineer
Chp4, Lab-03 Example Problems 4.5.[60,54]
Licensed Electrical & Mechanical Engineer
Prob 9-28 Solution Tutorial
Presentation transcript:

MTH16_Lec-07a_sec_7-4.pptx 1 Bruce Mayer, PE Mathematics-16: Applied Calculus II Bruce Mayer, PE Licensed Electrical & Mechanical Engineer Mathematics 16 Linear Regression Tutorial

MTH16_Lec-07a_sec_7-4.pptx 2 Bruce Mayer, PE Mathematics-16: Applied Calculus II A plotting Grid  Lets Make some SCATTER

MTH16_Lec-07a_sec_7-4.pptx 3 Bruce Mayer, PE Mathematics-16: Applied Calculus II

MTH16_Lec-07a_sec_7-4.pptx 4 Bruce Mayer, PE Mathematics-16: Applied Calculus II

MTH16_Lec-07a_sec_7-4.pptx 5 Bruce Mayer, PE Mathematics-16: Applied Calculus II

MTH16_Lec-07a_sec_7-4.pptx 6 Bruce Mayer, PE Mathematics-16: Applied Calculus II xy Example

MTH16_Lec-07a_sec_7-4.pptx 7 Bruce Mayer, PE Mathematics-16: Applied Calculus II Do On WhiteBoard xy Example

MTH16_Lec-07a_sec_7-4.pptx 8 Bruce Mayer, PE Mathematics-16: Applied Calculus II

MTH16_Lec-07a_sec_7-4.pptx 9 Bruce Mayer, PE Mathematics-16: Applied Calculus II

MTH16_Lec-07a_sec_7-4.pptx 10 Bruce Mayer, PE Mathematics-16: Applied Calculus II [eqn (7)]

MTH16_Lec-07a_sec_7-4.pptx 11 Bruce Mayer, PE Mathematics-16: Applied Calculus II Regression Example  Do Frogs Croak More on WARM Nites?  Go to Frog Pond Take Temperature Count Croaks Temperature (ºF)Croaks/Hr

MTH16_Lec-07a_sec_7-4.pptx 12 Bruce Mayer, PE Mathematics-16: Applied Calculus II The MATLAB code % B. Mayer 20Feb07 * MTH16 % Linear Regression Tutorial % E25_Lin_Regress_Tutorial_0703.m % clear % % Define Data Vectors for Croaking Frogs Tf = [69.4, 69.7, 71.6, 75.2, 76.3, 78.6, 80.6, 80.6, 82, 82.6, 83.3, 83.5, 84.3, 88.6, 93.3]; % T in °F CpH = [15.4, 14.7, 16, 15.5, 14.1, 15, 17.1, 16, 17.1, 17.2, 16.2, 17, 18.4, 20, 19.8]; % CPH is "Croaks per Hour" % % Plot CpH(T) plot(Tf, CpH,'*'), xlabel('T °F'), ylabel('CpH (Croaks/Hr)'),... Title('Frog Croaking vs Temperature'), grid % disp('Diplaying Scatter Plot - Hit any key to continue ') pause % % Calc Linear Regression Coefficient terms using Absolute Temps sumX = sum(Tf) sumY = sum(CpH) n = length(Tf) sumXY = sum(Tf.*CpH) sumXX = sum(Tf.*Tf) % % Calc optimum slope term m0 disp('Slope Parameter, m0') m0 = (sumX*sumY - n*sumXY)/(sumX^2 - n*sumXX) % % Calc optimum intercept term b0 disp('Intercept Parameter, b0') b0 = (sumY - m0*sumX)/n %

MTH16_Lec-07a_sec_7-4.pptx 13 Bruce Mayer, PE Mathematics-16: Applied Calculus II The MATLAB code % Plot Regression Line Tfmax = max(Tf); Tfmin = min(Tf); Tfplot = linspace(Tfmax, Tfmin); % Calc CpH projected response using Regression Constanstants CpHplot = m0*Tfplot + b0; plot(Tf, CpH,'*', Tfplot, CpHplot), xlabel('T °F'), ylabel('CpH (Croaks/Hr)'),... Title('Frog Croaking vs Temperature'), grid % disp('Diplaying °F Regression Plot - Hit any key to continue ') pause % % Calc Goodness of Fit % the Minimized J value, J0 J0 = sum((m0*Tf+b0-CpH).^2) % Calc Sum of Sqs about the Mean CpH_avg = mean(CpH) S = sum((CpH-CpH_avg).^2) % Calc r-sqd r_sqd = 1-J0/S; % disp('Coeff of Determination, r-sqd = ') disp(r_sqd)

MTH16_Lec-07a_sec_7-4.pptx 14 Bruce Mayer, PE Mathematics-16: Applied Calculus II The Regression Plot

MTH16_Lec-07a_sec_7-4.pptx 15 Bruce Mayer, PE Mathematics-16: Applied Calculus II The MATLAB Results Diplaying Scatter Plot - Hit any key to continue sumX = e+003 sumY = n = 15 sumXY = e+004 sumXX = e+004 Slope Parameter, m0 m0 = Intercept Parameter, b0 b0 = Diplaying °F Regression Plot - Hit any key to continue J0 = CpH_avg = S = Coeff of Determination, r-sqd =

MTH16_Lec-07a_sec_7-4.pptx 16 Bruce Mayer, PE Mathematics-16: Applied Calculus II By Excel  Use to Check m0, b0, and r 2 