1 Introduction

Currently several measurements have shed light in our understanding of the cosmos. One of such measurements, the cosmic microwave background (CMB) provides information about the early universe. At that time, protons and electrons formed the first neutral atoms and decoupled from photons, which traveled freely until we observe them nowadays. The CMB photons possesses a simple physical explanation and carry information about the background and perturbations, which can be modeled linearly, at those early stages. Several experiments have been dedicated to measure those photons, the latest and most precise one was accomplished by the Planck satellite [1].

In order to make predictions about the CMB photons coming from the distant past, we have to assume a specific model. Therefore, the comparison with data implies constraints on late-time cosmological parameters, in particular, the Hubble constant, \(H_0.\) Assuming the \(\Lambda \)CDM model, the Planck satellite mission have constrained the value of \(H_0\) very precisely as \(H_0 = 67.4 \pm 0.5 \, \text {km} \, \text {s}^{-1} \, \text {Mpc}^{-1}\) [2].

In addition, we also have observations from the light of stars, galaxies, and other astrophysical objects at much lower redshifts. Their distance and clustering provide information about our Universe at more recent times. In particular, observations from the Hubble Space Telescope (HST) of Cepheid variables in the host galaxies of 42 Type Ia supernovae (SNIa) were used to calibrate the Hubble constant [3]. Their baseline result was \(H_0 = 73.04 \pm 1.04 \, \text {km} \, \text {s}^{-1} \, \text {Mpc}^{-1},\) which is \(5\sigma \) apart of the prediction from Planck observations under the \(\Lambda \)CDM model.

This tension in the Hubble constant value is a major problem in cosmology today. It is not clear yet, if the tension comes from some systematic effect in any of those measurements, or if it comes from some unknown physical phenomenon. For instance, some works have reported a slowly decreasing trend on \(H_0\) with redshift using a binned analysis for different data [4, 5] and propose a f(R) gravity could account for this variation [6]. Others have considered the tension is alleviated by a phantom evolving dark energy [7], or could be solved assuming an underdensity known as the KBC void [8], and yet some argue a breakdown of FLRW cosmology [9]. A review of several proposed theoretical solutions can be found in [10]. In any case, additional and independent data could help us clarifying the origin of such disagreement.

Recently some works have proposed using the age of the oldest astrophysical objects (OAO) as an independent route to investigate the Hubble tension [9, 11,12,13,14,15]. The ages of OAO played an important role establishing the \(\Lambda \)CDM model, with reports of OAO being older than the Universe assuming the prevailing Einstein-de Sitter model [16,17,18]. This led to an age crisis [19,20,21,22,23], which was solved by the discovery of the late-time cosmic acceleration and the necessity of a dark energy component using SNIa [24, 25]. After the end of the age crisis, the OAO received less attention, but some authors still used them to constrain dark energy and other cosmological parameters [26,27,28,29,30,31,32,33,34,35]. Now, recent data with more reliable and precise determination of the ages could provide additional constraints on the Hubble constant and enlighten the tension.

In this paper, we investigate the use of the ages of OAO to resolve the Hubble tension. Although, those data could in fact provide important information, we have found that the method can be biasing the results, artificially indicating a tension with other low-redshift data. Reanalyzing the ages of 114 OAO, we obtain that the constraint in the Hubble constant goes from slightly disfavoring local measurements, as in previous works, to favoring them.

The paper is organized as follows. In Sect. 2, we will introduce two methods to constrain the Hubble function from the ages of the OAO used in the literature: estimating the minimum age of the Universe as a function of redshift and using lookback time. In Sect. 3, we use 114 measurements of age-redshift data from OAO and re-obtain previous results in [14, 15] to ensure our code produces the expected results. In Sect. 4, we create a mock catalog of age-redshift values with known cosmology and test if those two methods recover the fiducial cosmology appropriately. Section 5 presents our cosmological constraints reanalyzing the real 114 age-redshift data correcting the likelihood for the age of the Universe. Finally, we summarize our conclusions in Sect. 6.

2 Methods using OAO

As shown in Fig. 1, we can separate the history of the Universe into three parts with respect to the evolution of the OAO we observe. Region I, from the beginning of the Universe to the formation of the object, is what we call incubation time or delay factor. Region II spans the evolution of the astrophysical object from its formation to the time they emit the photons we observe. These photons carry information about the age of those sources at the end of that period. At last, Region III encompasses the time the photons spent on traveling from the time they were emitted until we detect them nowadays.

