Introduction to Informatics

Similar documents
Introduction to Informatics

Introduction to Informatics

Introduction to Informatics

Chapter Learning Objectives. Regression Analysis. Correlation. Simple Linear Regression. Chapter 12. Simple Linear Regression

Business Statistics. Chapter 14 Introduction to Linear Regression and Correlation Analysis QMIS 220. Dr. Mohammad Zainal

Correlation Analysis

Introduction to Informatics

Intro to Linear Regression

Basic Business Statistics 6 th Edition

Ch 13 & 14 - Regression Analysis

Intro to Linear Regression

Simple Linear Regression

Statistics for Managers using Microsoft Excel 6 th Edition

LI EAR REGRESSIO A D CORRELATIO

Can you tell the relationship between students SAT scores and their college grades?

Correlation and Linear Regression

Regression Models. Chapter 4

Chapter 13 Student Lecture Notes Department of Quantitative Methods & Information Systems. Business Statistics

Business Statistics. Lecture 9: Simple Regression

Chapter 7 Student Lecture Notes 7-1

Chapter 3 Multiple Regression Complete Example

Chapter 4: Regression Models

Chapter 14 Student Lecture Notes 14-1

Examining Relationships. Chapter 3

Chapter 4. Regression Models. Learning Objectives

Draft Proof - Do not copy, post, or distribute. Chapter Learning Objectives REGRESSION AND CORRELATION THE SCATTER DIAGRAM

Correlation. A statistics method to measure the relationship between two variables. Three characteristics

Chapter 12 - Part I: Correlation Analysis

Steps to take to do the descriptive part of regression analysis:

Chapter 14 Student Lecture Notes Department of Quantitative Methods & Information Systems. Business Statistics. Chapter 14 Multiple Regression

Lecture 14. Analysis of Variance * Correlation and Regression. The McGraw-Hill Companies, Inc., 2000

Lecture 14. Outline. Outline. Analysis of Variance * Correlation and Regression Analysis of Variance (ANOVA)

Analysis of Bivariate Data

Econ 3790: Statistics Business and Economics. Instructor: Yogesh Uppal

Chapter 14 Simple Linear Regression (A)

STAT 350 Final (new Material) Review Problems Key Spring 2016

11 Correlation and Regression

Announcements: You can turn in homework until 6pm, slot on wall across from 2202 Bren. Make sure you use the correct slot! (Stats 8, closest to wall)

How can we explore the association between two quantitative variables?

Inferences for Regression

Linear Regression. Linear Regression. Linear Regression. Did You Mean Association Or Correlation?

Business Statistics. Lecture 10: Correlation and Linear Regression

Unit 6 - Simple linear regression

Basic Business Statistics, 10/e

20. Ignore the common effect question (the first one). Makes little sense in the context of this question.

Multiple Regression. Inference for Multiple Regression and A Case Study. IPS Chapters 11.1 and W.H. Freeman and Company

Chapter 16. Simple Linear Regression and dcorrelation

BNAD 276 Lecture 10 Simple Linear Regression Model

Review 6. n 1 = 85 n 2 = 75 x 1 = x 2 = s 1 = 38.7 s 2 = 39.2

Regression Analysis II

9. Linear Regression and Correlation

Lecture 10 Multiple Linear Regression

Biostatistics and Design of Experiments Prof. Mukesh Doble Department of Biotechnology Indian Institute of Technology, Madras

Keller: Stats for Mgmt & Econ, 7th Ed July 17, 2006

Regression Models. Chapter 4. Introduction. Introduction. Introduction

Chapter 7 Linear Regression

Estimating σ 2. We can do simple prediction of Y and estimation of the mean of Y at any value of X.

(ii) Scan your answer sheets INTO ONE FILE only, and submit it in the drop-box.

Mathematics for Economics MA course

4.1 Least Squares Prediction 4.2 Measuring Goodness-of-Fit. 4.3 Modeling Issues. 4.4 Log-Linear Models

Introduction to Statistics for the Social Sciences Review for Exam 4 Homework Assignment 27

Stat 101: Lecture 6. Summer 2006

Module 1 Linear Regression

determine whether or not this relationship is.

HOMEWORK (due Wed, Jan 23): Chapter 3: #42, 48, 74

Chapter 16. Simple Linear Regression and Correlation

WISE Regression/Correlation Interactive Lab. Introduction to the WISE Correlation/Regression Applet

Chapter 8 - Forecasting

EC4051 Project and Introductory Econometrics

Supplemental Instruction

Basics of Experimental Design. Review of Statistics. Basic Study. Experimental Design. When an Experiment is Not Possible. Studying Relations

Chapter 10. Correlation and Regression. McGraw-Hill, Bluman, 7th ed., Chapter 10 1

Applied Regression Modeling: A Business Approach Chapter 3: Multiple Linear Regression Sections

Applied Regression Modeling: A Business Approach Chapter 2: Simple Linear Regression Sections

Mathematical Notation Math Introduction to Applied Statistics

CHEMISTRY 3A INTRODUCTION TO CHEMISTRY SPRING

