Example – Black Cherry Trees. The data frame trees is made available in R with >data(trees) and contains the well-known black cherry trees data. These.

Slides:



Advertisements
Similar presentations
Regresi Linear Sederhana Pertemuan 01 Matakuliah: I0174 – Analisis Regresi Tahun: Ganjil 2007/2008.
Advertisements

Gordon Stringer, UCCS1 Regression Analysis Gordon Stringer.
7/2/ Lecture 51 STATS 330: Lecture 5. 7/2/ Lecture 52 Tutorials  These will cover computing details  Held in basement floor tutorial lab,
Least Squares Regression
Linear Regression Analysis
Calculus The Computational Method (mathematics) The Mineral growth in a hollow organ of the body, e.g. kidney stone (medical term)
Non-Linear Regression. The data frame trees is made available in R with >data(trees) These record the girth in inches, height in feet and volume of timber.
Further Topics in Regression Analysis Objectives: By the end of this section, I will be able to… 1) Explain prediction error, calculate SSE, and.
How much wood is in that tree? How much is that tree worth?
Section 5.2: Linear Regression: Fitting a Line to Bivariate Data.
Statistical Methods Statistical Methods Descriptive Inferential
Regression. Population Covariance and Correlation.
Volume of CYLINDERS V olume = Πr 2 h Volume is in: UNITS Gallon = 231 in 3 1 cubic foot of water equals gallons.
$200 $300 $400 $500 $100 $200 $300 $400 $500 $100 $200 $300 $400 $500 $100 $200 $300 $400 $500 $100 $200 $300 $400 $500 $100 Radius & Diameter Volume.
Chapter 14 Inference for Regression AP Statistics 14.1 – Inference about the Model 14.2 – Predictions and Conditions.
Regression Regression relationship = trend + scatter
Dimensional Analysis Part 2 Chapter 2 Section 2 Units of Measurement.
Simple Linear Regression. The term linear regression implies that  Y|x is linearly related to x by the population regression equation  Y|x =  +  x.
CHAPTER 5 Regression BPS - 5TH ED.CHAPTER 5 1. PREDICTION VIA REGRESSION LINE NUMBER OF NEW BIRDS AND PERCENT RETURNING BPS - 5TH ED.CHAPTER 5 2.
AP STATISTICS LESSON 14 – 1 ( DAY 1 ) INFERENCE ABOUT THE MODEL.
Least Squares Regression.   If we have two variables X and Y, we often would like to model the relation as a line  Draw a line through the scatter.
Introduction to Statistical Modelling Example: Body and heart weights of cats. The R data frame cats, and the variables therein, are made available by.
Trees Example More than one variable. The residual plot suggests that the linear model is satisfactory. The R squared value seems quite low though,
Residuals Recall that the vertical distances from the points to the least-squares regression line are as small as possible.  Because those vertical distances.
^ y = a + bx Stats Chapter 5 - Least Squares Regression
Non-Linear Regression. The data frame trees is made available in R with >data(trees) These record the girth in inches, height in feet and volume of timber.
© 2001 Prentice-Hall, Inc.Chap 13-1 BA 201 Lecture 18 Introduction to Simple Linear Regression (Data)Data.
VOLUME OF SOLID FIGURES BY: How To Find The Volume First find the area ( A ). A =  r square Then multiply the area ( A ) times the height ( H ). V =
Example x y We wish to check for a non zero correlation.
Algebra 2 cc Section 2.1 Solve quadratic equations by square roots A quadratic equation in standard form ax 2 + bx + c = 0 ax 2 is the quadratic term bx.
Copyright © 2013, 2010 and 2007 Pearson Education, Inc. Chapter Describing the Relation between Two Variables 4.
Preparation for Calculus P. Fitting Models to Data P.4.
Regression Several Explanatory Variables. Example: Scottish hill races data. These data are made available in R as data(hills, package=MASS) They give.
Bell Ringer A random sample of records of sales of homes from Feb. 15 to Apr. 30, 1993, from the files maintained by the Albuquerque Board of Realtors.
Statistics 350 Lecture 2. Today Last Day: Section Today: Section 1.6 Homework #1: Chapter 1 Problems (page 33-38): 2, 5, 6, 7, 22, 26, 33, 34,
Fixing problems with the model Transforming the data so that the simple linear regression model is okay for the transformed data.
PURPOSE OF MEASUREMENT IN FOREST 1.VALUATION: The more intensive the utilization the nearer will the out-turn approaches the total volume of the tree.
Lecture 9 Sections 3.3 Objectives:
Inference for Regression
Linear Regression Modelling
Modeling in R Sanna Härkönen.
CHAPTER 3 Describing Relationships
Good morning Please take out your homework and a correcting pen.
Chapter 8 Linear normal models.
Statistics 101 Chapter 3 Section 3.
CHAPTER 3 Describing Relationships
LSRL Least Squares Regression Line
The Least-Squares Regression Line
Simple Linear Regression - Introduction
Regression Analysis PhD Course.
How many Tennis Balls will fit in Mr. Pittman’s Room?
Regression Models - Introduction
No notecard for this quiz!!
^ y = a + bx Stats Chapter 5 - Least Squares Regression
The Weather Turbulence
3 4 Chapter Describing the Relation between Two Variables
Simple Linear Regression
Least-Squares Regression
The Least-Squares Line Introduction
So far --> looked at the effect of a discrete variable on a continuous variable t-test, ANOVA, 2-way ANOVA.
CHAPTER 12 More About Regression
Regression All about going back (regressing) from the points to the function from which they came. We are looking at linear regression.
Correlation and Regression
Investigating associations between two variables
Least-Squares Regression
3 4 Chapter Describing the Relation between Two Variables
Chapter 14 Inference for Regression
12.4 Volume of Prisms and Cylinders
Regression Models - Introduction
Presentation transcript:

Example – Black Cherry Trees

The data frame trees is made available in R with >data(trees) and contains the well-known black cherry trees data. These record the girth in inches, height in feet and volume of timber in cubic feet of each of a sample of 31 felled black cherry trees in Allegheny National Forest, Pennsylvania. Note that girth is the diameter of the tree (in inches) measured at 4 ft 6 in above the ground.

We treat volume as the (continuous) response variable y and seek a reasonable model describing its distribution conditional on the explanatory variables girth and height. This might be a first step to prediction of volume based on further observations of the explanatory variables. Consider the R command >pairs(trees, main = "trees data")

The relationship between girth and volume is especially noticeable. We therefore consider first a linear model Y i =a + bx i +ε i where Y is volume and x is girth

The R command for fitting linear models by least squares is lm. We have > trees.model.1 = lm(Volume~Girth, data=trees) > summary(trees.model.1)

The fitted model is volume = − × girth + residual Now try: > plot(Volume~Girth, data=trees) > abline(coef(trees.model.1)) > plot(resid(trees.model.1)~Girth, data=trees, ylab="residuals from Model 1")