Fig. 1
figure 1

Redshift-age evolution for the old astrophysical objects

2.1 Age of the Universe from the OAO

The age of the OAO can be estimated via a wide variety of methods. The general methodology relies on fitting the spectral energy distributions with spectral population synthesis models, with further assumptions on dust attenuation, formation history, luminosity and colors. As the Universe must be at least as old as the objects it contains at any redshift, we can estimate a lower limit to the age of the Universe from the OAO [14].

The theoretical age of the Universe at redshift z is determined by the age-redshift relation via the formula

$$\begin{aligned} t_{_U}(z) = \int ^\infty _z{\frac{dz^{\prime }}{(1+z^{\prime })H(z^{\prime })}} , \end{aligned}$$
(1)

where H(z) stands for the Hubble function and, in the \(\Lambda \)CDM model, H(z) is given by

$$\begin{aligned} H(z) = H_0\sqrt{\Omega _m (1+z)^3+1-\Omega _m} . \end{aligned}$$
(2)

Therefore, requiring the Universe to be at least as old as the OAO imposes an upper limit to the value of the Hubble constant \(H_0.\)

Given N observed data for the ages of OAO, \(t^{obs}_i \pm \sigma _i\) at redshifts \(z_i,\) we can model the probability of a set of parameters \({\varvec{\Theta }}\) via the half-Gaussian (log-)likelihood [14]

