Question
Use MATLAB The lifetime (Y) is thought to be shorter as the speed of the lathe (X) increases. There are twenty total observations, ten for
Use MATLAB
The lifetime (Y) is thought to be shorter as the speed of the lathe (X) increases. There are twenty total observations, ten for each tool type (A vs. B).
Y1 = [18.73; 14.52; 17.43; 14.54; 13.44; 24.39; 13.34; 22.71; 12.68; 19.32]; % This is the Lifetime(hr) for tool type A X1 = [610; 950; 720; 840; 980; 530; 680; 540; 890; 730]; % This is the Speed(rpm) for tool type A
Y2 = [30.16; 27.09; 25.40; 26.05; 33.49; 35.62; 26.07; 36.78; 39.45;43.47]; % This is the Lifetime(hr) for tool type B X2 = [670; 770; 880; 1000; 760; 590; 910; 650; 810; 500]; % This is the Speed(rpm) for tool type B
Part 1: Plot the lifetimes (Y) as a function of the lathe speed (X), Then use the full set of twenty data points to fit (using formulas provided) and plot the lifetimes (Y) as a function of the lathe speed (X), Finally, report on the results by computing the SSE for the fitted line.
Part 2: Repeat the previous problem for each of the two sets of data (the A data and the B data). Plot each set of ten points separately (use different symbols) and fit each set with its own fitted line and include the two fitted lines on your plot. Finally, compute the SSE for each line and combine. Compare the results of fitting two lines vs. fitting a single line (previous part of the problem).
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started