STA121: Applied Regression Analysis

Lecture Slides. Elementary Statistics Tenth Edition. by Mario F. Triola. and the Triola Statistics Series. Slide 1

ENVE3502. Environmental Monitoring, Measurements & Data Analysis. Points from previous lecture

Regression Models REVISED TEACHING SUGGESTIONS ALTERNATIVE EXAMPLES

Simple Linear Regression: One Quantitative IV

CHAPTER 5 LINEAR REGRESSION AND CORRELATION

APPENDIX 1 BASIC STATISTICS. Summarizing Data

MODELING. Simple Linear Regression. Want More Stats??? Crickets and Temperature. Crickets and Temperature 4/16/2015. Linear Model

Lecture 16 - Correlation and Regression

Table of z values and probabilities for the standard normal distribution. z is the first column plus the top row. Each cell shows P(X z).

ECON3150/4150 Spring 2015

What is a Hypothesis?

Mathematical Notation Math Introduction to Applied Statistics

Lecture 9 SLR in Matrix Form

Math 200 A and B: Linear Algebra Spring Term 2007 Course Description

Two-Sample Inference for Proportions and Inference for Linear Regression

Review of Statistics 101

Chapter 9. Correlation and Regression

Chapter 14. Statistical versus Deterministic Relationships. Distance versus Speed. Describing Relationships: Scatterplots and Correlation

Business Statistics. Lecture 10: Course Review

Lecture 8 CORRELATION AND LINEAR REGRESSION

Test 3 Practice Test A. NOTE: Ignore Q10 (not covered)

Multiple Linear Regression

Unit 6 - Introduction to linear regression

Transcription:

Introduction to Informatics Two statisticians were flying from L.A. to New York. About an hour into the flight, the pilot announced, "Unfortunately, we have lost an engine, but don't worry: There are three engines left. However, instead of five hours, it will take seven hours to get to New York. Lecture 18: Inductive Model Building A little later, he told the passengers that a second engine had failed. "But we still have two engines left. We're still fine, except now it will take ten hours to get to New York." Regression Somewhat later, the pilot again came on the intercom and announced that a third engine had died. "But never fear, because this plane can fly on a single engine. Of course, it will now take 18 hours to get to New York." At this point, one statistician turned to another and said, "Gee, I hope we don't lose that last engine, or we'll be up here forever!"

Readings until now Lecture notes Posted online http://informatics.indiana.edu/rocha/i101 The Nature of Information Technology Modeling the World @ infoport http://infoport.blogspot.com From course package Von Baeyer, H.C. [2004]. Information: The New Language of Science. Harvard University Press. Chapters 1, 4 (pages 1-12) From Andy Clark s book "Natural-Born Cyborgs Chapters 2 and 6 (pages 19-67) From Irv Englander s book The Architecture of Computer Hardware and Systems Software Chapter 3: Data Formats (pp. 70-86) Klir, J.G., U. St. Clair, and B.Yuan [1997]. Fuzzy Set Theory: foundations and Applications. Prentice Hall Chapter 2: Classical Logic (pp. 87-97) Chapter 3: Classical Set Theory (pp. 98-103) Norman, G.R. and D.L. Streinrt [2000]. Biostatistics: The Bare Essentials. Chapters 1-3 (pages 105-129) OPTIONAL: Chapter 4 (pages 131-136) Chapter 13 (pages 147-155)

Labs Past Assignment Situation Lab 1: Blogs Closed (Friday, January 19): Grades Posted Lab 2: Basic HTML Closed (Wednesday, January 31): Grades Posted Lab 3: Advanced HTML: Cascading Style Sheets Closed (Friday, February 2): Grades Posted Lab 4: More HTML and CSS Closed (Friday, February 9): Grades Posted Lab 5: Introduction to Operating Systems: Unix Closed (Friday, February 16): Grades Posted Lab 6: More Unix and FTP Closed (Friday, February 23): Grades Posted Lab 7: Logic Gates Closed (Friday, March 9): Being Graded Next: Lab 8 Intro to Statistical Analysis using Excel March 22 & 23, Due Friday, March 30 Assignments Individual First installment Closed: February 9: Grades Posted Second Installment Past: March 2, Being Grades Posted Third installment Presented on March 8 th, Due on March 30 th Group First Installment Past: March 9 th, Being graded Second Installment March 29; Due Friday, April 6

Individual Assignment Part III Q1 Q3 Q2 Q4 Step by step analysis of dying squares 3 rd Installment Presented: March 8 th Due: March 30th 4 th Installment Presented: April 5 th Due: April 20th Use descriptive statistics To uncover rules inductively E.g. the behavior of evens and odds, individual numbers, or ranges of cycles, etc.

Relations in the World Is there a relationship between two variables? Years of schooling and level of income High-school and college GPA Inflation rate and prime lending rate What is the relationship? Regression analysis

y Linear Relationship Example y intercept A plumber charges $20 for driving to your house, plus $40 for each hour of work at your home Let y = total charge x = number of hours of work at your house The relationship between y and x is y=20 + 40x Slope x

