Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống
1
/ 27 trang
THÔNG TIN TÀI LIỆU
Thông tin cơ bản
Định dạng
Số trang
27
Dung lượng
1,97 MB
Nội dung
4. ProcessModeling 4.6. Case Studies inProcessModeling 4.6.1. Load Cell Calibration 4.6.1.9.Interpretation of Numerical Output - Model #2 Quadratic Confirmed The numerical results from the fit are shown below. For the quadratic model, the lack-of-fit test statistic is 0.8107. The fact that the test statistic is approximately one indicates there is no evidence to support a claim that the functional part of the model does not fit the data. The test statistic would have had to have been greater than 2.17 to reject the hypothesis that the quadratic model is correct. Dataplot Output LEAST SQUARES POLYNOMIAL FIT SAMPLE SIZE N = 40 DEGREE = 2 REPLICATION CASE REPLICATION STANDARD DEVIATION = 0.2147264895D-03 REPLICATION DEGREES OF FREEDOM = 20 NUMBER OF DISTINCT SUBSETS = 20 PARAMETER ESTIMATES (APPROX. ST. DEV.) T VALUE 1 A0 0.673618E-03 (0.1079E-03) 6.2 2 A1 0.732059E-06 (0.1578E-09) 0.46E+04 3 A2 -0.316081E-14 (0.4867E-16) -65. RESIDUAL STANDARD DEVIATION = 0.0002051768 RESIDUAL DEGREES OF FREEDOM = 37 REPLICATION STANDARD DEVIATION = 0.0002147265 REPLICATION DEGREES OF FREEDOM = 20 LACK OF FIT F RATIO = 0.8107 = THE 33.3818% POINT OF THE F DISTRIBUTION WITH 17 AND 20 DEGREES OF FREEDOM Regression Function From the numerical output, we can also find the regression function that will be used for the calibration. The function, with its estimated parameters, is 4.6.1.9. Interpretation of Numerical Output - Model #2 http://www.itl.nist.gov/div898/handbook/pmd/section6/pmd619.htm (1 of 2) [5/1/2006 10:22:36 AM] All of the parameters are significantly different from zero, as indicated bythe associated t statistics. The 97.5% cut-off for the t distribution with 37 degrees of freedom is 2.026. Since all of the t values are well above this cut-off, we can safely conclude that none of the estimated parameters is equal to zero. 4.6.1.9. Interpretation of Numerical Output - Model #2 http://www.itl.nist.gov/div898/handbook/pmd/section6/pmd619.htm (2 of 2) [5/1/2006 10:22:36 AM] 4. ProcessModeling 4.6. Case Studies inProcessModeling 4.6.1. Load Cell Calibration 4.6.1.10.Use of the Model for Calibration Using the Model Now that a good model has been found for these data, it can be used to estimate load values for new measurements of deflection. For example, suppose a new deflection value of 1.239722 is observed. The regression function can be solved for load to determine an estimated load value without having to observe it directly. The plot below illustrates the calibration process graphically. Calibration Finding Bounds on the Load From the plot, it is clear that the load that produced the deflection of 1.239722 should be about 1,750,000, and would certainly lie between 1,500,000 and 2,000,000. This rough estimate of the possible load range will be used to compute the load estimate numerically. 4.6.1.10. Use of the Model for Calibration http://www.itl.nist.gov/div898/handbook/pmd/section6/pmd61a.htm (1 of 3) [5/1/2006 10:22:37 AM] Obtaining a Numerical Calibration Value To solve for the numerical estimate of the load associated with the observed deflection, the observed value substituting inthe regression function andthe equation is solved for load. Typically this will be done using a root finding procedure in a statistical or mathematical package. That is one reason why rough bounds on the value of the load to be estimated are needed. Solving the Regression Equation Which Solution? Even though the rough estimate of the load associated with an observed deflection is not necessary to solve the equation, the other reason is to determine which solution tothe equation is correct, if there are multiple solutions. The quadratic calibration equation, in fact, has two solutions. As we saw from the plot on the previous page, however, there is really no confusion over which root of the quadratic function is the correct load. Essentially, the load value must be between 150,000 and 3,000,000 for this problem. The other root of the regression equation andthe new deflection value correspond to a load of over 229,899,600. Looking at the data at hand, it is safe to assume that a load of 229,899,600 would yield a deflection much greater than 1.24. +/- What? The final step inthe calibration process, after determining the estimated load associated with the observed deflection, is to compute an uncertainty or confidence interval for the load. A single-use 95% confidence interval for the load, is obtained by inverting the formulas for the upper and lower bounds of a 95% prediction interval for a new deflection value. These inequalities, shown below, are usually solved numerically, just as the calibration equation was, to find the end points of the confidence interval. For some models, including this one, the solution could actually be obtained algebraically, but it is easier to let the computer do the work using a generic algorithm. The three terms on the right-hand side of each inequality are the regression function ( ), a t-distribution multiplier, andthe standard deviation of a new measurement from theprocess ( ). Regression software often provides convenient methods for computing these quantities for arbitrary values of the predictor variables, which can make computation of the confidence interval end points easier. Although this interval is not symmetric mathematically, the asymmetry is very small, so for all practical purposes, the interval can be written as 4.6.1.10. Use of the Model for Calibration http://www.itl.nist.gov/div898/handbook/pmd/section6/pmd61a.htm (2 of 3) [5/1/2006 10:22:37 AM] if desired. 4.6.1.10. Use of the Model for Calibration http://www.itl.nist.gov/div898/handbook/pmd/section6/pmd61a.htm (3 of 3) [5/1/2006 10:22:37 AM] 4. ProcessModeling 4.6. Case Studies inProcessModeling 4.6.1. Load Cell Calibration 4.6.1.11.Work This Example Yourself View Dataplot Macro for this Case Study This page allows you to repeat the analysis outlined inthe case study description on the previous page using Dataplot, if you have downloaded and installed it. Output from each analysis step below will be displayed in one or more of the Dataplot windows. The four main windows are the Output window, the Graphics window, the Command History window andthe Data Sheet window. Across the top of the main windows there are menus for executing Dataplot commands. Across the bottom is a command entry window where commands can be typed in. Data Analysis Steps Results and Conclusions Click on the links below to start Dataplot and run this case study yourself. Each step may use results from previous steps, so please be patient. Wait until the software verifies that the current step is complete before clicking on the next step. The links in this column will connect you with more detailed information about each analysis step from the case study description. 1. Get set up and started. 1. Read inthe data. 1. You have read 2 columns of numbers into Dataplot, variables Deflection and Load. 2. Fit and validate initial model. 1. Plot deflection vs. load. 2. Fit a straight-line model tothe data. 3. Plot the predicted values 1. Based on the plot, a straight-line model should describe the data well. 2.The straight-line fit was carried out. Before trying to interpret the numerical output, do a graphical residual analysis. 3. The superposition of the predicted 4.6.1.11. Work This Example Yourself http://www.itl.nist.gov/div898/handbook/pmd/section6/pmd61b.htm (1 of 3) [5/1/2006 10:22:37 AM] from the model andthe data on the same plot. 4. Plot the residuals vs. load. 5. Plot the residuals vs. the predicted values. 6. Make a 4-plot of the residuals. 7. Refer tothe numerical output from the fit. and observed values suggests the model is ok. 4. The residuals are not random, indicating that a straight line is not adequate. 5. This plot echos the information inthe previous plot. 6. All four plots indicate problems with the model. 7. The large lack-of-fit F statistic (>214) confirms that the straight- line model is inadequate. 3. Fit and validate refined model. 1. Refer tothe plot of the residuals vs. load. 2. Fit a quadratic model tothe data. 3. Plot the predicted values from the model andthe data on the same plot. 4. Plot the residuals vs. load. 5. Plot the residuals vs. the predicted values. 6. Do a 4-plot of the residuals. 7. Refer tothe numerical output from the fit. 1. The structure inthe plot indicates a quadratic model would better describe the data. 2.The quadratic fit was carried out. Remember to do the graphical residual analysis before trying to interpret the numerical output. 3. The superposition of the predicted and observed values again suggests the model is ok. 4. The residuals appear random, suggesting the quadratic model is ok. 5. The plot of the residuals vs. the predicted values also suggests the quadratic model is ok. 6. None of these plots indicates a problem with the model. 7. The small lack-of-fit F statistic (<1) confirms that the quadratic model fits the data. 4.6.1.11. Work This Example Yourself http://www.itl.nist.gov/div898/handbook/pmd/section6/pmd61b.htm (2 of 3) [5/1/2006 10:22:37 AM] 4. Use the model to make a calibrated measurement. 1. Observe a new deflection value. 2. Determine the associated load. 3. Compute the uncertainty of the load estimate. 1. The new deflection is associated with an unobserved and unknown load. 2. Solving the calibration equation yields the load value without having to observe it. 3. Computing a confidence interval for the load value lets us judge the range of plausible load values, since we know measurement noise affects the process. 4.6.1.11. Work This Example Yourself http://www.itl.nist.gov/div898/handbook/pmd/section6/pmd61b.htm (3 of 3) [5/1/2006 10:22:37 AM] 4. ProcessModeling 4.6. Case Studies inProcessModeling 4.6.2.Alaska Pipeline Non-Homogeneous Variances This example illustrates the construction of a linear regression model for Alaska pipeline ultrasonic calibration data. This case study demonstrates the use of transformations and weighted fits to deal with the violation of the assumption of constant standard deviations for the random errors. This assumption is also called homogeneous variances for the errors. Background and Data1. Check for a Batch Effect2. Fit Initial Model3. Transformations to Improve Fit and Equalize Variances4. Weighting to Improve Fit5. Compare the Fits6. Work This Example Yourself7. 4.6.2. Alaska Pipeline http://www.itl.nist.gov/div898/handbook/pmd/section6/pmd62.htm [5/1/2006 10:22:37 AM] 4. ProcessModeling 4.6. Case Studies inProcessModeling 4.6.2. Alaska Pipeline 4.6.2.1.Background and Data Description of Data Collection The Alaska pipeline data consists of in-field ultrasonic measurements of the depths of defects inthe Alaska pipeline. The depth of the defects were then re-measured inthe laboratory. These measurements were performed in six different batches. The data were analyzed to calibrate the bias of the field measurements relative tothe laboratory measurements. In this analysis, the field measurement is the response variable andthe laboratory measurement is the predictor variable. These data were provided by Harry Berger, who was at the time a scientist for the Office of the Director of the Institute of Materials Research (now the Materials Science and Engineering Laboratory) of NIST. These data were used for a study conducted for the Materials Transportation Bureau of the U.S. Department of Transportation. Resulting Data Field Lab Defect Defect Size Size Batch 18 20.2 1 38 56.0 1 15 12.5 1 20 21.2 1 18 15.5 1 36 39.0 1 20 21.0 1 43 38.2 1 45 55.6 1 65 81.9 1 43 39.5 1 38 56.4 1 33 40.5 1 4.6.2.1. Background and Data http://www.itl.nist.gov/div898/handbook/pmd/section6/pmd621.htm (1 of 4) [5/1/2006 10:22:37 AM] [...]... always a good idea to plot the raw data first The following is a scatter plot of the raw data This scatter plot shows that a straight line fit is a good initial candidate model for these data Plot by Batch These data were collected in six distinct batches The first step inthe analysis is to determine if there is a batch effect In this case, the scientist was not inherently interested inthe batch That... between the measurements than the other batches do This is also reflected inthe significantly lower residual standard deviation for batch six shown inthe residual standard deviation plot (lower right), which shows the residual standard deviation versus batch The slopes all lie within a range of 0.6 to 0.9 inthe linear slope plot (lower left) andthe intercepts all lie between 2and 8 inthe linear intercept... address the issue of trying to linearize the fit Plot of Common Transformations to Obtain Homogeneous Variances The first step is to try transforming the response variable to find a tranformation that will equalize the variances In practice, the square root, ln, and reciprocal transformations often work well for this purpose We will try these first In examining these plots, we are looking for the plot... [5/1/2006 10:22:38 AM] 4.6.2.3 Initial Linear Fit 4 ProcessModeling 4.6 Case Studies inProcessModeling 4.6.2 Alaska Pipeline 4.6.2.3 Initial Linear Fit Linear Fit Output Based on the initial plot of the data, we first fit a straight-line model tothe data The following fit output was generated by Dataplot (it has been edited slightly for display) LEAST SQUARES MULTILINEAR FIT SAMPLE SIZE N = 107... of the six batches on a single page Each of these plots shows a similar pattern Linear Correlation and Related Plots We can follow up the conditional plot with a linear correlation plot, a linear intercept plot, a linear slope plot, and a linear residual standard deviation plot These four plots show the correlation, the intercept and slope from a linear fit, andthe residual standard deviation for linear... For the pipeline data, we chose approximate replicate groups so that each group has four observations (the last group only has three) This was done by first sorting the data bythe predictor variable and then taking four points in succession to form each replicate group Using the power function model with the data for estimating the weights, Dataplot generated the following output for the fit of ln(variances)... plot shows that the ln transformation of the predictor variable is a good candidate model Box-Cox Linearity Plot The previous step can be approached more formally bythe use of the Box-Cox linearity plot The value on the x axis corresponding tothe maximum correlation value on the y axis indicates the power transformation that yields the most linear fit http://www.itl.nist.gov/div898/handbook/pmd/section6/pmd624.htm... Transformations to Improve Fit and Equalize Variances Transformations In regression modeling, we often apply transformations to achieve the following two goals: 1 to satisfy the homogeneity of variances assumption for the errors 2to linearize the fit as much as possible Some care and judgment is required in that these two goals can conflict We generally try to achieve homogeneous variances first and then address... Pipeline 4.6.2.5 Weighting to Improve Fit Weighting Another approach when the assumption of constant standard deviation of the errors (i.e homogeneous variances) is violated is to perform a weighted fit In a weighted fit, we give less weight tothe less precise measurements and more weight to more precise measurements when estimating the unknown parameters inthe model Fit for Estimating Weights For the. .. Homogeneous These summary plots, in conjunction with the conditional plot above, show that treating the data as a single batch is a reasonable assumption to make None of the batches behaves badly compared tothe others and none of the batches requires a significantly different fit from the others These two plots provide a good pair The plot of the fit statistics allows quick and convenient comparisons of the . 15.5 2 36 38.8 2 20 19. 5 2 43 38 .0 2 45 55 .0 2 65 80. 0 2 43 38.5 2 38 55.8 2 33 38.8 2 10 12. 5 2 50 80. 4 2 10 12. 7 2 50 80. 9 2 15 20 .5 2 53 55 .0 2 15 19 .0 3 37 55.5 3 15 12. 3. Data http://www.itl.nist.gov/div 898 /handbook/pmd/section6/pmd 621 .htm (1 of 4) [5/1 / 20 06 10 :22 :37 AM] 10 14.3 1 50 81.5 1 10 13.7 1 50 81.5 1 15 20 .5 1 53 56 .0 1 60 80. 7 2 18 20 .0 2 38 56.5 2 15 12. 1 2 20 19. 6 2 . (APPROX. ST. DEV.) T VALUE 1 A0 0. 673618E -03 (0. 107 9E -03 ) 6 .2 2 A1 0. 7 3 20 59E -06 (0. 1578E - 09 ) 0. 46E +04 3 A2 -0. 31 608 1E-14 (0. 4867E-16) -65. RESIDUAL STANDARD DEVIATION = 0. 00 0 20 51768 RESIDUAL DEGREES