Sensor Calibration Fit

Sensor Calibration Fit

Paste or open a CSV of raw sensor readings and known reference values. Mark each pair train or check before fitting so check values never influence the coefficients. A stable scaled linear or quadratic least-squares model maps measured → reference. Compare training and held-out residuals, then test a new reading. This is exploratory calibration analysis, not instrument certification.

1. Calibration pairs and model

CSV headers must be measured,reference,role (any order). Each role is train or check. Use 4+ train rows for a line or 5+ for a quadratic, and at least 2 check rows. Maximum 200 rows and 128 KiB.

Edit the example CSV or open your own measured/reference pairs.

Comments & questions

Sensor Calibration Fit

Paste or open a CSV of raw sensor readings and known reference values. Mark each pair train or check before fitting so check values never influence the coefficients. A stable scaled linear or quadratic least-squares model maps measured → reference. Compare training and held-out residuals, then test a new reading. This is exploratory calibration analysis, not instrument certification.

Key features

  • Strict local CSV with explicit measured, reference and train/check roles
  • Centered/scaled degree-1 or degree-2 least-squares fit using reorthogonalized QR
  • Separate training and held-out RMSE, MAE, bias and per-record signed residuals
  • Measured training range and warnings for check or requested readings outside it
  • Approximate ±2σ model-only prediction spread with leverage and residual degrees of freedom
  • Download a residual CSV and a reproducible model-and-diagnostics JSON

How to use

  1. Paste a CSV or open a local CSV file with measured,reference,role columns and at least two check rows.
  2. Assign training and check roles before fitting, then choose a linear or quadratic model.
  3. Enter a new sensor reading and press Fit and validate.
  4. Read the scaled coefficient formula, training range, separate train/check metrics and each signed residual.
  5. Review the extrapolation and uncertainty notes, then download residual CSV or model JSON.

Use cases

  • Fit a bench sensor reading to a reference instrument's values
  • Compare straight-line and curved fits against untouched check standards
  • See whether one reading lies beyond the measured calibration range
  • Keep coefficients and row-level residual evidence with an experiment record

Frequently asked questions

Which direction is calibrated?

The model predicts reference from measured: reference ≈ Σ c[k] z^k with z=(measured−center)/scale. Units remain whatever you used in the CSV; no unit conversion is inferred.

Why are check rows required?

They are never used to estimate coefficients or the training residual standard deviation. Their separate error measures help reveal model mismatch on values reserved before fitting. You choose the split; this tool cannot prove the check set is representative.

Is ±2σ a certified 95% interval?

No. It is an approximate model-only spread, 2 times training residual standard deviation times sqrt(1+leverage). It assumes independent, similar-variance residuals and omits reference-standard uncertainty, sensor repeatability, drift and systematic error. Zero fitted residuals do not establish zero physical uncertainty.

Can I use predictions outside the training range?

The tool shows them with an extrapolation warning, but does not validate their physical accuracy. Collect reference points over the intended range instead.

Why is a polynomial rejected as rank deficient?

Too few distinct measured values or nearly dependent columns cannot determine stable coefficients. Add well-spaced training pairs; a quadratic also needs more independent values than a line.

Are calibration values uploaded?

No. CSV parsing, fitting, plotting and requested downloads run in this browser tab.

Privacy

Your measured and reference pairs stay in this browser tab. Files are read locally and exported only when you request them; no server computation is used.

References

Related Tools

