learn/model families
Linear model
A linear model is a fitting method that assumes each measured input pushes the answer up or down by a fixed amount, and simply adds those pushes together.
What it is
Suppose you want to predict one quantity from several others. A linear model gives each input a weight, multiplies each input by its weight, adds the results and calls the total the prediction. Fitting the model means searching for the weights that make the predictions sit as close as possible to the measurements already in hand. The usual recipe, called least squares, chooses the weights that make the total of the squared gaps between prediction and measurement as small as it can be. Because the arithmetic is simple, the answer can often be worked out in one step rather than by long trial and error.
Two extensions keep the method useful when plain addition is not enough. A generalised linear model keeps the weighted sum but passes it through a further function, so the output can be squeezed into a probability or kept positive. Regularised versions add a penalty for large weights, which stops the fit chasing noise and can push the weights of useless inputs to nothing, leaving a shorter list of inputs that matter. Non-linear terms can also be smuggled in by feeding the model squares, products or logarithms of the original inputs; the model stays linear in its weights.
Why scientists use it
Scientists reach for a linear model when they want a relationship they can read. Each weight has a plain meaning: how much the answer shifts when that one input shifts by one unit, with the others held still. That makes the fitted model an explanation as well as a predictor, which matters when the point of the work is to understand a mechanism rather than only to guess well. The method also needs little data compared with more elaborate ones, runs quickly, and gives honest estimates of how uncertain each weight is.
A linear fit often stands in for something slow or impossible. If a quantity can only be obtained by an expensive calculation or a laboratory measurement, a handful of such results can be used to fit a simple formula, and the formula then supplies values everywhere else at almost no cost. Linear models also serve as the baseline against which fancier methods are judged. If an elaborate model cannot beat a straight line, the elaborate model has not earned its complexity.
In the record
Limits
A linear model can only describe what a straight line can describe. If the true relationship bends, saturates or depends on inputs acting together, the fit will be confidently wrong, and often wrongest at the extremes where it is extrapolated. Weights are easy to misread as causes when they merely reflect which quantities move together, and when inputs are strongly related to each other the weights become unstable and can even flip sign. Outliers drag a least-squares fit towards themselves. A good fit to existing data is no guarantee of anything beyond its range.
Written by AIxSci: the background from general knowledge, the examples from checked records.
By field
- Linear models in structural biology and protein science
- Linear models in materials and computational chemistry
- Linear models in astronomy and astrophysics
- Linear models in weather, climate and oceans
Every article
aix-00289
Machine learning points to filter loading as main driver of levoglucosan desorption temperature
aix-00281
Bacteria-derived aerosol matter made to produce oxidants, then modelled from its optical fingerprints
aix-00290
Machine learning separates weather from policy in China's winter heating air pollution
aix-00291
Statistical model estimates what Makkah's air would have held without lockdown
aix-00292
Neural network forecasts daily sea surface temperature up to 90 days ahead
aix-00293
Machine learning used to predict fine particle emissions at a Greek regional airport
aix-00294
Neural network trained on simple equations spots tipping points in real data
aix-00279
Machine learning predicts where dopant atoms sit in hexaferrite crystals before refinement
aix-00273
Deep learning model flags bacterial proteins likely to drive infection
aix-00271
Machine learning predicts galaxy 'relicness' from survey measurements, cutting spectroscopy demand
aix-00218
Sparse regression fits crystal force constants to model heat flow and vibrations
aix-00238
Classifiers label individual TESS brightness readings as planet transits or not
aix-00216
Neural network models simulate how lead titanate loses its electrical polarisation on heating
aix-00206
Neural network designs five hard metallic glasses, all confirmed by experiment
aix-00157
Microscopy and a trained classifier map which E. coli proteins clump together
aix-00163
Peptides designed by simulation and machine learning sit at condensate surfaces
aix-00166
Neural network assigns protein domains to structural families from sequence alone
aix-00169
AlphaFold's confidence scores used to predict which disordered protein segments bind LC8
aix-00170
Machine learning predicts strength of PLA plastic filled with boron nitride flakes
aix-00146
Machine learning ranks stable materials by predicted superconducting temperature
aix-00144
Machine-learned potentials trained to simulate copper ion conductor Cu7PS6 faster
aix-00173
Machine learning predicts nanofibre thickness from electrospinning settings, tested against new scaffolds
aix-00133
Regression models predict how graphene loading changes aluminium's electron emission
aix-00131
Machine-learned potential predicts how chromium sulfide layers rearrange during exfoliation
aix-00180
Teaching protein language models to rank mutants from a few dozen lab measurements
aix-00188
Machine learning sorts antibody heavy chains by the germ they target
aix-00193
Researchers train a machine-learned force model to simulate carbon nanotubes' strength and heat limits
aix-00117
Deep learning model predicts polymer heat-softening across 48,208 designed candidates
aix-00112
Protein language model embeddings tested against classical descriptors for spotting resistance genes
aix-00108
Oxidation potentials for 15,238 molecules assembled from quantum calculations and lab measurements
aix-00081
Language models trained on protein sequences used to predict sugar-attachment sites
aix-00071
Simulations map how surface atoms rearrange in alloys when molecules attach
aix-00070
Neural network scores candidate composite microstructures in a strength–toughness design loop
aix-00066
Machine learning sifts 25,000 known materials for quantum-technology host candidates
aix-00063
Adding a term for the unfolded protein sharpens AI stability predictions
aix-00059
Machine-learnt stand-in for a planet model cuts interior inference from 42 hours to 8 minutes
aix-00051
Ultrasound-treated clay bleaches cooking oil, with machine learning picking the settings
aix-00050
Machine learning tool flags protein helices likely to bind DNA or RNA
aix-00049
Eight machine learning methods sorted supernova gravitational wave signals by nuclear physics model
aix-00042
Two unsupervised methods compress fast radio burst spectra into a handful of numbers
aix-00035
GPT-4 reads band gap values from paper sentences to train better predictors
aix-00027
Neural networks read infrared spectra to work out how CO sits on platinum
aix-00012
Machine-learned force model simulates silicon-oxygen structures from glass surfaces to monoxide grains
aix-00009
Gaussian process models pick light-sensitive ion channels that reach mammalian cell membranes
aix-00001