The fourth factor to consider when optimizing quality inspection plans is the inspection methods, such as sampling, testing, measuring, observing, or checking. These methods determine the accuracy and reliability of inspection, as well as the inspection costs and benefits. For example, sampling is a method that involves selecting a representative subset of the product population for inspection, which can save time and money, but also introduce sampling errors or biases. Testing is a method that involves applying some stimuli or conditions to the product to evaluate its response or behavior, which can reveal hidden or latent defects, but also damage or degrade the product. Measuring is a method that involves quantifying some attributes or parameters of the product, such as dimensions, weight, temperature, or pressure, which can provide objective and precise data, but also require calibration and verification of the measuring instruments. Observing is a method that involves inspecting the product visually or with the aid of some devices, such as cameras, microscopes, or scanners, which can capture the appearance or surface features of the product, but also miss the internal or functional aspects. Checking is a method that involves comparing the product with some reference or standard, such as a specification, a drawing, a model, or a sample, which can ensure the conformity or consistency of the product, but also ignore the variability or diversity of the product.