martes, 27 de julio de 2010
NUMERICAL METHODS
STEPS OF SOLVING AN ENGINEERING PROBLEM ( Video )
This video teaches you the steps of solving an engineering problem- define the problem, model the problem, solve, and implementation of the solution.
BASIC MATHEMATICAL MODELING
All models divide the population into states (e.g. susceptible and infected) and define the process and rate of movement between those states. Deterministic models are usually built on group aggregates or macro-level states, while stochastic simulation models are usually built to reflect the micro-level states occupied by discrete individual persons. The primary difference between deterministic and stochastic models is how they define the movement between states. Deterministic models define the dynamics using the average rate of transition between states. Stochastic models define the dynamics using the probability that an individual makes the transition from one state to another.
Analytic models of both sorts (deterministic and stochastic) are typically regarded as the ideal, since they reveal a process in terms of simple cause and effect. Many infectious processes are not simple in that way, however, and the assumptions made to gain tractability often come at the cost of ignoring important parts of the process, and thus failure to properly project the outcomes of interest. As computing power has become more widely available, the need for tractability has declined, and computational-deterministic models have become the workhorse of mathematical epidemiology. Their use has led to substantial insight into the population dynamics of HIV and other STIs, as well as a wide range of other infectious diseases. Increasingly, the limitations of deterministic models are leading to the adoption of computational-stochastic or “microsimulation” methods. These methods are better for representing heterogeneities in the transmission process, behavioral or biological, and they are the only way to accurately represent something as simple as a person having multiple ongoing (“concurrent”) partnerships. The advantages of microsimulation are discussed in detail by van Imhoff and Post.(1998) The primary disadvantages are that it requires richer inputs, and may require significantly more computational capacity.
APROXIMATIONS AND ERRORS
Meanings and Example
Significant figures
0.0001845
0.001845
The zeros are not always significant figures as they can be used alone to locate the decimal point. The numbers above have four significant figures. When zeros are included in large numbers, is not clear how many zeros are significant if any.
The concept of significant figures has two important implications for the study of numerical methods .
When making some shots in a target shooting accuracy refers to the magnitude of the spread of the bullets. Accuracy refers to the approach of a number or measure the true value is supposed to represent. The inaccuracy (known as bias) is defined as a systematic departure from the truth.
Estimated value = true value + error
Numerical error is equal to the difference between the true value and approximate value, ie
Eu = true value - approximate value
Example:
Suppose we have to measure the length of a bridge and a rivet, obtained 9999 and 9 cm, respectively. If the values are true 10 000 and 10 cm, calculate: a) wrong and B) the percentage relative error of each case:
Solution: a) the error in the measurement of the bridge is:
Eu = 10 000 - 9999 = 1 cm
And for the rivet is:
Eu = 10-9 = 1 cm
b) The percentage relative error for the bridge is:
Eu = 1 / 10 000 100% = 0.01%
And for the rivet is:
Eu = 1 / 10 100% = 10%
Therefore although both measures have an error of 1 cm, the relative error percentage is much larger rivet. We conclude that it has done a good job as far from the bridge, while the estimate for the fastener leaves much to be desired.
Fractional relative error = error.
True value
The relative error can also be multiplied by 100% to express it as:
Eu = true 100% error
True value
Where Eu denotes the percentage relative error
I) the approximation is larger than the true value (or the previous approach is greater than the current approach), the error is negative, if the approximation is less than the true value, the error is positive. Also in the equations , the denominator may be less than zero, which leads to a negative error.