Ideal Straight Line - instrumentation HND

Since you already have the slope m and the intercept C, you have almost everything you need for the LS fitting: you only need to calculate the residuals and their absolute values, and find the total of these. Then you can compare that number to the total of the errors you get using the LS method. I will suggest what to do with the LS method, but will not do all the work for you. I'll leave it to you to decide what should be done with the result.You want to fit y = mx + C to the data points (x1, y1), (x2, y2), (x3, y3), (x4, y4), (x5, y5), (x6,
  • #1
cps.13
40
1

Homework Statement


I am doing a distance HND and need to find the ideal straight line of a sensor output. The sensor is a temperature sensor with an OHM output. From a temperature range of 0-250 it has an output of 120-364ohm.

temp output
0 = 120
50 = 178
100 = 201
150 = 249
200 = 303
250 = 364

I need to generate the ideal straight line equation.

The Attempt at a Solution



I have plotted a line of the points on a graph with the x-axis as ohms and the y-axis as temperature. Calculated the line of best fit using y = mx+C where...

m = (249-201)/(150-100)= 0.96
Using the data for a temp of 150 c = 249 - (150*.96) = 105
therefore the equation of the line is

y = 0.96x + 105

When I now calculate the ideal ohm output values they seem quite wayward of the values given.

temp ISL Temp
0 = 105
50 = 153
100 = 201
150 = 249
200 = 297
250 = 345can anyone see if I have made a mistake? should I be calculating my line equation by using the entire temperature range from 0-250?

thanks
 
Physics news on Phys.org
  • #2
cps.13 said:

Homework Statement


I am doing a distance HND and need to find the ideal straight line of a sensor output. The sensor is a temperature sensor with an OHM output. From a temperature range of 0-250 it has an output of 120-364ohm.

temp output
0 = 120
50 = 178
100 = 201
150 = 249
200 = 303
250 = 364

I need to generate the ideal straight line equation.

The Attempt at a Solution



I have plotted a line of the points on a graph with the x-axis as ohms and the y-axis as temperature. Calculated the line of best fit using y = mx+C where...

m = (249-201)/(150-100)= 0.96
Using the data for a temp of 150 c = 249 - (150*.96) = 105
therefore the equation of the line is

y = 0.96x + 105

When I now calculate the ideal ohm output values they seem quite wayward of the values given.

temp ISL Temp
0 = 105
50 = 153
100 = 201
150 = 249
200 = 297
250 = 345can anyone see if I have made a mistake? should I be calculating my line equation by using the entire temperature range from 0-250?

thanks

Google "Least Squares Fit".
 
  • #3
HND = ??
ISL = ??

Please expand these acronyms so we can know what you're talking about.
 
  • #4
ISL = ideal straight line as mentioned earlier in the post
HND = Higher National Diploma.
 
  • #5
cps.13 said:
ISL = ideal straight line as mentioned earlier in the post
HND = Higher National Diploma.

Since you seemed to have ignored my previous response, I will expand on it a bit. First: YES, you should try to use the entire (x,y) data set, unless you have reason to suspect that some data points are seriously wrong. A simple plot in your case does not suggest any of the points to be truly anomalous, so none of them should be dropped.

A standard method for such problem is the so-called "least-squares" fitting method, where you want to minimize the total of all the squared errors in the fit. That is, in your case you have six data points, so in general there will be six "residual errors"; these are the amounts by which the y-values of the data points miss the straight line. You want some "goodness of fit" measure involving all six of the errors; furthermore, you should look at a measure that involves the absolute errors, not the actual numerical values of the errors. By this, I mean that if one residual error = (actual y) - (fitted y-value) is, for example equal to -2, you should count that as a +2, because +2 is the actual distance between the fit and the data. Positive error means the actual y lies above the fitted value, while negative error means the actual y lies below the fit. You can have positive and negative errors cancelling in total, but that does not mean the fit is perfect; there could still be a significant difference between the data and the fit. When we look, instead, at absolute errors |actual y - fitted y| we eliminate that problem, so guard against false confidence. Looking at squared errors (actual-fit)^2 also gets around the problem of false error-cancellation, and furthermore has the additional desirable property that small errors are de-emphasized, while large errors have their importance magnified. Besides, the least-squares method has been in use for over 200 years, and involves only elementary methods.

Every spreadsheet comes equipped with a least-squares fitting module, and there are also on-line sources that will do the calculations for you. Many hand-held calculators also have a "least-squares fit" button. However, the calculations are so straightforward that no fancy tools are needed, and just using the calculator for addition and multiplication is enough.
 

1. What is an ideal straight line?

An ideal straight line is a line that has the same direction and does not curve or bend. It is a theoretical concept used in mathematics and engineering to represent the most perfect form of a line.

2. What is instrumentation in relation to HND?

Instrumentation in relation to HND (Higher National Diploma) refers to the study and application of instruments and devices used in various industries, such as engineering and science. This includes the design, development, and maintenance of instruments and their use in collecting, analyzing, and interpreting data.

3. How is an ideal straight line measured or determined?

An ideal straight line can be measured or determined using mathematical equations and tools, such as a ruler, protractor, or a graphing calculator. The equation y=mx+b is commonly used to represent a straight line, where m is the slope and b is the y-intercept.

4. What are some common instruments used in measuring straight lines?

Some common instruments used in measuring straight lines include rulers, protractors, calipers, and laser measuring devices. These instruments provide accurate measurements and can be used for different purposes, such as in construction, engineering, and surveying.

5. How is instrumentation used in the study of ideal straight lines?

Instrumentation is used in the study of ideal straight lines to accurately measure and analyze their characteristics, such as length, slope, and curvature. It also helps in the development of instruments and techniques for creating straight lines in various fields, such as in the design of roads, buildings, and electronic circuits.

Similar threads

  • Precalculus Mathematics Homework Help
Replies
2
Views
498
  • Engineering and Comp Sci Homework Help
Replies
4
Views
2K
  • Mechanical Engineering
Replies
9
Views
2K
  • Programming and Computer Science
Replies
14
Views
1K
Replies
152
Views
5K
Replies
2
Views
1K
  • Advanced Physics Homework Help
Replies
1
Views
5K
  • Computing and Technology
Replies
1
Views
3K
  • General Math
Replies
20
Views
10K
  • Nuclear Engineering
Replies
0
Views
2K
Back
Top