User:Galaxy1F10/sandbox

The Malmquist Bias refers to an effect in observational astronomy which leads to the preferential detection of intrinsically bright objects. It was first made commonly known and popularized by Swedish Astronomer Gunnar Malmquist (1893-1982) in 1922, then much further elaborated upon in his follow-up work in 1925. In statistics, this bias is referred to as a selection bias and affects data collected in a brightness (or equivalently apparent magnitude) limited survey (referred to as being magnitude limited), where stars below a certain brightness are neglected. Since observed objects (stars, galaxies, etc.) appear dimmer when further away, the brightness that we measure will fall off quickly with distance until they are neglected for passing below the cut-off threshold. As such, objects which are more luminous, or intrinsically brighter, can be seen from a greater distance before they fall below this survey threshold, creating an artificial trend of increasing average luminosity, and other related quantities, with distance. This effect has lead to many spurious claims in the field of astronomy, and realizing and properly correcting for these effects has become an area of great focus.

Understanding the Bias


For a derivation of the Malmquist Bias, please see pages 111-15 in "Galactic Astronomy" by James Binney and Michael Merrifield.

Magnitudes and Brightness
In everyday life it is easy to see that light dims as it gets farther away. This can be seen with car headlights, candles, flashlights, and many other lit objects. This dimming follows the inverse square law which states that the brightness of an object decreases as 1/d2, where d is the distance between you and the object. Starlight also follows the inverse square law. Light rays leave the star in equal amounts in all directions. The light rays create a sphere of light surrounding the star. As time progresses, the sphere grows as the light rays travel through space away from the star. While the sphere of light grows, the number of light rays stays the same. So, the amount of light per surface area (called flux in astronomy) of the sphere decreases with time. When observing a star, only the light rays that are in the given area being viewed can be detected. This is why a star appears dimmer the farther away it is. If there are two stars with the same intrinsic brightness (called luminosity in astronomy) each at a different distance, the closest star will appear the brightest while the furthest will appear dimmer. In astronomy, the apparent brightness of a star, or any other luminous object, is called the apparent magnitude. The apparent magnitude depends on the intrinsic brightness, also called absolute magnitude, of the object and its distance. If all stars had the same luminosity, then we could easily determine the distance from earth to a particular star. However, stars have a wide range in luminosities. Therefore, it can be difficult to distinguish between a very luminous star that is very far away from a less luminous star that is closer. This is why it is so hard to calculate the distance to astronomical objects.

Source of the Malmquist Bias


Typically, when we look at an area of sky filled with stars, only stars that are brighter than a limiting apparent magnitude can be seen. As discussed above, the very luminous stars that are farther away will be seen as well as luminous and faint stars that are closer by. There will appear to be more luminous objects within a certain distance from Earth than faint objects. However, there are many more faint stars, they simply cannot be seen because they are so dim. The bias towards luminous stars when observing a patch of sky affects our calculations of the average absolute magnitude and average distance to a group of stars. Because of the luminous stars that are at a further distance, it will appear as if our sample of stars is farther away than it actually is, and that each star is intrinsically brighter than it actually is. This effect is known as the Malmquist Bias. When studying a sample of luminous objects, whether they be stars or galaxies, it is important to correct for the bias towards the more luminous objects. There are many different methods that can be used to correct for the Malmquist Bias as discussed below.

Correction Methods
The ideal situation is to somehow avoid this bias from entering a data survey. However, magnitude limited surveys are the simplest to perform, and other methods are difficult to put together, with their own uncertainties involved, and may be impossible for first observations of objects. As such, many different methods exist to attempt to correct the data, removing the bias and allowing the survey to be usable. The methods are presented in order of increasing difficulty, but also increasing accuracy and effectiveness.

Limiting the Sample
The simplest method of correction is to only use the non-biased portions of the data set, if any, and throw away the rest of the data. Depending on the limiting magnitude selected, there may be a range of distances in the data set over which all objects of any possible absolute magnitude could be seen. As such, this small subset of data should be free of the Malmquist bias. This is easily accomplished by cutting off the data at the edge of where the lowest absolute magnitude objects would be hitting the limiting magnitude. Unfortunately, this method would waste a great deal of good data, and would limit the analysis to nearby objects only, making it less than desirable. (Looking at the figure to the right, we could only keep the first fifth of the data, going along distance, before a data point is lost to the bias.) Of course, this method assumes that distances are known with relatively good accuracy, which as mentioned before, is a difficult process in astronomy.

Traditional Correction
The first solution, proposed by Malmquist in his 1922 work, was to correct the calculated average absolute magnitude ($$\overline{M}$$) of the sample back to the true average absolute magnitude (M0). The correction would be $$\overline{\Delta M} = \overline{M}- M_0 $$ To calculate the bias correction, Malmquist, and others following this method follow six main assumptions: i. There exists no interstellar absorption, or that the stuff in space between stars (like gas and dust) is not affecting the light and absorbing parts of it. This assumes that the brightness is simply following the inverse square law, mentioned above. ii. The luminosity function (Φ) is independent of the distance (r). This basically just means that the universe is the same everywhere, and that stars will be similarly distributed somewhere else as they are here. iii. For a given area on the sky, or more specifically the celestial sphere, the spatial density of stars (ρ) depends only on distance. This assumes that there are the same number of stars in each direction, the direction we are looking won't change the number of stars observed. iv. There is completeness, meaning the sample is complete and nothing is missed, to an apparent magnitude limit (mlim). v. The luminosity function can be approximated as a Gaussian function, centered on an intrinsic mean absolute magnitude M0. vi. Stars are of the same spectral type, with intrinsic mean absolute magnitude M0 and dispersion σ. Obviously, this is a very ideal situation, with the final assumption being particularly troubling, but allows for an approximate correction of simple form. By integrating the luminosity function over all distances and all magnitudes brighter than mlim, $$\overline{\Delta M} = - \sigma^2 \frac{\operatorname{d} \ln A(m_{lim})}{\operatorname{d} m_{lim}}$$ where A(mlim) is the total number of stars brighter than mlim. If the spatial distribution of stars can be assumed to be homogeneous, this relation is simplified even further, to the generally accepted form of $$ \overline{\Delta M} = - 1.382\sigma^2$$

Multiple-Band Observation Corrections
The traditional method assumes that the measurements of apparent magnitude and the measurements from which distance is determined are from the same band, or predefined range, of wavelengths (e.g. the H band, a range of infrared wavelengths from roughly about 1300 - 2000 nanometers), and this leads to the correction form of cσ2, where c is some constant. Unfortunately, this is rarely the case, as many samples of objects are selected from one wavelength band but the distance is calculated from another. For example, astronomers frequently select galaxies from B-band catalogs, which are the most complete, and use these B band magnitudes, but the distances for the galaxies are calculated using the Tully-Fisher relation and the H band. When this happens, the square of the variance is replaced by the covariance between the scatter in the distance measurements and in the galaxy selection property (e.g. magnitude).

Volume Weighting
Another fairly straightforward correction method is to use a weighted mean to properly account for the relative contributions at each magnitude. Since the objects at different absolute magnitudes can be seen out to different distances, we can weight each point's contribution to the average absolute magnitude or to the luminosity function by 1/Vmax, where Vmax is the maximum volume over which the objects could have been seen. Objects with a greater absolute magnitude will have a larger volume over which they could have been detected, before falling under the threshold, and thus will be given less weight through this method since these bright objects will be more fully sampled. The maximum volume can be approximated as a sphere with radius found from the distance modulus, using the object’s absolute magnitude and the limiting apparent magnitude. However, there are two major complications to calculating Vmax. First is the completeness of the area covered in the sky, which is the percentage of the sky that the objects were taken from. A full sky survey would collect objects from the entire sphere, 4π steradians, of sky but this is usually impractical, both from time constraints and geographical limitations (ground based telescopes can only see a limited amount of sky due to the Earth being in the way). Instead, astronomers will generally look at a small patch or area of sky and then infer universal distributions by assuming that space is either isotropic, that it is generally the same in every direction, or is following a known distribution, such as that we will see more stars looking toward the center of a galaxy than looking directly away. Generally, the volume can be simply scaled down by the percentage we actually viewed, giving the correct number of objects to volume relation. This effect could potentially be ignored in a single sample, all from the same survey, as the objects will basically all be altered by the same numerical factor, but it is incredibly important to account for in order to be able to compare between different surveys with different sky coverage. The second complication is cosmological concerns of redshift and the expanding universe, which must be considered when looking at distant objects. In these cases, we are interested in the comoving distance, which is a constant distance between two objects assuming that they are moving away from each other solely with the expansion of the universe, known as the Hubble flow. In effect, this comoving distance is the object's separation if we neglected the universe's expansion, and it can be easily related to the actual distance by accounting for how it would have expanded. The comoving distance can be used to calculate the respective comoving volume as usual, or a relation between the actual and comoving volumes can also be easily established. If z is the objects redshift, relating to how far emitted light is pushed toward the red spectrum as a result of the object moving away from us with the universal expansion, DA and VA are the actual distance and volume (or what would be measured today) and DC and VC are the comoving distance and volumes that we are looking for, then

$$ D_C = D_A (1 + z)$$ $$ V_C = V_A (1 + z)^3 $$ A large downside of the volume weighting method is its sensitivity to large-scale structures, or parts of the universe with more or less objects than average, such as a star cluster or a void. Having very overdense or underdense regions of objects will cause an inferred change in our average absolute magnitude and luminosity function, according with the structure. This is a particular issue with the faint objects in calculating a luminosity function, as their smaller maximum volume means that a large-scale structure therein will have a large impact. Brighter objects with large maximum volumes will tend to average out and approach the correct value in spite of some large-scale structures.

Advanced Methods
Many more methods exist which become increasingly complicated and powerful in application. A few of the most common are summarized here, with more specific information found in the references.

Stepwise Maximum Likelihood Method
This method is based off of the distribution functions of objects (such as stars or galaxies), which is a relation of how many objects we expect to see with certain intrinsic brightnesses, distances, or other fundamental values. Each of these values have their own distribution function, and we can combine them with a random number generator to create a theoretical sample of stars. This method takes the distribution function of distances as a known, definite quantity, and then allows the distribution function of absolute magnitudes to change. In this way, it can check different distribution functions of the absolute magnitudes against the actual distribution of detected objects, and find the relation that provides the maximum probability of recreating the same set of objects. By starting with the detected, biased distribution of objects and the appropriate limits to detection, this method recreates the true distribution function. However, this method requires heavy calculations and generally relies on computer programs.

Schechter Estimators
Paul Schechter, an American Astronomer, found a very interesting relation between the logarithm of a spectral line's line width and its apparent magnitude, when working with galaxies. In an perfect, stationary case, spectral lines should be incredibly narrow bumps, looking like lines, but motions of the object such as rotation or motion in our line of sight will cause shifts and broadening of these lines. The relation is found by starting with the Tully-Fisher relation, wherein the distance to a galaxy is related to its apparent magnitude and its velocity width, or the 'maximum' speed of its rotation curve. From macroscopic Doppler broadening, we can relate the logarithm of the line width of an observed spectral line to the width of the velocity distribution. If we can assume that we know the distances very well, then we can say that the absolute magnitude and the line width are closely related. For example, working with the commonly used 21cm line, an important line relating to neutral hydrogen, the relation is generally calibrated with a linear regression and given the form $$ \overline{M} = \alpha P + \beta$$ where P is log(line width) and α and β are constants. The reason that this estimator is useful is that the inverse regression line is actually unaffected by the Malmquist Bias, so long as the selection effects are only based on magnitude. As such, the expected value of P given M will be unbiased and will give an unbiased log distance estimator. This estimator has many properties and ramifications which can make it a very useful tool.

Complex Mathematical Relations
Advanced versions of the traditional correction mentioned above can be found in the literature, limiting or changing the initial assumptions to suit the appropriate author's needs. Often, these other methods will provide very complicated mathematical expressions with very powerful but specific applications. For example, work by Luri et al. found a relation for the bias for stars in a galaxy which relates the correction to the variance of the sample and the apparent magnitude, absolute magnitude, and the height above the galactic disk. This gave a much more exact and accurate result, but also required an assumption about the spatial distribution of stars in the desired galaxy. While useful individually, and there are many examples published, these have very limited scope and are not generally as broadly applicable as the other methods mentioned above.

Applications


Anytime a magnitude limited sample is used, one of the methods described above should be used to correct for the Malmquist bias. For instance, when trying to obtain a luminosity function, calibrate the Tully-Fisher relation, or when trying to obtain the value of the hubble constant the Malmquist bias can strongly change your results. The luminosity function gives the number of stars or galaxies per luminosity or absolute magnitude bin. When using a magnitude limited sample, the number of faint objects is underrepresented as discussed above. This shifts the peak of the luminosity function from the faint end to a brighter luminosity and changes the shape of the luminosity function. Typically, the Volume Weighting method is used to correct the Malmquist bias so that the survey is equivalent to a distance limited survey rather than a magnitude limited survey. The figure to the right shows two luminosity functions for an example population of stars that is magnitude limited. The dashed luminosity function shows the affect of the Malmquist bias, while the solid line shows the corrected luminosity function. Malmquist bias drastically changes the shape of the luminosity function. Another application that is affected by the Malmquist bias is the Tully-Fisher relation which relates the luminosity of spiral galaxies to their respective velocity width. If a nearby cluster of galaxies is used to calibrate the Tully-Fisher relation, and then that relation is applied to a distant cluster, the distance to the farther cluster will be systematically underestimated. By underestimating the distance to clusters, anything found using those clusters will be incorrect; for example, when finding the value of the Hubble constant. These were just a few examples where the Malmquist bias can strongly affect results. As mentioned above, anytime a magnitude limited sample is used the Malmquist bias needs to be corrected for. A correction is not limited to just the examples above.

Alternatives
Some alternatives do exist to attempt to avoid the Malmquist bias, or to approach it in a different way, with a few of the more common ones summarized below.

Distance Limited Sampling
One ideal method to avoid the Malmquist bias is to only select objects within a set distance, and have no limiting magnitude but instead observe all objects within this volume. Clearly, in this case, the Malmquist bias is not an issue as the volume will be fully populated and any distribution or luminosity function will be appropriately sampled. Unfortunately, this method is not always practical. Finding distances to astronomical objects is very difficult, and even with the aid of objects with easily determined distances, called standard candles, and similar things, there are great uncertainties. Further, distances are not generally known for objects until after they have already been observed and analyzed, and so a distance limited survey is usually only an option for a second round of observations, and not initially available. Finally, distance limited surveys are generally only possible over small volumes where we can be certain of distances, and thus it is not practical for large surveys.

Homogeneous and Inhomogeneous Malmquist Correction
This method attempts to correct the bias again, but through very different means. Rather than trying to fix the absolute magnitudes, this method takes the distances to the objects as being the random variables and attempts to rescale those. In effect, rather than giving the stars in the sample the correct distribution of absolute magnitudes (and average absolute magnitude), it attempts to 'move' the stars such that they would have a correct distribution of distances. Ideally, this should have the same end result as the magnitude correction methods and should result in a correctly represented sample. In either the homogeneous or inhomogeneous case, the bias is defined in terms of a prior distribution of distances, the distance estimator, and the likelihood function of these two being the same distribution. The homogeneous case is much simpler and rescales the raw distance estimates by a constant factor. Unfortunately, this will be very insensitive to large scale structures such as clustering as well as observational selection effects, and will not give a very accurate result. The inhomogeneous case attempts to correct this by creating a more complicated prior distribution of objects by taking into account structures seen in the observed distribution. In both cases though, it is assumed that the probability density function is Gaussian with constant variance and a mean of the true average log distance, which is far from accurate. However, this method is debated and may not be accurate in any implementation due to uncertainties in calculating the raw, observed distance estimates causing the assumptions to use this method to be invalid.

Historical Alternatives
The term 'Malmquist bias' has not always been definitively used to refer to the bias outlined above. As recently as the year 2000, the Malmquist bias has appeared in the literature clearly referring to a different types of bias and statistical effect. The most common of these other uses is to refer to an effect that takes place with a magnitude limited sample, but in this case the low absolute magnitude objects are overrepresented. In a sample with a magnitude limit, there will be a margin of error near that boundary where objects that should be bright enough to make the cut are excluded and objects that are slightly below the limit are instead included. Since low absolute magnitude objects are more common than brighter ones, and since these dimmer galaxies are more likely to be below the cutoff line and scattered up, while the brighter ones are more likely to be above the line and scattered down, an over-representation of the lower luminosity objects result. However, in modern day literature and consensus, the Malmquist bias refers to the effect outlined above.