keisoku

Weighted Regression Prediction Calculator (Model Choice)

Fit weighted (frequency) data with a chosen model and predict y at a given x. Supports linear, quadratic, power, exponential and logarithmic models, with weighted R squared and a scatter plot.

Input

Enter frequency-weighted (x, y) data, pick a model, and predict y at a chosen x. Each line is x, y, frequency, and a missing frequency is treated as 1.

One point per line. Separate values with a comma or space. A missing frequency becomes 1.

Model

Result

Predicted y at x = 6

11.842857

Model equation

y = 0.066 + 1.963 x

Model

Linear y = a + b x

R squared

0.997

Total frequency

15

Data points

5


Scatter plot and prediction

1.3210.64.1462.056.9713.59.7974.9512.6226.4x 1, y 2.1, frequency 3x 2, y 3.9, frequency 5x 3, y 6.2, frequency 2x 4, y 7.8, frequency 4x 5, y 10.1, frequency 1Prediction x 6, y 11.843

How it works

  • Each data point carries a frequency (weight). The chosen model is fitted by weighted least squares and used to predict y at a given x. The frequency is treated as how many times that point was observed.
  • Supported models are linear y = a + b x, quadratic y = a + b x + c x squared, power y = a x to the power b, exponential y = a e to the power b x, and logarithmic y = a + b ln x. Power, exponential and logarithmic models are linearized with a log transform before fitting.
  • The power model needs both x and y positive, the exponential model needs y positive, and the logarithmic model needs x positive. If any point breaks these conditions, that model cannot be computed.
  • R squared is computed in the original y space, weighted by frequency. A value close to 1 means the model fits the data well.
  • In the scatter plot the point size encodes the frequency, and the regression curve plus the prediction point at the chosen x are highlighted with a red marker.

Reviews

Tell us what you think of this calculator.

Write a review

  1. Home
  2. Weighted Regression Prediction Calculator (Model Choice)