~/aixsci
weekly updates

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

Every article

45articles
13structural-biology
20materials-chemistry
5astronomy
7climate-weather

aix-00289

Machine learning points to filter loading as main driver of levoglucosan desorption temperature

property prediction

climate-weather · ai-result · Environmental Science & Technology · 2026

aix-00281

Bacteria-derived aerosol matter made to produce oxidants, then modelled from its optical fingerprints

property prediction

climate-weather · ai-supporting · Environmental Science & Technology · 2025

aix-00290

Machine learning separates weather from policy in China's winter heating air pollution

property predictiondenoising

climate-weather · ai-result · Environmental Science & Technology · 2023

aix-00291

Statistical model estimates what Makkah's air would have held without lockdown

forecasting

climate-weather · ai-supporting · Toxics · 2022

aix-00292

Neural network forecasts daily sea surface temperature up to 90 days ahead

forecasting

climate-weather · ai-result · PLoS ONE · 2026

aix-00293

Machine learning used to predict fine particle emissions at a Greek regional airport

property prediction

climate-weather · ai-supporting · Toxics · 2025

aix-00294

Neural network trained on simple equations spots tipping points in real data

classificationforecasting

climate-weather · ai-result · Royal Society Open Science · 2022

aix-00279

Machine learning predicts where dopant atoms sit in hexaferrite crystals before refinement

classificationproperty prediction

materials-chemistry · ai-result · Advanced Science · 2026

aix-00273

Deep learning model flags bacterial proteins likely to drive infection

classificationstructure determination

structural-biology · ai-result · Bioinformatics · 2026

aix-00271

Machine learning predicts galaxy 'relicness' from survey measurements, cutting spectroscopy demand

property predictionclassification

astronomy · ai-result · Monthly Notices of the Royal Astronomical Society · 2026

aix-00218

Sparse regression fits crystal force constants to model heat flow and vibrations

property prediction

materials-chemistry · ai-result · npj Computational Materials · 2026

aix-00238

Classifiers label individual TESS brightness readings as planet transits or not

classificationdetectionanomaly detection

astronomy · ai-result · arXiv · 2026

aix-00216

Neural network models simulate how lead titanate loses its electrical polarisation on heating

simulation surrogateproperty prediction

materials-chemistry · ai-result · Physical review. B./Physical review. B · 2025

aix-00206

Neural network designs five hard metallic glasses, all confirmed by experiment

property predictioncandidate generationsimulation surrogate

materials-chemistry · ai-result · Nature Communications · 2026

aix-00157

Microscopy and a trained classifier map which E. coli proteins clump together

classificationproperty prediction

structural-biology · ai-result · Scientific Reports · 2022

aix-00163

Peptides designed by simulation and machine learning sit at condensate surfaces

simulation surrogateproperty predictioncandidate generationexperimental design

structural-biology · ai-result · Nature Communications · 2026

aix-00166

Neural network assigns protein domains to structural families from sequence alone

classification

structural-biology · ai-result · Bioinformatics · 2023

aix-00169

AlphaFold's confidence scores used to predict which disordered protein segments bind LC8

classificationstructure determinationproperty prediction

structural-biology · ai-result · Frontiers in Molecular Biosciences · 2025

aix-00170

Machine learning predicts strength of PLA plastic filled with boron nitride flakes

property prediction

materials-chemistry · ai-supporting · Polymers · 2026

aix-00146

Machine learning ranks stable materials by predicted superconducting temperature

property prediction

materials-chemistry · ai-result · arXiv · 2024

aix-00144

Machine-learned potentials trained to simulate copper ion conductor Cu7PS6 faster

simulation surrogateexperimental design

materials-chemistry · ai-result · arXiv · 2024

aix-00173

Machine learning predicts nanofibre thickness from electrospinning settings, tested against new scaffolds

property prediction

materials-chemistry · ai-result · Frontiers in Bioengineering and Biotechnology · 2026

aix-00133

Regression models predict how graphene loading changes aluminium's electron emission

