Regression in GRID FE423 - February 27, 2000 Labs zAnother reason for AML - re-sampling zresample big grid to little grid zdo lab on little grid zwork.

Slides:



Advertisements
Similar presentations
Lesson 10: Linear Regression and Correlation
Advertisements

Kin 304 Regression Linear Regression Least Sum of Squares
Applied Econometrics Second edition
Correlation and regression Dr. Ghada Abo-Zaid
Simple Linear Regression. Start by exploring the data Construct a scatterplot  Does a linear relationship between variables exist?  Is the relationship.
Introduction: The General Linear Model b b The General Linear Model is a phrase used to indicate a class of statistical models which include simple linear.
1 BINARY CHOICE MODELS: LOGIT ANALYSIS The linear probability model may make the nonsense predictions that an event will occur with probability greater.
A Short Introduction to Curve Fitting and Regression by Brad Morantz
Lecture 8 Relationships between Scale variables: Regression Analysis
1 Lecture 8 Regression: Relationships between continuous variables Slides available from Statistics & SPSS page of Social.
Yard. Doç. Dr. Tarkan Erdik Regression analysis - Week 12 1.
Binary Response Lecture 22 Lecture 22.
Correlation and Regression. Spearman's rank correlation An alternative to correlation that does not make so many assumptions Still measures the strength.
Copyright (c) Bani K. Mallick1 STAT 651 Lecture #18.
Class 5: Thurs., Sep. 23 Example of using regression to make predictions and understand the likely errors in the predictions: salaries of teachers and.
Lecture 19: Tues., Nov. 11th R-squared (8.6.1) Review
The Simple Regression Model
Stat 217 – Week 10. Outline Exam 2 Lab 7 Questions on Chi-square, ANOVA, Regression  HW 7  Lab 8 Notes for Thursday’s lab Notes for final exam Notes.
The Joy of GRID: Geomorphology and Hydrology in GIS Finn Krogstad UW Forest Engineering
Statistical Analysis SC504/HS927 Spring Term 2008 Session 7: Week 23: 7 th March 2008 Complex independent variables and regression diagnostics.
Quantitative Business Analysis for Decision Making Simple Linear Regression.
Analysis of Individual Variables Descriptive – –Measures of Central Tendency Mean – Average score of distribution (1 st moment) Median – Middle score (50.
Business Statistics - QBM117 Statistical inference for regression.
Statistical hypothesis testing – Inferential statistics II. Testing for associations.
Correlation and Linear Regression
Warm-up Ch.11 Inference for Linear Regression (Day 1) 1. The following is from a particular region’s mortality table. What is the probability that a 20-year-old.
1 FORECASTING Regression Analysis Aslı Sencer Graduate Program in Business Information Systems.
Faculty of Social Sciences Induction Block: Maths & Statistics Lecture 3 Precise & Approximate Relationships Between Variables Dr Gwilym Pryce.
© 1998, Geoff Kuenning Linear Regression Models What is a (good) model? Estimating model parameters Allocating variation Confidence intervals for regressions.
Ch4 Describing Relationships Between Variables. Pressure.
Week 6: Model selection Overview Questions from last week Model selection in multivariable analysis -bivariate significance -interaction and confounding.
Statistical Analysis Topic – Math skills requirements.
Correlation and Regression Used when we are interested in the relationship between two variables. NOT the differences between means or medians of different.
The Examination of Residuals. Examination of Residuals The fitting of models to data is done using an iterative approach. The first step is to fit a simple.
Ch4 Describing Relationships Between Variables. Section 4.1: Fitting a Line by Least Squares Often we want to fit a straight line to data. For example.
Week 5: Logistic regression analysis Overview Questions from last week What is logistic regression analysis? The mathematical model Interpreting the β.
Regression. Types of Linear Regression Model Ordinary Least Square Model (OLS) –Minimize the residuals about the regression linear –Most commonly used.
Stat 112: Notes 2 Today’s class: Section 3.3. –Full description of simple linear regression model. –Checking the assumptions of the simple linear regression.
Issues in Estimation Data Generating Process:
© Department of Statistics 2012 STATS 330 Lecture 20: Slide 1 Stats 330: Lecture 20.
Business Statistics: A Decision-Making Approach, 6e © 2005 Prentice-Hall, Inc. Chap 13-1 Introduction to Regression Analysis Regression analysis is used.
Example: Bioassay experiment Problem statement –Observations: At each level of dose, 5 animals are tested, and number of death are observed.
ECON 338/ENVR 305 CLICKER QUESTIONS Statistics – Question Set #8 (from Chapter 10)
Generalized Linear Models (GLMs) and Their Applications.
Chapter 14: Inference for Regression. A brief review of chapter 4... (Regression Analysis: Exploring Association BetweenVariables )  Bi-variate data.
Chapter 8: Simple Linear Regression Yang Zhenlin.
NON-LINEAR REGRESSION Introduction Section 0 Lecture 1 Slide 1 Lecture 6 Slide 1 INTRODUCTION TO Modern Physics PHYX 2710 Fall 2004 Intermediate 3870 Fall.
Predictive Models Lab RNR/Geog 420/520 Spring. Predictive Models zImportant to understand what we are attempting to predict yThese models predict location.
Logistic Regression Analysis Gerrit Rooks
Intro to Psychology Statistics Supplement. Descriptive Statistics: used to describe different aspects of numerical data; used only to describe the sample.
Logistic regression (when you have a binary response variable)
Logistic Regression Saed Sayad 1www.ismartsoft.com.
Linear Regression Linear Regression. Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. Purpose Understand Linear Regression. Use R functions.
Simple Linear Regression The Coefficients of Correlation and Determination Two Quantitative Variables x variable – independent variable or explanatory.
Nonparametric Statistics
1 BINARY CHOICE MODELS: LOGIT ANALYSIS The linear probability model may make the nonsense predictions that an event will occur with probability greater.
Lecturer: Ing. Martina Hanová, PhD.. Regression analysis Regression analysis is a tool for analyzing relationships between financial variables:  Identify.
Instructor: R. Makoto 1richard makoto UZ Econ313 Lecture notes.
Nonparametric Statistics
The simple linear regression model and parameter estimation
Simple Linear Regression
Basic Estimation Techniques
Image Classification FE423 - March 2, 2000.
Ch3: Model Building through Regression
Nonparametric Statistics
BIVARIATE ANALYSIS: Measures of Association Between Two Variables
BIVARIATE ANALYSIS: Measures of Association Between Two Variables
Ch 9.
Presentation transcript:

Regression in GRID FE423 - February 27, 2000

Labs zAnother reason for AML - re-sampling zresample big grid to little grid zdo lab on little grid zwork out bugs on little grid zwrite up aml zcheck aml on little grid zrun aml on big grid while writing up lab zSend me a note when you finish your lab

Outline zProbability models - simulation zLinear models - regression zLogistic Regression zAnswering questions with data

Questions In forest management, we have questions like: zDoes logging cause landsliding? zDoes logging impact fish?

Spatial Data One tool for answering them is spatial data. zOutcomes yfish counts, landslides, sediment supply, etc. zManagement Activities yharvest units, roads, etc. zOther things that might impact yslope, contributing area, etc.

Natural Variability Unfortunately, natural processes are highly variable, so we rarely have a 1- to-1 causal relationship. Management impacts are usually small compared to the natural variation. In competitive ecosystems, a small impact can be the difference in survival.

Probability Models in GRID We can model this natural variability in GRID with random functions zRAND() zNORMAL()

The RAND() Function The RAND() function makes draws from the range (0,1)

Simulating Random Events Example: We can use SMORPH hazard ranking to simulate landslide observations. haz = con(slope < 40 and plan <.5, 1, ~... prob = con(haz eq 0,.001, haz eq 1,.01,.1) LS_sim = con(rand() < prob, 1, 0)

Simulating Random Events slope Simulated landslides hazard Planform curvature

The NORMAL() Function The normal() function makes draws from standard normal distribution

Simulating Random Events Example: fish counts we can model observations fish = * normal() and include physical inputs fish = 20+stand_age+10*normal()

Regression Overview Just like prediction, but in reverse. Start with fish = 20+age+10*normal() but, let’s say we don’t know the parameters fish = a+b*age+e*normal() We should use coverages FISH and AGE to get the model parameters a, b, and e. ‘b’ tells us how many more fish we will get if we keep older stands along the stream.

Plotting Relationships Plotting in GRID is done through Stacks. MAKESTACK LIST STACKSCATTERGRAM

Regression in GRID In doing regression in GRID we: zmake a SAMPLE file yGrid: samp1 = sample(maskgrid, ing1, ing2) zdo REGRESSION on it yGrid: regression samp1

The SAMPLE Function SAMPLE(, {grid,..., grid}) SAMPLE(, {grid,..., grid}, {NEAREST | BILINEAR | CUBIC}) Arguments - the grid which defines the cells to sample. Cells in the mask grid with valid values will be sampled. {grid,..., grid} - the name of one or more grids whose values will be sampled based upon the mask grid. - allows for the interactive graphical input of the input sample points. The grid specified by {grid} should to be displayed for reference. - the name of the ASCII text file containing coordinates of points to be sampled. - specifies the resampling algorithm to be used when sampling a grid. It is used only when point coordinates are entered as input. See Resampling grids for a description of the resampling methods. NEAREST - nearest neighbor assignment. BILINEAR - bilinear interpolation. CUBIC - cubic convolution.

The REGRESSION Command REGRESSION {LINEAR | LOGISTIC} {DETAIL | BRIEF} Arguments - the name of the input file which can be created using the SAMPLE function. {LINEAR | LOGISTIC} - keywords specifying the type of regression to be performed. LINEAR - linear regression with least square fit estimation is performed. LOGISTIC - logistic regression with maximum likelihood estimation is performed. {DETAIL | BRIEF} - keywords specifying whether a full or abbreviated report will be displayed on a screen. DETAIL - displays a fully detailed report, the result of running the regression model. BRIEF - displays the values of coefficients, RMS Error and Chi-Square only.

Regression in GRID Grid: samp1 = sample ( maskgrid, ing1, ing2 ) Grid: &sys cat samp MISSING MISSING Grid: regression samp1 coef # coef point id z z error RMS Error = Chi-Square =

Regression in GRID fish = 20 + stream_age + 10 * normal() Grid: samp = sample(fish,stream_age) List grids % Grid: regression samp linear brief coef # coef RMS Error = Chi-Square =

Regression on Non-linear Models Linear regression on non-linear models doesn’t always give the ‘correct’ results, even on coefficient signs. Grid: fish = ln(age) + ln(fa) - ln(gradient) Grid: sumple = sample(fish, age, fa, gradient) Grid: regression sumple linear brief coef # coef RMS Error = Chi-Square = Correct sign Incorrect sign Correct sign

Logistic Regression Regression on zeros and ones makes it hard to fit a line. We can however do regression on the probability. ls = con(rand() < prob,1,0) prob = 1/(1+exp(-a 0 -a 1 *x 1 -a 2 *x 2 …))

Logistic Regression: Example Grid: ls = con(curve 40,1,0) Grid: s_ls = sample(ls, slope, curve,aspect) Grid: regression s_ls logistic brief coef # coef RMS Error = Chi-Square =

Answering Questions zMap your data and look zPlot your data ymake a stack ymake a stack scattergram yadjust scale to fit one-to-one zRegression ysample yregression

Answering Questions 1. Are these landslides aspect dependent? Can you prove that?