Question

In: Advanced Math

given the expiremental data below, determine the equation that models the data. first plot the data...

given the expiremental data below, determine the equation that models the data. first plot the data on both a log-log graph and a semi-log graph. next, use these plots to determine the type of equation that best fits the data. finally determine the equation. x-values= 10,20,50,120,180,200 y values=4600,3200,1130,98,98,12,6

Solutions

Expert Solution

MATLAB Code:

close all
clear
clc

x = [10 20 50 120 180 200];
y = [4600 3200 1130 98 12 6];

figure
subplot(121), loglog(x,y), xlabel('x'), ylabel('y')
title('loglog graph')
subplot(122), semilogy(x,y), xlabel('x'), ylabel('y')
title('semilog graph')
disp('Hence, semilog plot fits the data better.')
disp('The type of equation is: log(y) = a*x + b')

A = [x(:) ones(size(x(:)))];
c = A\log(y(:));
a = c(1); b = c(2);
fprintf('\nThe equation that fits the given data is: log(y) = (%f)*x + (%f)\n', a, b)

figure
xx = min(x):0.01:max(x);
plot(x,y,'o',xx,exp(a*xx+b)), xlabel('x')
legend('Data Points', 'Curve Fit')

Plots:

Output:

Hence, semilog plot fits the data better.
The type of equation is: log(y) = a*x + b

The equation that fits the given data is: log(y) = (-0.034938)*x + (8.776680)


Related Solutions

Find the equation of the regression line for the given data. Then construct a scatter plot...
Find the equation of the regression line for the given data. Then construct a scatter plot of the data and draw the regression line. (The pair of variables have a significant correlation.) Then use the regression equation to predict the value of y for each of the given x-values, if meaningful. The table below shows the heights (in feet) and the number of stories of six notable buildings in a city. Height : 772, 628, 518, 508, 496, 483, y:...
Find the equation of the regression line for the given data. Then construct a scatter plot...
Find the equation of the regression line for the given data. Then construct a scatter plot of the data and draw the regression line.​ (The pair of variables have a significant​ correlation.) Then use the regression equation to predict the value of y for each of the given​ x-values, if meaningful. The table below shows the heights​ (in feet) and the number of stories of six notable buildings in a city. Height comma x 762 621 515 508 491 480...
Find the equation of the regression line for the given data. Then construct a scatter plot...
Find the equation of the regression line for the given data. Then construct a scatter plot of the data and draw the regression line.​ (The pair of variables have a significant​ correlation.) Then use the regression equation to predict the value of y for each of the given​ x-values, if meaningful. The table below shows the heights​ (in feet) and the number of stories of six notable buildings in a city. Height comma xHeight, x 766766 620620 520520 508508 494494...
Find the equation of the regression line for the given data. Then construct a scatter plot...
Find the equation of the regression line for the given data. Then construct a scatter plot of the data and draw the regression line.​ (Each pair of variables has a significant​ correlation.) Then use the regression equation to predict the value of y for each of the given​ x-values, if meaningful. The caloric content and the sodium content​ (in milligrams) for 6 beef hot dogs are shown in the table below. font size decreased by 1 font size increased by...
Find the equation of the regression line for the given data. Then construct a scatter plot...
Find the equation of the regression line for the given data. Then construct a scatter plot of the data and draw the regression line.​ (Each pair of variables has a significant​ correlation.) Then use the regression equation to predict the value of y for each of the given​ x-values, if meaningful. The caloric content and the sodium content​ (in milligrams) for 6 beef hot dogs are shown in the table below. font size decreased by 1 font size increased by...
Find the equation of the regression line for the given data. Then construct a scatter plot...
Find the equation of the regression line for the given data. Then construct a scatter plot of the data and draw the regression line. (The pair of variables have a significant correlation.) Then use the regression equation to predict the value of y for each of the given x-values, if meaningful. The number of hours 6 students spent for a test and their scores on that test are shown below. font size decreased by 1 font size increased by 1...
Find the equation of the regression line for the given data. Then construct a scatter plot...
Find the equation of the regression line for the given data. Then construct a scatter plot of the data and draw the regression line.​ (The pair of variables have a significant​ correlation.) Then use the regression equation to predict the value of y for each of the given​ x-values, if meaningful. The table below shows the heights​ (in feet) and the number of stories of six notable buildings in a city. Height comma x 775 619 519 508 491 474...
Find the equation of the regression line for the given data. Then construct a scatter plot...
Find the equation of the regression line for the given data. Then construct a scatter plot of the data and draw the regression line.​ (The pair of variables have a significant​ correlation.) Then use the regression equation to predict the value of y for each of the given​ x-values, if meaningful. The number of hours 6 students spent for a test and their scores on that test are shown below. Hours spent studying, x: 0, 1, 2, 4, 5, 6...
find the equation of the regression line for the given data. then construct a scatter plot...
find the equation of the regression line for the given data. then construct a scatter plot if the data and draw a regression line. then use the regression equation to predict the value of y for each of the given x values m, if meaningful. x= 778, 621, 519, 510, 494, 473 y= 51, 47, 44, 43, 39, 37 y=____x + _______ predict the value y for x= 499 "                                      " x= 642 "                                      " x= 802 "                                      " x=...
Find the equation of the regression line for the given data. Then construct a scatter plot...
Find the equation of the regression line for the given data. Then construct a scatter plot of the data and draw the regression line.​ (Each pair of variables has a significant​ correlation.) Then use the regression equation to predict the value of y for each of the given​ x-values, if meaningful. The caloric content and the sodium content​ (in milligrams) for 6 beef hot dogs are shown in the table below. Calories, x 160 180 120 120 80 190 ​(a)...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT