EXONEST: The Bayesian Exoplanetary Explorer

The fields of astronomy and astrophysics are currently engaged in an unprecedented era of discovery as recent missions have revealed thousands of exoplanets orbiting other stars. While the Kepler Space Telescope mission has enabled most of these exoplanets to be detected by identifying transiting events, exoplanets often exhibit additional photometric effects that can be used to improve the characterization of exoplanets. The EXONEST Exoplanetary Explorer is a Bayesian exoplanet inference engine based on nested sampling and originally designed to analyze archived Kepler Space Telescope and CoRoT (Convection Rotation et Transits plan\'etaires) exoplanet mission data. We discuss the EXONEST software package and describe how it accommodates plug-and-play models of exoplanet-associated photometric effects for the purpose of exoplanet detection, characterization and scientific hypothesis testing. The current suite of models allows for both circular and eccentric orbits in conjunction with photometric effects, such as the primary transit and secondary eclipse, reflected light, thermal emissions, ellipsoidal variations, Doppler beaming and superrotation. We discuss our new efforts to expand the capabilities of the software to include more subtle photometric effects involving reflected and refracted light. We discuss the EXONEST inference engine design and introduce our plans to port the current MATLAB-based EXONEST software package over to the next generation Exoplanetary Explorer, which will be a Python-based open source project with the capability to employ third-party plug-and-play models of exoplanet-related photometric effects.


Introduction
We are currently enjoying an unprecedented era of exploration and discovery. July of 2015 saw the New Horizons probe's fly-by of Pluto and Charon, which marked the end of mankind's initial exploration of the solar system. We are now beginning to explore the neighboring star systems by discovering and characterizing their planets (exoplanets). As stated in the 2014 NASA Strategic Plan, "We are navigating a voyage of unprecedented scope and ambition: seeking to discover and study planets orbiting around other stars and to explore whether they could harbor life" NASA (2014). To date, we have identified 4496 exoplanet candidates of which 3502 are confirmed planets in over 1648 star systems Caltech (2017).
One of the most successful missions to date is the Kepler Space Telescope (Kepler), which was designed to monitor the light intensity (photometry) from approximately 150,000 stars in the constellations of Cygnus and Lyra Borucki et al. (2010). While the characterization of exoplanets in terms of the chemistry and the detection of life will require a serious commitment to spectroscopic studies, photometry will continue to play an important role in exoplanet detection and characterization.  Hippke and Angerhausen (2015) and the Wide Field Infrared Survey Telescope (WFIRST) NASA (2016). Increasingly accurate representations of photometric effects will become more important with these higher precision missions.
In this paper, we summarize the EXONEST software package for detecting and characterizing exoplanets Placek et al. (2014); Placek (2014), as well as introduce our new efforts toward more careful modeling of reflected light, refracted light and atmospheric effects and their incorporation into the next generation of the Exoplanetary Explorer software package. We are currently focused on porting and expanding the MATLABbased EXONEST software package into the next generation Exoplanetary Explorer software package, which will accommodate multiple planet systems, three-body and multi-body orbital mechanics, as well as more subtle photometric effects. The Exoplanetary Explorer will be a Python-based open source project with the capability to employ third-party plug-andplay models of exoplanet-related photometric effects.

EXONEST
The EXONEST software package (Figure 1) was originally developed as a part of Ben Placek's Ph.D. thesis Placek et al. (2014); Placek (2014). Written in MATLAB, EXONEST consists of a core set of stellar and planetary models, a nested sampling-based Bayesian inference engine that can utilize the original nested sampling algorithm Skilling (2004Skilling ( , 2006; Sivia and Skilling (2006), the MultiNest variant Feroz et al. (2009Feroz et al. ( , 2011Feroz et al. ( , 2013 and the Metropolis-Hastings Markov chain Monte Carlo (MCMC) sampling algorithm Metropolis et al. (1953); Hastings (1970). EXONEST can also accept a set of plug-and-play models, which consist of orbital models, instrument likelihood functions, transit models, a set of photometric models and any additional user-defined models. This is currently implemented by modifying the code by calling one or more subroutines. In the future, these options will be selected, or unselected, via a run file and/or a graphical user interface. EXONEST incorporates an efficient orbit integrator, as well as detailed models for four photometric effects: reflected light, thermal emissions, Doppler boosting or beaming and ellipsoidal variations of the host star Placek et al. (2014); Placek (2014). Both likelihood functions and priors on the parameter values can be specified.
In the following sections, we will summarize the orbital and photometric models employed by EXONEST and our current work to extend and improve them. We will then conclude by discussing the Bayesian inference engine and the need for improvement.

Orbital Models
EXONEST incorporates an efficient orbit integrator that can accommodate both circular and elliptical orbits Brown (2009), known as Keplerian orbits, producing both the star-planet distance r(t) and the orbital phase θ(t) as a function of time. The current implementation of EXONEST is designed to accommodate one exoplanet per system so that only one period of the orbit need be integrated. The data are phase-wrapped to decrease computation time. The planet moves on an elliptical orbit with the star located at one focus. The semimajor axis, a, of the ellipse is used to characterize the star-planet distance. The argument of the periastron, ω, is the angle describing how the periastron (point of closest approach) is rotated with respect to the observer. The true anomaly, ν, describes the position of the planet along the orbit in the frame of the host star with the origin at the periastron. (B) The angle θ(t) indicates the orbital phase, which is defined as the angle between the planet-star vector and the planet-Earth vector.
The basic anatomy of a Keplerian orbit is illustrated in Figure 2. The star is situated at the focus of the elliptical orbit. The periastron (point of closest approach) may be rotated by an angle ω, which is called the argument of the periastron, and the position of the planet along the orbit is designated by the angle from periastron, ν, which is called the true anomaly. The length of the semimajor axis, a, is used to characterize the star-planet distance, r(t), which varies as a function of the true anomaly according to: where e is the eccentricity of the orbit. The upcoming re-write of the EXONEST code will accommodate multiple exoplanets in different orbits. This is accomplished by integrating a single period of each exoplanet orbit and labeling the time series of the data in terms of the orbital phase of each orbit.
A full three-body orbital model has been implemented for EXONEST. The model can handle cases where the planets do or do not orbit in a common plane. Despite its utility, the model is computationally expensive as the initial conditions of each planet must be fully parameterized, thus significantly increasing the number of parameters to be estimated. In addition, orbits in three-body situations are, in general, not periodic. Unlike two-body periodic elliptical (Keplerian) orbits, which need only be integrated over a single period to make predictions for the entire dataset, three-body orbits must be integrated over the entire length of the dataset, dramatically increasing the computations necessary to generate the predicted photometric flux.

Photometric Effects
In this section, we consider the main photometric effects that are detectable with instruments exhibiting precision ranging from 10 parts per million to 30 parts per million. These photometric effects include both planetary components and stellar components. We will begin with the planetary components by discussing transits, which produce relatively large photometric signals. This is followed by a discussion of reflected light, thermal emissions, refracted light, and atmospheric effects. We then conclude with the stellar components, which consist of Doppler boosting and ellipsoidal variations. Figure 3 illustrates the recorded data and light curve fit from the exoplanet HAT-P-7b Borucki et al. (2009). The primary and secondary eclipses are clearly seen at orbital phase zero days and 1.1 days, respectively. In Figure 3B, planetary flux variations, such as reflected light, are evident in the sinusoidally-varying flux and in the presence of the secondary eclipse as the planet passes behind the host star. The fact that the flux during the secondary eclipse dips below the baseline (red line) indicates that the planet is also emitting a great deal of thermal radiation, which is hidden as the planet passes behind the host star.

Transits and Eclipses
The most prominent photometric effect is known as the transit or primary transit, which occurs when the planet passes in front of the host star blocking a fraction of the starlight Seager and Mallěn-Ornelas (2003). The primary transit of the exoplanet HAT-P-7b can be seen in Figure  3 at an orbital phase of zero days and again at 2.2 days, which is its orbital period. The bottoms of the primary transits are typically rounded because the light emitted by the star is not uniform across the stellar disk, but is darker near the limbs as one is looking through the cooler upper regions of the photosphere Mandel and Agol (2002). This effect, known as limb darkening, is illustrated by the coloration of the stars on the left side of Figure 4A,B. The transit depth is proportional to the ratio of cross-sectional areas of the planet and star: where Rp is the radius of the planet and RS is the radius of the star. Transits are relatively rare since the planet must pass between the stellar disk and the observer. Borucki and Summers found the probability that a distant observer could witness an exoplanetary transit to be R S a Borucki and Summers (1984). This expression was found by considering the solid angle subtended by the exoplanet's shadow in a circular orbit. Here, we consider eccentric orbits with eccentricity e, and more-or-less follow the derivation by Barnes Barnes (2007), taking care to rigorously treat the probability distribution associated with the true anomaly, the argument of the periastron and the inclination.
To find the probability of a transit, we first consider circular orbits and work out the prior probability of observing a planet at a given angular position defined by the true anomaly and the inclination, (ν, i). It is expected that there is no preferred orientation for the inclination of a planet's orbital plane. Moreover, for a circular orbit, the planet orbits at a constant speed so that the prior probability of the true anomaly is also constant. As a result, the joint prior probability is constant, P r(ν, i|I) = 1 C , where it should be noted that in our expressions for the probability, P r, we adopt the convention of Jaynes Jaynes (2003) and Sivia and Skilling Sivia and Skilling (2006) in which all probabilities are written as being conditional on all of the prior information I about the problem: Figure 4: The range of geometries of a planet illuminated by a star. (A) A planet orbits an average star at a great distance. The star's rays are more or less parallel, so that one-half of the planet is in illuminated daylight and the other half is in night. (B) A planet in a close-in orbit around a giant star is more than 50% illuminated with a full daylight zone, a penumbral zone and a night zone. so that: P r(ν, i|I) = 1 4π . ( In the case of eccentric orbits, one must also consider the argument of the periastron ω since: P r(ν|I) = 2π 0 dω P r(ν, ω|I) = 2π 0 dω P r(ν|ω, I)P r(ω|I), and the speed of the planet changes as it orbits so that the probability density of finding the planet at a true anomaly of ν varies with ν in an elliptical orbit: P r(ν|ω, I) = P r(ν |ω, I) where ν = ν.
(5) Moreover, since: P r(ω|I) = P r(ω |I) = 1 2π , and since P r(ν|ω, I) is periodic, the two integrals over a single period: P r(ν|I) = 2π 0 dω P r(ν|ω, I) P r(ω|I) and: P r(ν |I) = 2π+φ φ dω P r(ν |ω , I) P r(ω |I) are equal so that: for arbitrary angle φ. This implies that P r(ν|I) is constant so that (3) is generally true with: for both circular and elliptical orbits. The planet will be observed as transiting only for inclinations between imin ≤ i ≤ imax where: and r is the star-planet distance. Therefore, the probability of a transit: which is: Now, using the fact that the star-planet distance r varies as a function of the true anomaly ν as described in (1), the equation above becomes: so that in the case of an eccentric orbit, the probability of observing the transit of a planet for which the eccentricity e < 1 is: whereas for a circular orbit, or an orbit for which the eccentricity is zero, e = 0, the transit probability is: One can now compute the probability that a distant observer would view a planet in a circular orbit as transiting its host star. Table 1 lists these probabilities for several planets in our solar system for which the Sun has a radius of RS = 0.0046 AU. According to (12), these probabilities fall off as 1/a, indicating that the transit method of exoplanet detection is heavily biased toward the detection of closely-orbiting exoplanets.
The probability of an alien civilization being able to observe Earth transiting the Sun (within the Earth transit zone (ETZ)) is only 0.46%. Since the average stellar density in the galactic neighborhood surrounding the Sun is approximately 0.004 stars per cubic light year Gregersen (2010), there are about 17,000 stars within 100 LY of the Sun. Of these 17,000 stars, only about 78 of them are positioned so that Earth could be observed transiting the Sun. A recent study utilized the Hipparcus database to identify 37 K and 45 G dwarf stars in the ETZ within 1000 parsecs (≈3261 LY) Heller and Pudritz (2016).
The secondary eclipse is similar to the transit. It occurs when the planet passes behind the host star so that the planetary flux, which is composed of both reflected light and thermal emissions, is blocked. The magnitude of the secondary eclipse is dependent on the magnitude of the planetary flux, which, for a relatively cool planet, is bounded by the maximum amount of reflected light (14): where we are considering a circular orbit of radius a, Ag is the geometric albedo, Rp is the radius of the planet, RS is the radius of the host star and FS is the stellar flux. Since typically RS a, secondary eclipses are not always detectable in the recorded data. EXONEST models secondary eclipses using the methodology developed by Mandel and Agol Mandel and Agol (2002) applied to a uniform source. An example of a secondary eclipse can be seen in Figure 3 at the orbital phase of 1.1 days.

Reflected Light
Planets reflect light both from cloud tops and from solid or liquid surfaces, and the degree to which they reflect light is quantified by their albedo Jenkins and Doyle (2003); Seager (2010); Perryman (2011); Placek (2014); Placek et al. (2014). EXONEST employs the simplest model for reflected light in which the planet is assumed to be diffusely isotropically reflecting, so that the brightness does not depend on the angle of observation. In addition, it is assumed that the planet is situated sufficiently distant from the host star that the starlight impinges on the planet in parallel rays so that half of the planet is in daylight and the other half of the planet is in night.
Given these assumptions, the stellar flux reflected by the planet can be written as Sobolev (1975); Carter (ress): where Rp is the radius of the planet, Ag is the geometric albedo and θ(t) is the time-varying orbital phase angle. This result appears to work well for many exoplanets.

New Efforts to Properly Model Reflected Light
However, it is known that a significant number of planets (mainly hot Jupiters) closely orbit giant stars so that the assumption that the starlight impinges on the planet in the form of parallel rays is false. Instead, the planet can be divided into three zones. The first zone is that of full daylight where the entire apparent disk of the star can be seen from the surface. The second zone is a penumbral zone where only a portion of the star is visible as it appears to be setting or rising. The third zone is the night zone where the star is not visible. There are a number of cases in which the penumbral zone extends well into what would normally be the night zone. For example, as much as 70% of Kepler-91b's surface is lit by starlight. This situation is illustrated in Figure 4B. This has significant implications for the primary transit since a fraction of the backside of the planet may be partially illuminated in the penumbral zone, thus compensating somewhat for the reduced starlight due to the transit. As a result, unless the illumination geometry is properly modeled, primary transit depths will be less extensive resulting in an under-estimation of the planetary radius or an over-estimation of the nightside thermal flux followed by an over-estimation of nightside temperatures. We are currently working to develop reflected light models for EXON-EST that can accommodate the case in which planets are illuminated by parallel rays and the case in which planets are illuminated while closelyorbiting giant starsḰopal (1954,1959); Carter (ress). The fractional surface areas in the fully-illuminated zone, partially-illuminated penumbral zone and night zone are given by Carter (ress): Since these surface areas depend on the star-planet separation distance r, eccentric orbits will require the use of the more general reflectance model.
A quick survey of the exoplanet archive Caltech (2017) reveals 1306 exoplanets for which the radius of the star, Rs, the radius of the planet, Rp, and the semi-major axis, a, are reported. Figure 5 illustrates histograms for these 1306 exoplanets revealing the percent of the surface area that is in full daylight, in a penumbral zone and in completely dark night. It is most common for planets to have a 5% penumbral zone, and more than one quarter of the planets have penumbral zones that are larger than 5%. There are nine planets for which the penumbral zone covers about 30% of the planet's surface and two planets for which the penumbral zone covers 40% of the planet's surface! Of these 1306 exoplanets, 39 of them have more than 60% of their surface illuminated (dayside zone plus penumbral zone) by their host star. Another survey of the 1073 confirmed Kepler exoplanets that have orbital periods shorter than 10 days indicates that 88 of those planets (about 8% of them) have more than 60% of their surface illuminated (dayside zone plus penumbral zone) by their host star. The significance of this effect in the context of the reflected light and the analysis of Kepler data will be explored in a future paper.
We believe that improperly modeling stellar illumination was a problem in our earlier study involving a proposed Trojan partner to the planet Kepler-91b. In that analysis, the Bayesian evidence weighed heavily in favor of a Trojan partner, but the modeled planetary temperatures were unphysically high, which led us to discount the possibility of a Trojan partner Placek et al. (2015). The star Kepler-91 is an asymptotic giant branch star with a radius of approximately 6.30 ± 0.16 R (where R is the solar radius), and the semi-major axis of the hot Jupiter Kepler-91b is a = 0.072 +0.007 −0.002 AU Esteves et al. (2015). The planet Kepler-91b has a radius of Rp = 1.322 +0.094 −0.086 RJ , where RJ represents Jupiter's radius Esteves et al. (2015). By Equations (15)-(17), this implies that 29.5% ± 1.0% of Kepler-91b is in full daylight, 40.2% ± 2.1% is in partial penumbral light and 30.4% ± 1.0% is in full darkness, so that approximately 69.6% of the planet is illuminated at any point in time (as is illustrated in Figure  4B). By not properly accounting for this illumination, the modeled thermal emissions would be forced to compensate with increased day-side and night-side temperatures possibly explaining the unphysically high temperatures obtained in the analysis Placek et al. (2015), which led to the Trojan hypothesis being discounted. This is supported by the fact that other studies of this system have led to unphysically high temperatures. For example, a study of KOI-2133b (Kepler-91b) by Esteves et al. Esteves Note that slightly less than half of the planets have a 50% full daylight zone or a 50% night zone. It is most common for planets to have a 5% penumbral zone, and more than one quarter of the planets have penumbral zones that are larger than 5%. There are four planets with significant penumbral zones in which the full daylight zone covers only about 30% of the surface of the planet. et al. (2013) found that the nightside temperature was 3100±200 K, which was greater than the expected equilibrium temperature of 1570 K, leading them to hypothesize that Kepler-91b, which was later re-confirmed as a planet Sliski and Kipping (2014), was self-luminous.

Thermal Emissions
The modeling of thermal emissions is similar to that of reflected light. Current models assume that there is a day-side and a night-side and that these two sides are characterized by two effective temperatures TD and TN , respectively. The planet is assumed to radiate as a thermal blackbody so that the detected thermal flux is given by Charbonneau et al. (2005): where T is the effective temperature of the radiating region, B(λ; T ) represents the spectral radiance of a blackbody at temperature T : h is Planck's constant, kB is Boltzmann's constant, and K(λ) is the Kepler response as a function of wavelength λ Van Cleve and Caldwell (2009).
The relative day-side and night-side fluxes are given by: with a total relative flux of: The similarity of the thermal emission phase curve to the reflected light phase curve means that for a circular orbit, the models are degenerate so that it is not possible, using single-bandpass photometry, to distinguish thermal emission from reflected light. Only for significantly eccentric orbits, with e > 0.3, in which the planet-star distance r(t) changes, thus affecting reflected light, can thermal flux be modeled independently of reflected light Placek et al. (2014), assuming that the temperatures on the planet are relatively constant. Observations in multiple bandpasses, such as combining data from both Kepler and TESS, will enable thermal emissions to be distinguished from reflected light Placek et al. (2016). Just as in the case of reflected light, a closely-orbiting planet will have three zones: a dayside zone, a penumbral zone and a nightside zone. While one could model each zone with a separate average temperature, previous studies have found that the contribution of the penumbral zone to thermal emissions is negligible Léger et al.

New Efforts to Model Refracted and Forward Scattered Light
The situation is significantly more complicated for a planet or moon that possesses an atmosphere. As the planet approaches the primary transit, it becomes more and more backlit. In addition to reflected light from atmospheric clouds or the surface, one may potentially detect light that is both forward scattered by the atmosphere and refracted through the atmosphere Sidis (2010) One of these effects is illustrated in Figure 6 where in Panel (A), we see an image taken by the Cassini probe of Saturn's moons Rhea (upper left), Titan (center right) and Mimas (lower center). Both Rhea and Mimas are airless worlds, and one sees only reflected light from their surfaces. Titan, on the other hand, is a large moon with an extended nitrogen and methane atmosphere and, more critically, rich in strongly forward scattering haze. Here, one sees that the starlight entering the atmosphere is forward scattered by the haze particles, thereby forming an illuminated arc much brighter and more extensive than on the other two moons for which such a ring is not possible . Forward scattered by hazy exoplanet atmospheres, if occurring, will be more important for close-in planets, whereas the refraction signal is likely more important for far-out transiting planets and immediately before/after transit, where The increase in photometric flux due to refraction is on the order of Sidis (2010): where H is the scale height of the planetary atmosphere, which is given by: where kB is Boltzmann's constant, T is the average atmospheric temperature, µ is the mean molecular weight of the atmospheric constituents and g is the gravitational acceleration at the surface of the planet Sidis (2010). Typically, H Rp, so that by (23), the refractive effects are much smaller than the primary transit depth: For example, in the case of the Earth (T = 288 K, g = 9.8 m s −2 , µ = 0.0288 g mol −1 ), the characteristic atmospheric height is estimated to be H = 8.48×10 3 m, which is reasonable considering that the troposphere has an average height of 12 × 10 3 m. As a result, the photometric flux of light refracting through Earth's atmosphere at the point of occultation is about H Rp ≈ 8.48×10 3 m 6.37×10 6 m = 0.0013 times, or three orders of magnitude, smaller than the primary transit depth.
In the event that the photometric effects of refracted light can be detected, this would provide information about the nature of the exoplanetary atmosphere.

New Efforts to Model Atmospheric Effects
Atmospheric effects can play a significant role in photometry. For example, atmospheric clouds can shift a planet's highly reflective bright spot away from the substellar point. Similarly, atmospheric superrotation can shift a planet's thermally bright hotspot away from the substellar point. Such effects, which can be modeled as an angular shift in the reflectance or thermal phase curves, can reveal a great deal about the exoplanetary atmosphere Showman and Polvani (2011) For example, it is thought that supersonic flow and shocks can develop on the dayside of irradiated hot Jupiters upstream of the substellar point and that these shocks will affect the position of the peak of the thermal phase curve Heng (2012). Heavily-irradiated hot Jupiters are expected to have an electrically-conductive atmosphere due to ionization. As a result, exoplanetary magnetic fields are expected to affect atmospheric flow Batygin et al. (2013) and in some cases, magnetically-dragged winds are expected to reduce the longitudinal offset of the thermal hotspot Menou (2012); Batygin et al. (2013); Rauscher and Menou (2013).
Other deviations in the reflectance and thermal phase curves may reveal more about planetary atmospheres, such as inhomogeneous cloud cover across the planet's surface Demory et al. (2013); Heng and Demory (2013)

Doppler Boosting/Beaming
The gravitational influence of a planet causes both the star and the planet(s) to orbit a common center of mass. As a result, stars with planets tend to wobble. This is the basis of the radial velocity technique in which the radial velocity of the star is carefully measured using spectroscopy and knowledge about the Doppler shift to detect the presence of planets. While the radial velocity technique relies on spectroscopy, there is a photometric component that arises due to relativistic considerations related to stellar aberration in which an object that radiates light uniformly at rest will, in motion, tend to radiate more light in the direction of motion and less light opposite that direction Rybicki and Lightman (2008). This effect is called Doppler boosting or Doppler beaming.
The effect can be derived using special relativity resulting in the following formula for the boosted flux Rybicki and Lightman (2008); Placek (2014); Placek et al. (2014): where γ −1 = 1 − β 2 , and β = v c where c is the speed of light and FS is the stellar flux in the reference frame of the star. Since the motion of the star will involve velocities no more than 100-1000 m/s (β ≈ 10 −5 ), it is perhaps surprising that this relativistic effect could be detectable. However, the fact that the star is approximately 10 6 -times brighter than the reflected light from a planet means that this effect can be on the order of that of reflected light. Given these speeds, a non-relativistic approximation is reasonable: where βr represents the radial component of the stellar velocity as viewed from Earth scaled by the speed of light so that: where Vz is the radial velocity of the planet from the perspective of Earth: in which ν(t) is the true anomaly as a function of time, ω is the argument of the periastron, e is the eccentricity (see Figure 1) and K is the radial velocity semi-amplitude Placek (2014) given by: in which G is Newton's gravitational constant, T is the period of the planet, Mp is the mass of the planet, i is the inclination of the orbital plane with respect to Earth and MS is the mass of the star. Note that when the inclination of the orbital plane is zero, i = 0, the orbit is face on (in the projected plane of the sky), and both the radial velocity semiamplitude and the radial velocity are zero, resulting in no Doppler effect. Furthermore, as the planet orbits the star, the true anomaly ν(t), which is an angle, advances. There will be two times per orbital period at which the trigonometric factor goes to zero, resulting in zero radial velocity and therefore zero Doppler effect. This is most easily seen by considering a circular orbit for which the eccentricity is zero, e = 0, and the argument of the periastron is zero, ω = 0. In the case of this circular orbit, the radial velocity is zero when the true anomaly is ν = π 2 and ν = 3π 2 , which occurs when the planet is moving in the projected plane of the sky. Since the Doppler boosting effect involves both the mass of the planet and the inclination angle of the orbital plane, this phenomenon facilitates the estimation of these two quantities.

Tidal Forces and Ellipsoidal Variations
Tidal interactions between a massive object and a star create distortions on the star (see Figure 7), which are potentially observable by the Kepler Space Telescope. Known as ellipsoidal variations, this photometric effect appears with two maxima per orbit, each occurring when the largest cross-sectional area of stellar surface is observed. Bayesian model testing provides a rigorous framework to compare the various representations of ellipsoidal variations. A preferred representation of ellipsoidal variations will become increasingly important for exoplanet classification with higher precision photometry.

Trigonometric Models
The BEaming, Ellipsoidal and Reflection (BEER) model, which was developed by Faigler and Mazeh Faigler and Mazeh (2007), models the ellipsoidal variations as being proportional to the cosine of twice the phase angle: in which on the left-hand side, the flux due to the ellipsoidal variations F ellip is normalized by the stellar flux FS, Mp is the planet's mass, MS is the star's mass, RS is the star's radius, a is the star-planet distance, i is the inclination of the orbital plane and θ is the orbital phase [0, 2π]. The BEER model allows for positive and negative values for the amount of ellipsoidal variation observed. The effects of linear gravity-darkening and limb-darkening, β, are modeled by Morris (1985): in which the linear limb-darkening and gravity-darkening coefficients are represented by u and g, respectively. Estimates of the coefficients u and g are provided by modeling metallicity and effective stellar temperature Heyrovský (2007); Sing (2010). The Kane and Gelino model hypothesizes ellipsoidal variations to be proportional to the projected separation distance between the star and planet Kane and Gelino (2012), which, when substituted for the orbital phase, become: However, this model suffers from a discontinuity in the first derivative, which is not seen in simulations of ellipsoidal variations using gravitational isopotentials.
A modified form, labeled Kane and Gelino (Mod), was introduced by Placek et al. Placek et al. (2014), which removes the discontinuity by setting the effect proportional to the square of the projected separation distance: Unlike the BEER model, which produces negative values, the two Kane and Gelino models have a minimum value of zero. Figure 7: This is an exaggerated image of a star that has been tidally distorted by a closely-orbiting planet Mp M S = 9.5425 . The increased cross-sectional area results in variations in flux that oscillate at twice the orbital period as the planet revolves around the star.

Direct Modeling: EVIL-MC
The Ellipsoidal Variations Induced by a Low-Mass Companion (EVIL-MC) model was developed by Jackson et al. Jackson et al. (2012) to directly model tidal effects on the stellar atmosphere. EVIL-MC was modified for use in EXONEST Gai (2016); Gai and Knuth (2017) in which a geodesic structure of 640 triangles is used to represent the stellar surface as illustrated in Figure 7. The deviations from sphericity are computed for each point on the surface model. The observed flux, φ ellip , is computed by summing the blackbody flux within the Kepler bandpass (18) over the observed surface area. The ellipsoidal variation effect is then computed with: where φ sphere is the flux from a spherical star and φ ellip is the flux from the ellipsoidal star. While direct modeling should provide a more accurate representation, EVIL-MC is significantly (≈1000-10,000 times) more computationally expensive than the trigonometric models. The Kane and Gelino (Mod) model provides a computationally fast approximation to EVIL-MC.

Model Testing
We have recently performed model testing on Kepler light curve data using EXONEST Gai (2016); Gai and Knuth (2017). EVIL-MC provided the best representation of ellipsoidal variations in the Kepler-13 system followed by the Kane and Gelino (Mod) and BEER models, which had similar evidence values. The values are reported in Table 2. The Kane and Gelino (Mod) model is closest to the EVIL-MC results and has slightly higher evidence over the others suggesting that, given its straight-forward

Bayesian Inference Engine
For a given exoplanetary model, the Bayesian inference engine allows us to compute the Bayesian evidence and the model parameter values along with their associated uncertainties. The current implementation allows for a choice of sampling methods: Metropolis-Hastings Markov chain Monte Carlo (MCMC) Metropolis et al. (1953);Hastings (1970) (which does not provide the Bayesian evidence), the original nested sampling algorithm Skilling (2004Skilling ( , 2006; Sivia and Skilling (2006) or the more recent variant called MultiNest Feroz et al. (2009Feroz et al. ( , 2011Feroz et al. ( , 2013. While the MultiNest algorithm has proven to shorten run times from several days to 10s of hours, it is usually not possible to operate with more than 75 samples, which severely reduces the precision to which the Bayesian evidence and the parameter values can be estimated. Unfortunately, even by integrating a single period in cases with one exoplanet, the time required to evaluate the log likelihood is too great to allow for a rapid analysis. It may be of benefit to re-parameterize the eccentricity and argument of periapsis as suggested by Ford Ford (2006). In addition, since we have found almost no evidence of phase changes in our analyses to date, it has been suggested (P. Goggans, personal communication) that EXONEST be designed to utilize simulated annealing.
Model testing is a significant part of the EXONEST analysis pathway. By turning on-and-off various photometric models and comparing the Bayesian evidence in each case, one can build a case that a candidate exoplanet is a real planet and not a false positive Placek et al. (2014); Knuth et al. (2015).

Priors and Likelihoods
EXONEST allows priors on the parameter values to be specified. However, since we are still learning a great deal about exoplanets, the assignment of an informative prior based on known exoplanets is potentially detrimental as it may bias against the discovery of new phenomena. For this reason, uniform or non-informative priors are most often used.
Likelihoods can also be specified for EXONEST. While Gaussian likelihoods are typically employed, there have been situations involving asymptotic giant branch stars in which likelihoods that accommodate correlated noise (red noise) are necessary Placek et al. (2015), prompting us to implement Sivia's nearest-neighbor approach Sivia and Skilling (2006): where N is the number of data points, σ 2 is the noise variance, is the correlation strength, which is a parameter to be estimated, and Q depends on the sum of the square of the residuals χ 2 by: The quantity φ is the sum of the first and the last squared residuals, and ψ is the sum of the nearest neighbor squared residuals: As usual, the residuals are given by the difference between the modeled relative flux and the observed relative flux. In practice, one divides the observed flux by the average of the observed flux to obtain the observed relative flux. The residuals are typically given by: where φ(ti) is the observed or measured photometric flux at time ti and F total (t i ) F S is the sum of the modeled relative photometric fluxes at time ti. Unfortunately, this practice is not ideal since it is not generally true that FS ≈ φ(ti) since the photometric effects (transits, etc.) do not all integrate to zero. In principle, one could subtract the flux during the secondary eclipse, since ellipsoidal variations will be minimal and there will be no planetary effects. However, it would be better to model the stellar flux and to marginalize over it.
It is a straightforward problem to incorporate additional data, such as radial velocity measurements, by adding terms to the log likelihood. This has been done in our study of the Kepler-91 system Placek et al. (2015).

Application: Kepler-76b
Kepler-76b is a transiting hot-Jupiter with a radius of approximately 1.25 RJ that orbits a 1.2 Msun star with an orbital period of 1.5449 days Model log Z (×10 6 ) log L max (×10 6 ) R −9.5987 −9.5987 RE −9.5822 −9.5822 REB −9.5685 −9.5684 REB + SR −9.5676 −9.5676  Faigler et al. (2013). This planet is known to exhibit reflection/thermal emission, Doppler boosting, as well as ellipsoidal variations (Faigler et al., 2013;Angerhausen et al., 2015;Esteves et al., 2015). This section outlines EXONEST's model selection capabilities with fits of four different forward models that each account for different combinations of photometric effects. The simplest model includes only the reflection component (R), which in the case of a circular orbit subsumes thermal emission. The second model includes reflection and ellipsoidal variations (RE). The third model accounts for reflection, ellipsoidal variations and Doppler beaming (REB). Finally, the last model accounts for each of the three effects in the REB model in addition to an angular shift in the phase curve (reflection component), which is indicative of atmospheric superrotation (REB-SR). The data, which were obtained from the Mikulski Archive for Space Telescopes (MAST) managed by the Space Telescope Science Institute (STScI), consists of all available quarters of long-cadence Kepler Space Telescope data for Kepler-76b. The data were preprocessed to remove the primary transit so that only the overall phase curve and the secondary eclipse were fit by the EXONEST models. Note that even without considering the primary transit, excellent parameter estimates were obtained.
The results of the model testing are listed in Table 3. In this example, the most complex model (REB-SR), illustrated in Figure 8, was favored by both the Bayesian evidence (log Z) and the maximum log-likelihood (log Lmax) to explain the data. We can thus claim the detection of a shift in the phase curve by 8.53 • ± 0.12 • degrees westward of the sub-stellar point, which is most likely caused by atmospheric superrotation. This result is consistent with previous studies of Kepler-76b, which yielded estimated westward shifts of 10.3 • ± 2.0 • Faigler et al. (2013)

Conclusions
EXONEST: The Exoplanetary Explorer is a software package for detecting and characterizing exoplanets from Kepler and CoRoT data. The package models a large number of photometric effects, each of which provides valuable information about the exoplanet and the exoplanetary system. New efforts include developing more precise models of reflected light, refracted light and atmospheric effects, as well as re-coding to transform EXONEST into a Python-based open source project with the capability to employ third-party plug-and-play models of exoplanet-related photometric effects. In addition, new planetary models are being developed that are relevant to rapidly rotating planets with shapes ranging from that of an oblate ellipsoid to pyriform shapes Abraham and Shaw (1983) and synestias Lock and Stewart (2017). These features are summarized in Table 5.
While it is true that by adding more parameters, one can over-fit the data by increasing the likelihood, for this reason, EXONEST employs Bayesian model testing, which enables one to evaluate the significance of each photometric effect. The model testing capabilities of EXONEST were demonstrated on Kepler Space Telescope of Kepler-76. Kepler-76b was demonstrated to exhibit several photometric effects: reflected light, Doppler boosting, ellipsoidal variations and atmospheric superrotation. Parameter estimates were reported that are in agreement with previous studies Faigler et al. (2013); Angerhausen et al. (2015); Esteves et al. (2015) using both radial velocity and photometric data. In addition, the model testing capabilities of EXONEST enable one to test photometric models against one another.
Future missions promise instruments of increasing sensitivity and detail with multiple spectral bands. Despite this, photometry will continue to be a valuable resource until detailed direct imaging is possible. In the meantime, we aim to include more relevant photometric effects into EX-ONEST and to develop the software package to work in conjunction with  Figure 8: An illustration of the best fit model (REB + SR) for Kepler-76b. The overall shape of the light curve is due to the reflected light, Doppler boosting and ellipsoidal variations. The secondary eclipse can be observed at an orbital phase of 0.5, which is shifted from the peak of the reflected light component (dashed curve) by 8.53 • ± 0.12 • , which most likely is due to atmospheric superrotation. future multispectral studies. Table 5: This table lists the modeled effects considered in this paper and indicates which effects are currently implemented ('X') in EXONEST, and which are currently under development ("D") or being refined ("R") or studied ("S") for potential inclusion in the next generation of our software. Effects marked with an "M" are being or will be evaluated using Bayesian model testing.