Scientific Data ProfilerUnit ConverterFunction Graph WorkbenchWasm Module InspectorHreflang Matrix CheckerAST Query PlaygroundContainer Build GraphDependency Graph ExplorerSemver Range LabCron Schedule AuditorPatch Review WorkbenchSource Map ExplorerLocalization Catalog AuditorStructured Data ReviewerHTTP Archive AnalyzerWebhook Signature LabProtobuf Schema WorkbenchGraphQL Schema LabAvro Schema EvolutionLocal SQL WorkbenchSchema Form BuilderMesh Repair WorkbenchPipe Network LabRobot Arm Kinematics LabThermal Network LabBeam Response LabGear Train DesignerTolerance Stackup LabPCB Stackup PlannerDigital Filter DesignerNetwork Reachability MapSun Shadow MapGPS Error SimulatorDigital Logic SimulatorAnalog Circuit LabMechanism Linkage LabAnalysis Mesh GeneratorOpenAPI Contract InspectorDatabase Migration PlannerDimensional Equation CheckerTruss Force LabBoolean Minimization LabControl Response LabQueueing Simulation LabGeofence Event SimulatorCoordinate Reference LabSurvey Traverse LabRaster Classification LabChoropleth Design LabMap Print ComposerRaster Reprojection LabElevation Contour MakerTerrain Viewshed LabWatershed DelineatorMap Tile PackagerText File Encoding WorkbenchFilesystem Portability AuditorSBOM License ExplorerFile Signature Auditornpm Lockfile Conflict ResolverSource Secret AuditorOffline Web Package BuilderCertificate Chain InspectorTorrent Metainfo InspectorChunked File PackagerEncrypted File VaultDuplicate File FinderArchive WorkbenchDesign Token ManagerSpacing Token DesignerResponsive Type SystemPackaging Dieline DesignerSVG Icon Sprite PackerFlex Layout PlaygroundCSS Grid PlaygroundRegex Equivalence LabMarkdown Repository AuditorLog Template MinerResponsive Layout AuditorEmail Template PreviewInternal Link GraphState Machine TesterPetri Net SimulatorGit History VisualizerCurl Request WorkbenchBinary Protocol DesignerHex File EditorBinary Patch WorkbenchFile Signature WorkbenchAPI Mock SandboxSchema Column MapperEvent Log SessionizerER Diagram DesignerTime Series Gap AuditorStratified Data SplitterData Lineage DesignerDecision Tree LabData Anonymization WorkbenchData Expectation RunnerJSON Schema ValidatorBasket Pattern AnalyzerRobots Policy TesterSEO HTML AuditorAccessibility Structure AuditorSyndication Feed WorkbenchIndexNow Payload BuilderCrawl Log AnalyzerCSP Policy WorkbenchSearch Performance AnalyzerCSV Formula Risk AuditorCORS Response SimulatorCache Header LabCookie Policy InspectorWeb Vitals Trace LabSitemap Health AuditorBatch File RenamerFile Manifest VerifierFolder Space MapFolder Difference ReviewerRoute Order OptimizerGeoJSON Map EditorPolygon Overlay LabCartographic Label PlacerSpatial Table JoinGeoJSON Topology AuditorGPX Track AnalyzerTrack Privacy RedactorCSV Table JoinCSV Pivot WorkbenchTabular Cleaning WorkbenchRecord ReconciliationData Dictionary BuilderCanonical Graph AuditorRedirect Plan TesterHTTP response and ping reference testBrowser and System InformationJSON ↔ YAML ConverterXML ↔ JSON ConverterHTML FormatterJavaScript MinifierMock Data Generator.gitignore GeneratorLicense GeneratorUser-Agent ParserPassword Strength CheckerCode to ImageXML FormatterHTTP Status Code LookupMIME Type LookupJS & SQL String EscapeCSS Box Shadow GeneratorCSS Gradient GeneratorIndent ConverterNumber Base ConverterUnicode Escape ConverterUnicode InspectorJSON Structure DiffMarkdown Table GeneratorBase64 EncoderJSON FormatterURL EncoderSQL FormatterCron Expression GeneratorRegex TesterUUID GeneratorHash GeneratorTimestamp ConverterJWT DecoderHTML Entity ConverterMarkdown PreviewCSS MinifierMeta Tag GeneratorJSON ↔ CSVCase ConverterImage to Base64
Explore all Dev Tools tools →Image/Media →Text/Convert →Life/Fun →