$$\begin{aligned} \chi ^2_{OAO}= & {} -2 \ln {{\mathcal {L}}({\varvec{\Theta }}|data)}\nonumber \\= & {} \sum \limits _i^N\left\{ \begin{array}{ll} \Delta _i^2({\varvec{\Theta }})/\sigma ^2_{t^{obs}_i}, &{} \quad \text {if } \Delta _i({\varvec{\Theta }}) < 0 \\ 0, &{} \quad \text {if } \Delta _i({\varvec{\Theta }}) \ge 0 , \end{array} \right. \end{aligned}$$
(3)

where \(\Delta _i({\varvec{\Theta }}) \equiv t_{_U}({\varvec{\Theta }}, z_i) - (t^{obs}_i+df)\) is the difference between the age of the Universe and the sum of the delay factor and the age of the ith OAO at redshift \(z_i.\) Equation 3 interprets the fact that: (1) parameters leading the age of the Universe to be younger than the age of the OAO plus the delay factor (i.e. \(\Delta _i({\varvec{\Theta }}) < 0\)) are (exponentially) unlikely, since the container should not be younger than its contents; (2) parameters making the Universe older than its contents are equally likely and hence cannot be distinguished from each other on the basis of age method alone.

2.2 Lookback time measurement

Figure 1 shows us that the theoretical lookback time of the ith OAO can be calculated as

$$\begin{aligned} t_{_L}(z_i) = \int ^{z_i}_0{\frac{dz^{\prime }}{(1+z^{\prime })H(z^{\prime })}} . \end{aligned}$$
(4)

On the other hand, we can estimate the observational lookback time using the ages of OAO and age of the Universe inferred from observation as

$$\begin{aligned} \begin{array}{ll} t^{obs}_{_L}(z_i) &{}= t^{obs}_{_U} - t_i \\ &{}= t^{obs}_{_U} - t^{obs}_{age}(z_i) - df, \end{array} \end{aligned}$$
(5)

where \(t^{obs}_{age}(z_i)\) is the observed age of ith OAO and df is the delay factor.

We assume the observed lookback time follows a Gaussian distribution around the theoretical value. Therefore, the (log-)likelihood is given by

$$\begin{aligned} \chi ^2_{LBT}= & {} -2 \ln {{\mathcal {L}}({\varvec{\Theta }}|data)}\nonumber \\= & {} \sum \limits _i^N\frac{[t_{_L}(z_i, {\varvec{\Theta }})-t^{obs}_{_L}(z_i,df)]^2}{\sigma _i^2+ \sigma _{_U}^2}+\frac{[t_{_U}({\varvec{\Theta }}) - t^{obs}_{U}]^2}{\sigma _{_U}^2},\nonumber \\ \end{aligned}$$
(6)

where \(\sigma _i\) and \(\sigma _{_U}\) stand for the errors of observations about ages of the ith OAO and the Universe, respectively. The delay factor is a nuisance parameter that is fitted simultaneously with the cosmological parameters. To find out the best estimate of parameters, we only need to maximize the likelihood function, or namely minimize the \(\chi _{LBT}^2\) given by Eq. 6.

3 Estimating the Hubble constant from OAO

In this section, we use real age-redshift data from 114 OAO and intend to re-obtain the same result for the Hubble constant as first shown in [14] and later in [15]. The data is composed of the estimated ages of 61 galaxies and 53 quasars in the redshift range \(z = [0, 8].\) Figure 2 plot the age-redshift relation for these objects together with the theoretical estimation for the fiducial \(\Lambda \)CDM cosmology with \(\Omega _m = 0.3\) and \(H_0 = 70 \, \text {km}\,\text {s}^{-1}\text {Mpc}^{-1},\) as well as for some variation in the Hubble constant.

Fig. 2
figure 2

Age-redshift relation for 114 OAO and also the theoretical estimation for the age of the Universe in a \(\Lambda \)CDM cosmology with \(\Omega _m = 0.3\)

In order to estimate an upper limit to the value of the Hubble constant, we use the age of the OAO and constrain the cosmological parameters with the likelihood described in Eq. 3. As our model is composed by only 3 parameters, \({\varvec{\Theta }} = \{H_0, \Omega _m, df \},\) we sample the parameter space using the brute force. Therefore, we calculate the likelihood for all values in a grid given by \(H_0 \in [40,100]\,{\,\mathrm{km \, s^{-1}Mpc^{-1}}},\) \(\Omega _m \in [0.2,0.4],\) and \(df \in [0,1]\,{\,\textrm{Gyr}}\) divided into smaller intervals with steps \({0.01\,\mathrm{km \, s^{-1}\,Mpc^{-1}}},\) 0.001,  and \({0.01\,\textrm{Gyr}},\) respectively. Our posterior assumes a flat prior on \(H_0\) and \(\Omega _m,\) and a J19 prior on df (J19 prior comes from [11] and its fitting function is from [36]) given by

$$\begin{aligned} P(df)\propto & {} 0.95\exp {\left( \!-\frac{1}{2}\frac{(l-l_1)^2}{\sigma _1^2}\!\right) } + 0.45\exp {\left( \!-\frac{1}{2}\frac{(l-l_2)^2}{\sigma _2^2}\!\right) } , \nonumber \\ \end{aligned}$$
(7)

where \(l=\log _{10}(df),\) \(l_1\equiv \log _{10}(0.1155),\) and \(l_2\equiv \log _{10}(0.255).\) In addition, \(\sigma _2=0.155\) and \(\sigma _1=0.15,\) if \(df\le 0.1155,\) or \(\sigma _1=0.17,\) if \(df > 0.1155.\)

We plot the 2D and 1D marginalized posterior distribution in Fig. 3. The 95% CL upper limit on \(H_0\) is \({73.24\,\mathrm{km \, s^{-1}\,Mpc^{-1}}}\) and the delay factor peaks at \(df \approx {0.15\,\textrm{Gyr}},\) which agree with the results in [14] and [15], although they used a Markov chain Monte Carlo (MCMC) sampling method.

Fig. 3
figure 3

2D and 1D marginalized posterior distribution with 68% CL and 95% CL for \(H_0,\) \(\Omega _m,\) and the delay factor df

4 Simulated data

We obtained in the previous section an upper limit on the value of \(H_0\) using the assumption of half-Gaussian likelihood. Our value is consistent with previous ones, which makes us confident about our code and methodology. Vagnozzi et al. [14] first proposed that the value obtained in this way is in slight disagreement with local measurements of the Hubble constant, in particular, the value of \(H_0 = 74.03 \pm 1.42 \, \text {km}\,\text {s}^{-1}\text {Mpc}^{-1}\) from the Hubble Space Telescope (HST) observations of 70 long-period Cepheids in the Large Magellanic Cloud [37]. In this section, we intend to test these ideas and investigate the behaviour of the half-Gaussian likelihood presented in Eq. 3 in a full controlled scenario.

Assuming a fiducial \(\Lambda \)CDM cosmology with \(H_0 = {70.0\,\mathrm{km \, s^{-1}\,Mpc^{-1}}}\) and \(\Omega _m = 0.30,\) we create a mock catalog of 100 age-redshift data. First, we obtain 100 uniformly distributed random points in the redshift range \(z = (0, 4]\),Footnote 1 then we calculate the age of the Universe at each redshift using Eq. 1. We subtract the age of the Universe at each redshift by a random delay factor df,  which we obtain following the J19 distribution in Eq. 7. Finally, we simulate the age of the OAO assuming a Gaussian distribution given by

$$\begin{aligned} P(t^{obs}_{i})=\frac{1}{\sqrt{2\pi }\sigma _i}\exp {\left( -\frac{[t^{obs}_{i} - (t_U(z_i) - df_i)]^2}{2\sigma _i^2}\right) } , \end{aligned}$$
(8)

where \(\sigma _i\) is the error in the simulated data. For simplicity, we assume the error bars are the same for all objects. We consider two scenarios: (a) \(\sigma _i = 0.05 \, \text {Gyr}\); and (b) \(\sigma = 1 \, \text {Gyr}.\) Figure 4 shows our simulated data with \(\sigma _i = 0.05 \, \text {Gyr}.\)

Fig. 4
figure 4

Simulated age-redshift relation for 100 OAO with \(\sigma _i = 0.05 \, \text {Gyr}.\) We also show the theoretical age-redshift relation in a \(\Lambda \)CDM cosmology with \(\Omega _m = 0.3\) and some values for \(H_0\)

We then redo the analysis made in Sect. 3 with the two mock catalogs. The 2D and 1D marginalized posterior distributions are shown in Fig. 5 in solid yellow lines. By comparing our result with the previous one using the real data in Fig. 3, we observe they present the same behaviour. The 95% CL upper limit on the Hubble constant is given by \(H_0 \le 70.84 \, \text {km} \, \text {s}^{-1}\,\text {Mpc}^{-1}\) (for \(\sigma _i = 0.05 \, \text {Gyr}\)) and \(H_0 \le 51.25 \, \text {km} \, \text {s}^{-1}\,\text {Mpc}^{-1}\) (for \(\sigma _i = 1 \, \text {Gyr}\)). As we can see, although the fiducial value in the simulation was set as \(H_0 = 70 \, \text {km} \, \text {s}^{-1}\,\text {Mpc}^{-1},\) the larger the error bars, the upper limit becomes less consistent with the fiducial value. This indicates that this method to constrain our cosmological parameters is not appropriate and is artificially imposing some tension with the correct value of \(H_0.\)

Fig. 5
figure 5

2D and 1D marginalized posterior distribution using three different methods with the simulated data. We show the 68% CL and 95% CL for \(H_0,\) \(\Omega _m,\) and the delay factor df. a \(\sigma _i = 1 \, \text {Gyr}\) and b \(\sigma _i = 0.05 \, \text {Gyr}\)

In order to further investigate this phenomenon, we redo the analysis but assuming the whole Gaussian in Eq. 3 (i.e. \(\chi ^2_{OAO} \sim \Delta _i^2({\varvec{\Theta }})/\sigma ^2_{t^{obs}_i}\) for all values). Our results are plotted in Fig. 5 in dashed blue lines. As expected, the constraints are consistent with the fiducial values used in our simulation, with marginalized average and 68% CL given by \(H_0 = 69.5 \pm 0.64 \, \text {km}\,\text {s}^{-1}\text {Mpc}^{-1},\) \(\Omega _m = 0.3041 \pm 0.0085,\) and \(df = 0.234 \pm 0.016 \, \text {Gyr}\) (for \(\sigma _i = 0.05 \, \text {Gyr}\)); and \(H_0 = 74.58 \pm 5.19 \, \text {km}\,\text {s}^{-1}\text {Mpc}^{-1},\) \(\Omega _m = 0.2621 \pm 0.0484 ,\) and \(df = 0.169 \pm 0.077 \, \text {Gyr}\) (for \(\sigma _i = 1 \, \text {Gyr}\)). We also observe that the delay factor is dominated by the prior distribution J19 in our posterior for large error bars as \(\sigma _i = 1 \, \text {Gyr},\) but presents a Gaussian distribution for small error bars. This comes from the fact that although our simulation uses the J19 distribution as expected in the real data, our likelihood actually models the delay factor as a constant for all OAO. Therefore, we only recover the J19 shape when the prior is dominating our data. This is also the case when we use the real data as in Fig. 3.

Similarly, we also repeat the analysis using the lookback time likelihood described in Eq. 6. In this case, in addition to our simulated OAO data at redshifts \(z_i,\) we need the age of the Universe today. For simplicity, we simulate the age of the Universe with the same error as for the astrophysical objects \(\sigma _U = \sigma _i.\) The constraints using the lookback time are shown in Fig. 5 in dotted red lines. We observe they are consistent with the whole Gaussian result and recover the correct values used in the simulation with marginalized constraints given by \(H_0 = 70.04 \pm 0.75 \, \text {km}\,\text {s}^{-1}\text {Mpc}^{-1},\) \(\Omega _m = 0.2980 \pm 0.0103,\) and \(df = 0.219 \pm 0.035 \, \text {Gyr}\) (for \(\sigma _i = 0.05 \, \text {Gyr}\)); and \(H_0 = 71.32 \pm 3.35 \, \text {km}\,\text {s}^{-1}\text {Mpc}^{-1},\) \(\Omega _m = 0.3019 \pm 0.0551,\) and \(df = 0.240 \pm 0.122 \, \text {Gyr}\) (for \(\sigma _i = 1 \, \text {Gyr}\)).

5 Reanalyzing the OAO data

In the previous section, we discovered that our assumption about the likelihood of the ages of OAO data can artificially introduce a tension between the inferred value for the Hubble constant and the actual one. Therefore, we now reanalyze the real data in Sect. 3 using the whole Gaussian likelihood. Our constraints are presented in Fig. 6. We consider both the 114 OAO data together and also the constraints coming from galaxies or quasars separately. Figure 2 already indicates that the data from galaxies and quasars are not consistent with each other, and we actually observe this in the plot \(\Omega _m \times H_0\) of Fig. 6. The origin for this inconsistency is not clear for us yet, but unless it can be fixed, these two data sets should be treated separately.Footnote 2

Fig. 6
figure 6

2D and 1D marginalized posterior distribution using the age method with the real data and a likelihood assuming the whole Gaussian. We show the 68% CL and 95% CL for \(H_0,\) \(\Omega _m,\) and the delay factor df

Figure 6 also tells us that the constraints from the ages of the OAO are still weak. The data, especially for quasars, tend to \(\Omega _m > 0.4.\) However, we fix our prior to \(\Omega _m \in [0.2, 0.4],\) which is consistent with previous works and is also large enough to contain any realistic cosmology. Therefore, our results move the posterior from slightly disfavoring local measurements as in Sect. 3 to favoring them. The marginalized average and 68% CL values we obtain are \(H_0 = 75.79 \pm 7.05 \, \text {km}\,\text {s}^{-1}\text {Mpc}^{-1},\) \(\Omega _m = 0.2791 \pm 0.0558,\) and \(df = 0.131 \pm 0.051 \, \text {Gyr}\) (only galaxies); \(H_0 = 91.67 \pm 6.30 \, \text {km}\,\text {s}^{-1}\text {Mpc}^{-1},\) \(\Omega _m = 0.3416 \pm 0.0426,\) and \(df = 0.179 \pm 0.057 \, \text {Gyr}\) (only quasars); and \(H_0 = 73.44 \pm 6.89 \, \text {km}\,\text {s}^{-1}\text {Mpc}^{-1},\) \(\Omega _m = 0.2994 \pm 0.0566,\) and \(df = 0.372 \pm 0.042 \, \text {Gyr}\) (for both).

6 Conclusions

The tension in the Hubble constant between the value measured from low redshift data and inferred from the CMB data is a major problem in cosmology today. It is still not clear if this tension originates from systematic effects in our data or from new physics. Therefore, the use of new and independent data is crucial to understand this phenomenon. It has then been proposed that the ages of the OAO can help shedding light in this matter.

Although it is true that the OAO provide an independent source to study this tension, we show that the methodology can also artificially introduce some tension. We discuss how this can happen and be influencing some previous works, and propose another way to analyze the ages of the OAO. We test those methods using a full controlled simulation and also reanalyze real age-redshift data.

The ages of the OAO with a whole Gaussian likelihood produces results similar to the lookback time if the uncertainty is small. But the later also depends on the age of the Universe, which is used as an anchor for all lookback time measurements. Therefore, we prefer to consider the first case only in order to obtain results about the Hubble tension. Our constraints are still weak, but favors low redshift measurements in contrast to the Planck result.

Finally, we also show that the ages of quasars as in Fig. 2 are not consistent with the ages of galaxies. It is not possible, in the \(\Lambda \)CDM model, to find parameters that are simultaneously compatible with both of them. It is not clear for us yet the origin of such disagreement, but it seems to be related with the calibration of their ages.