Linear Fit Intervals VI
- Updated2025-07-30
- 2 minute(s) read
Calculates statistical intervals of the best linear fit for a data set (X, Y). You must manually select the polymorphic instance to use.

Confidence Interval
In the following illustration, the region between the upper and lower confidence bounds is the confidence interval.

Prediction Interval
In the following illustration, the region between the upper and lower prediction bounds is the prediction interval.

If the noise of Y is Gaussian distributed, use both instances of the polymorphic VI to calculate the confidence interval and prediction interval. The following block diagram illustrates the calculation of the confidence interval and the prediction interval using the Linear Fit Intervals VI. You must fit the observations with the Linear Fit VI using the Least Square method to obtain the slope and intercept.
