Wednesday, September 22, 2010
Impressions vs Forms
The ancient Greek philosophers assigned a greater reality to the forms than our perceptions of them. The problem is similar to that of doing fits with the patterns being somewhat imperfect. But the same pattern may be applicable to a number of similar objects (in our case diodes) with different coefficients in the characteristic equations.
In The Sophist Plato uses an "Eleatic Stranger" with extraordinary skill to try to capture what we mean by a sophist. The Stranger first uses the dialect method in an attempt to pin down the sophist but he proves to be an elusive quarry. He appears to be many things at once. After studying "being" and "not-being" and what we mean by these terms he comes to the conclusion that the sophist is a pretender. He does not possess or impart true knowledge. The dialectic is a process of defining a pair of cases to which the object in question either belongs or does not in order to specify what it is. The Stranger looks down on the Sophist and is cutting him at the same time. The Sophist does not rank with the Philosopher.
The case is not quite so bad with the fits but one still can't trust them completely. Theory might help narrow down equations to be fitted but measurements usually have errors associated with them and can produce unavoidable residuals as a result.
Saturday, September 18, 2010
5.1 V Zener Diode Conductance and Estimated Error in Voltages
This conductance can be used to estimate the errors in the voltage measurements and compute corrections. The formula is ΔV = ΔI/G. The results for the steep part of the V-I characterists is shown below. This shows that even though the residuals are relatively large the corrections to the voltage needed to place the points on the curve are within about 1/2 the precision of the measurements and appear to be just round off errors.
The residuals for these points were more randomly distributed. The "corrections" for lower voltages were larger where the curve was flatter and where the fit appeared to deviate somewhat from the data. The conclusion is that relatively larger residuals are to be expected where the slope of the curve is relatively steep.
*edit: This is not the usual conductance which is defined in terms of Ohm's Law, G = I/V. My terminology is somewhat lax. A more appropriate expression might be "small signal conductance" or "differential conductance."
Thursday, September 16, 2010
Does Least Squares Make the Best Choice for Coefficients?
For the fits of the data for the Zener diode I used Mathcad's genfit function. For the composite functions of the last fit the individual fits can also be done by fitting lines in a log-log plot*. One of the problems that I encountered in doing the fits is that the fitted function tended to cut corners in the region of the "knee" where the characteristics change from lower currents to higher ones. As a result there is a correlation among neighboring residuals there. Intuitively one would expect that the residuals would be randomly distributed with respect to the fitted curve for the best fit. There seemed to be something wrong with the residuals.
I decided to give the rms residual more control in doing the fit. I tried dividing the data into sections with each section being represented by a term in the fit function. The result is that the residuals differed for each region. This method also seemed somewhat arbitrary since the terms for the function depended on how the data was partitioned. The results suggested the use of a Taylor series for the current involving exponential functions. Fitting a quadratic function of the first fit didn't work. The difference between the fit for lower currents and the data looked closer to an exponential function that was fairly linear for lower currents so I tried multiplying the current by a factor involving an exponential term. That worked much better than the Taylor series. Varying the number of data points included in the first fit optimized the final fit. The rms residual was closer to the result of a tedious process involving a search for the coefficients in a region of fixed size and a random choice from among a few of the lowest values of the sum of the squares of the residuals to avoid getting "stuck in a loop." (The results of the second fit method weren't consistent. The coefficients posted were the best values found.)
The results show the utility of the residuals in analyzing the results of a fit and comparing one fit method with another.
The economists like to use linear models for optimization problems but nonlinear models may prove to be more useful. Fits can be used to find approximate functions for observable relations in a theory. Doing what is best for the individual is not necessisarily at odds with doing what is best for the group. The problem may be similar to that of finding the best fit for a set of data.
*edit: One would have to do a semi-log plot. For the first fit involving the lower curve one would also have to ignore the small constant, u_0, and plot log(I1/mA) vs V. For the second plot it would be log(I2/I1 - 1) vs I1 (I2>I1) with I1 being the current in the first fit and I2 that of the second fit.
Impossible Choices
If the choice is left solely to individuals though some people can end up benefiting at the expense of others. The most powerful factions end up being self-serving and disregard the interests of others.
Arrow also points out that capital is not the only way to improve productivity. Technological innovation can substitute for capital. This includes the arrangement of the workplace. Improved economy has its benefits. There are other ways of improving. One is education which improves the value of workers. And an economic slowdown may indicate that there are forces at work which tend to obstruct progress.
Monday, September 13, 2010
The Problems With Fitting Zener Diode Characteristics
The fit above consisted of two fits, the first for current of the lower part of the curve and a second fit to determing the diode current as a function of the first current. Both curves are easy to fit. The rms residual is still large compared to the precision of the measurements which was 0.01 mA for the current and the 0.01 volts for the voltage. In the plot of the residuals below one sees large deviations at the higher currents. The relative deviations (residual/current) are of the same magnitude for all currents
The current being a function of a current is consistent with a controlled breakdown. There is also a certain amount of noise present and the current fluctuates some due to a statistical component. The largest contribution to the rms deviation is from the upper portion of the curve.
Supplemental: The correlation among neighbouring residuals near I = 0 mA indicates that the fitted functions are not quite right but this error is small compared to larger residuals which may have contributed to errors in the values of u and v.