property prediction

materials-chemistry · ai-result · Scientific Reports · 2025

aix-00131

Machine-learned potential predicts how chromium sulfide layers rearrange during exfoliation

simulation surrogateproperty prediction

materials-chemistry · ai-result · The Journal of Physical Chemistry C · 2024

aix-00180

Teaching protein language models to rank mutants from a few dozen lab measurements

property predictionexperimental design

structural-biology · ai-result · Nature Communications · 2024

aix-00188

Machine learning sorts antibody heavy chains by the germ they target

classification

structural-biology · ai-result · PLoS ONE · 2026

aix-00193

Researchers train a machine-learned force model to simulate carbon nanotubes' strength and heat limits

simulation surrogate

materials-chemistry · ai-result · Journal of Chemical Theory and Computation · 2025

aix-00117

Deep learning model predicts polymer heat-softening across 48,208 designed candidates

property prediction

materials-chemistry · ai-result · arXiv · 2026

aix-00112

Protein language model embeddings tested against classical descriptors for spotting resistance genes

classificationstructure determination

structural-biology · ai-result · Frontiers in Microbiology · 2026

aix-00108

Oxidation potentials for 15,238 molecules assembled from quantum calculations and lab measurements

property prediction

materials-chemistry · ai-supporting · Journal of Chemical Information and Modeling · 2025

aix-00081

Language models trained on protein sequences used to predict sugar-attachment sites

classification

structural-biology · ai-result · Bioinformatics Advances · 2024

aix-00071

Simulations map how surface atoms rearrange in alloys when molecules attach

property prediction

materials-chemistry · ai-supporting · The Journal of Physical Chemistry C · 2023

aix-00070

Neural network scores candidate composite microstructures in a strength–toughness design loop

property predictionsimulation surrogatecandidate generation

materials-chemistry · ai-result · Advanced Science · 2026

aix-00066

Machine learning sifts 25,000 known materials for quantum-technology host candidates

classification

materials-chemistry · ai-result · npj Computational Materials · 2022

aix-00063

Adding a term for the unfolded protein sharpens AI stability predictions

property prediction

structural-biology · ai-result · Protein Science · 2025

aix-00059

Machine-learnt stand-in for a planet model cuts interior inference from 42 hours to 8 minutes

simulation surrogate

astronomy · ai-result · The Astrophysical Journal · 2026

aix-00051

Ultrasound-treated clay bleaches cooking oil, with machine learning picking the settings

property predictionexperimental design

materials-chemistry · ai-supporting · Food Science & Nutrition · 2024

aix-00050

Machine learning tool flags protein helices likely to bind DNA or RNA

classification

structural-biology · ai-result · Journal of Chemical Information and Modeling · 2025

aix-00049

Eight machine learning methods sorted supernova gravitational wave signals by nuclear physics model

classification

astronomy · ai-result · Machine Learning Science and Technology · 2024

aix-00042

Two unsupervised methods compress fast radio burst spectra into a handful of numbers

denoisinganomaly detection

astronomy · ai-result

aix-00035

GPT-4 reads band gap values from paper sentences to train better predictors

literature synthesisclassificationproperty prediction

materials-chemistry · ai-result · arXiv · 2023

aix-00027

Neural networks read infrared spectra to work out how CO sits on platinum

structure determinationsimulation surrogate

materials-chemistry · ai-result · Nature Communications · 2020

aix-00012

Machine-learned force model simulates silicon-oxygen structures from glass surfaces to monoxide grains

simulation surrogateexperimental design

materials-chemistry · ai-result · Nature Communications · 2024

aix-00009

Gaussian process models pick light-sensitive ion channels that reach mammalian cell membranes

property predictionclassificationexperimental design

structural-biology · ai-result · PLoS Computational Biology · 2017

aix-00001

Researchers measure folding stability for hundreds of thousands of protein variants

structure determinationcandidate generationproperty predictionclassification

structural-biology · ai-supporting · Nature · 2023