General Linear Relationship y = b + b x 0 1 y b 1 b 1 b 0 1 2 x

Direct vs. Inverse Relationship Direct Relationship Inverse Relationship Sales Positive Slope Advertising Pollution Emissions Negative Slope Anti-Pollution Expenditures

Parameter Estimation Example Student Exam Score G.P.A. A 74 2.6 B 69 2.2 C 85 3.4 D 63 2.3 E 82 3.1 F 60 2.1 G 79 3.2 H 91 3.8 Suppose that your I101 instructor wishes to determine whether any relationship exists between a student s score on an entrance examination and that student s cumulative GPA. A sample of eight students is taken.

Scatter Diagram GPA vs. Exam Score

Scatter Around Linear Relationship More Accurate Estimator of X, Y Relationship Less Accurate Estimator of X, Y Relationship Larger Error More uncertain about inference

Possible Relationships Between X and Y in Scatter Diagrams Y (a) Direct linear Y (b) Inverse linear X X Y (c) Inverse linear with more scattering Y (d) No relationship X X

Comparing data to linear model Accounts differences between actual values (y) and estimated or $ predicted values (ŷ) Error or residual for a given value e = y yˆ

Errors or Residuals Graphically Y e = y yˆ Estimated (Y) $ e 2 e 4 Actual (Y) e 1 e3 $ Y = a + bx X

Least Squares Criterion e = y yˆ The line that best fits the data is the one for which the sum of the squares of the errors (SSE) is smallest SSE 2 ( ˆ) 2 = e = y y

Method for Regression Line of best fit or regression based on Least Squares Criterion yˆ = b + b x 0 1 b 1 xy = 2 2 x nxy nx b = y b x 0 1

Parameter Estimation Example Student Exam (x) GPA (y) A 74 2.6 B 69 2.2 C 85 3.4 D 63 2.3 E 82 3.1 F 60 2.1 G 79 3.2 H 91 3.8 xy 192.4 151.8 289 144.9 254.2 126 252.8 345.8 x 2 5476 4761 7225 3969 6724 3600 6241 8281 b xy nxy 1 = 2 2 x nx b0 = y b1 x n = 8 x=75.375 y=2.8375 -------- 1756.9 ------- 46277 b 1756.9 8 75.375 2.8375 = 2 46277 8 75.375 1 = 0.05556 b0 = 2.8375 0.05556 75.375 = -1.351

Example Linear Fit b = -1.351 } 10 b1 = 0.56 0 yˆ b + b x 0 1 = b = 1 0.05556

How good is the Linear Fit? GPA Portion of deviation from mean explained or accounted for by the regression line y=2.8375 y yˆ y y Portion of deviation from mean unexplained by the regression line Total Sum of Squares TSS ( y y) = 2 SSE ( y ŷ) = TSS = SSE + SSR Sum of Squares for error 2 ( y ŷ) = Exam Score Sum of Squares for regression SSR 2

Coefficient of determination Degree of linear relationship r 2 To make a judgment about whether a linear relationship really exists between x and y. The proportion of the variability in y values that is accounted for or explained by a linear relationship with x. r ( y y) ( y y) SSR = = TSS 2 2 ˆ 2

Example: Coefficient of determination GPA R 2 = 0.93 Exam Score 93% of the GPA variability is is explained by the Exam Score (with a linear relationship)

Coefficient of Correlation Degree of linear relationship r 2 is easier to interpret Allows us to infer how good a linear model is The quality of our inferences: our degree of uncertainty r r = ( x x)( y y) ( n 1) s s x y = n n( xy) ( x)( y) ( 2 ) ( ) 2 ( 2 x x. n y ) ( y) 2

however, sometimes we cannot fit data to a straight line! 0.8 0.7 0.6 0.5 y 0.4 0.3 0.2 0.1 0 30 35 40 45 50 55 60 x Why cannot we model some processes with lines? Large measurement errors Presence of noise The process is random

Challenge: correlation does not prove causation! Cheating of School Teachers and Sumo Wrestlers The incentives of real estate agents Why do drug dealers still live with their moms? Parenthood, names, and social status? Row vs. Wade and Low Crime Rates

Global Warming Erik Mamajek: http://cfa-www.harvard.edu/~emamajek/ http://www.grida.no/climate/vital

Global Warming Erik Mamajek: http://cfa-www.harvard.edu/~emamajek/

Frequency Analysis and Cryptography Cryptography Derived from the Greek word Kryptos: hidden See Simon Singh s The Code Book CD- ROM The Vigenère Code

Topics Next Class! More Inductive Reasoning Modeling Probability and Uncertainty Readings for Next week @ infoport From course package Norman, G.R. and D.L. Streinrt [2000]. Biostatistics: The Bare Essentials. Chapters 1-3 (pages 109-134) OPTIONAL: Chapter 4 (pages 135-140) Chapter 13 (pages 151-159) Chapter 5 (pages 141-144) Lab 8 Intro to Statistical Analysis using Excel