Linear Regression from Scratch

A tutorial explaining how to perform simple linear regression from scratch using linear algebra, calculus, and of course R.  Regression analysis has the objective to model, in a mathematical way, the behavior of a respond variable as a function of one or more independent variables (factors). As a practical example, think about a process of alcohol production using the microscopic fungus Saccharomyces cerevisiae (yeast). You know that alcohol yield is a linear function of the concentration of sucrose for some interval of concentrations, you are also interested on making nice predictions of alcohol yield for a given sucrose concentration....

July 29, 2021

Simple Linear Regression Applied to Enzyme Kinetics

A R tutorial about how to perform a simple linear regression analysis applied to an enzyme kinetics experiment. It also explore an alternative approach by nonlinear regression.  1 Problem You have performed a enzyme kinetics experiment. You are supposing a Michaelis-Menten kinetics and your aim is to determine the constants Vmax, Km and some others. The first ten observations in your data would look like this: S (M) v (M/min) 8....

February 8, 2021

Simple Linear Regression Applied to Quantification

A R tutorial about how to perform a simple linear regression applied to a quantification problem.  1 Problem You need to quantify the lycopene quantity of three tomato varieties. You take samples from these tomatoes and extract the compound of interest. Then you use HPLC to quantify the lycopene concentration in the extracts. You HPLC equipment just gives to you signals data as milli-absorbance units (mAU). The intensity of this signals is proportional to the concentration in the samples....

February 1, 2021