1 Introduction

There is a discrepancy between the large scale estimations based on the cosmic microwave background (CMB) radiation [1, 2], and the value obtained analyzing low redshift SNe [3]. The SNe analysis is based on the assumption that the Universe is well described by a spatially homogeneous solution of the Einstein’s equations, but only an unbiased analysis can actually confirm the validity of this assumption. In the past inhomogeneities were studied before the discovery of dark energy [4], and then as a possible alternative to dark energy [5,6,7,8,9,10], but large void models without dark energy were shown to be incompatible with multiple observations [11]. The study of the effects of inhomogeneities in presence of dark energy was then performed [12, 13], showing how they could lead to a correction of the apparent value of the cosmological constant, or affect [14, 15] the Hubble diagram. In this work we fit data without any homogeneity assumption.

Our analysis is confirming the existence of a local under-density surrounding us in different directions [1, 16, 17]. The probability of formation of such an inhomogeneity is low in the \(\Lambda {\mathrm{CDM}}\) framework, but modified gravity [18] could alleviate this problem.

Many different approaches to the explanation of the \(H_0\) tension have been proposed [19,20,21]. We do not propose any modification of the standard cosmological model, but perform an unbiased analysis of SNe luminosity distance data, including the effects of local inhomogeneities. If inhomogeneities were absent we should obtain a confirmation in our analysis.

Number count observations allow to measure directly the baryonic matter density but there are some difficulties in deducing the total density field from number counts, due for example to selection effects. For this reason another possible alternative approach is to reconstruct the total matter density distribution from its effects on the luminosity distance of standard candles [17], and standard sirens [22]. The Doppler effect is the main low redshift effect of inhomogeneities on the luminosity distance of the sources of electromagnetic waves, such as standard candles, [14, 23], due to the peculiar velocity of the sources and the observer, and a similarly also for the luminosity distance of GW sources [24].

It has been shown that [14] in the low redshift perturbative regime the monopole of the effects on the luminosity distance is proportional to the volume average of the density contrast. For an under-density this corresponds to a peculiar velocity field pointing towards the outer denser region, implying a local increase of the Hubble parameter, which could account for the apparent difference between its large and small scale estimation [14].

We adopt an unbiased approach, based on not assuming homogeneity, and use the data to determine if the local Universe is homogeneous or not. Most of the effects of local inhomogeneities could be removed by applying a redshift correction (RC), but the RC cannot remove all their effects if the depth of the galaxy catalog used for computing the RC is less than the size of the inhomogeneities [14].

2 Fitting of observational data

In this papers we present the results of analyzing data from the Pantheon catalog [25] in the CMB frame. We have also analyzed data in the heliocentric reference frame, finding negligible differences.

This data is often analyzed under the assumption that all the effects of inhomogeneities have been removed by applying RC, but as explained in [14], the 2M++ catalog [26] used to estimate the peculiar velocity to obtain the RC, is not deep enough to eliminate the effects of an inhomogeneity extending beyond its depth \(z=0.067\). The edge of the inhomogeneity we obtain in our analysis is in fact around the depth of 2M++. The effects of the homogeneity extend beyond the edge, as shown in in Fig. 1.

The observed quantity for SNe is the apparent magnitude m, while the luminosity distance \(D_L\) is a derived quantity, and is model dependent, in the sense that it depends implicitly on M, which is one of the parameters of the model.

From the definition of distance modulus \(\mu =m-M\) we have

$$\begin{aligned} D_L(z)= & {} 10^{\frac{\mu }{5}+1}=10^{\frac{m-M}{5}+1} \,, \end{aligned}$$
(1)

showing that an assumption for M has to be made in order to get \(D_L^{obs}\) from \(m^{obs}\) . These are the main advantages of using m:

  • It is not necessary to obtain \(D_L\) from m and compute the propagated errors

  • For different values of \(\{H_0,M\}\) the data set of m is the same, so the results can be plotted all together, while for \(D_L\) a different dataset of each different M has to be obtained from m.

Using m makes clear the distinction between observed data and parameters of the model, while when fitting \(D_L\) the parameter M is affecting both the model and the data \(D_L^{obs}\), making the analysis less transparent. While theoretical predictions are made in terms of \(D_L(z)\), observational data analysis in models with varying \(\{H_0,M\}\) should be more conveniently be performed in terms of m.

The theoretical model for the apparent magnitude \(m^{th}\) is obtained from the theoretical luminosity distance \(D_L^{th}\)

$$\begin{aligned} m^{th}=5 \log {D_L^{th}}-5 + M \,, \end{aligned}$$
(2)

and the monopole effects of a local inhomogeneity are computed using the formula [14]

$$\begin{aligned} D_L^{th}(z)=\overline{D_L^{th}}(z)\left[ 1+\frac{1}{3} f\overline{\delta ^{th}}(z) \right] \,, \end{aligned}$$
(3)

where \(\overline{\delta }(z)\) is the volume averaged density contrast, f is the growth factor, and \(\overline{D_L^{th}}(z)\) is the luminosity distance of the background \(\Lambda \mathrm CDM\) model. In [14] (see Fig. 2 and Sect. 6 therein) it was shown that the above equations are in very good agreement with exact numerical calculations for the type of inhomogeneities studied in this paper.

The different parameters are shown explicitly in these equations

$$\begin{aligned} D_L(\Omega _i,H_0,I_i)= & {} \overline{D_L}(\Omega _i,H_0)\left[ 1+\frac{1}{3} f\overline{\delta }(I_i) \right] \,, \end{aligned}$$
(4)
$$\begin{aligned} m(\Omega _i,H_0,M,I_i)= & {} 5 \log {D_L(\Omega _i,H_0,I_i)}-5 + M \,, \end{aligned}$$
(5)

where \(I_i\) are the parameters modeling the inhomogeneity. A homogeneous model corresponds to \(I_i=0\). Since no assumption about the homogeneity of the local Universe is made, if the Universe were homogeneous our analysis should confirm it.

As shown in [14, 17], a local inhomogeneity should only affect the luminosity distance locally, because far from the inhomogeneity the volume averaged density contrast of a finite size homogeneity is negligible, unless some higher order effect becomes dominant.

3 The model of the local inhomogeneity

We model the spherically symmetric local inhomogeneity with a density profile of the type

$$\begin{aligned} \delta ^{th}(\chi )=\delta _v [1-\theta (\chi -\chi _{v})] \,, \end{aligned}$$
(6)

where \(\delta _v\) is the density contrast inside the inhomogeneity, \(\chi _v\) is the comoving distance of the edge of the inhomogeneity, and \(\theta (x)\) is the Heaviside function. The volume averaged density contrast corresponding to the above profile is

$$\begin{aligned} \overline{\delta ^{th}}(z)= \left\{ \begin{array}{lcc} \delta _{v} &{} &{} z<z_{v} \, \\ \delta _{v} \left[ \frac{z_v(1+z_v)}{z(1+z)} \right] ^3 &{}&{} z>z_{v} \, \end{array} \right\} \,, \end{aligned}$$
(7)

where \(z_{v}\) is the inhomogeneity edge redshift. Details of the derivation of this formula are given in appendix C. The above formulae are in agreement with the general result obtained in [14], confirmed by numerical calculations for this kind of inhomogeneities, that the effects of low redshift inhomogeneities are suppressed at high redshift by the volume in the denominator of the volume average.

We minimize with respect to the two parameters \(\delta _v,z_v\) the following \(\chi ^2(\delta _v,z_v)\)

$$\begin{aligned} \chi ^2 =\sum _{i,j} [m_i-m^{th}(z_i)] C^{-1}_{ij} [m_j-m^{th}(z_j)] \end{aligned}$$
(8)

where C is the covariance matrix, \(m_i\) and \(z_i\) are the observed values of the apparent magnitude and redshift, and the sum is over all available observations.

When using the \(H_0^R\) and \(M^R\) our analysis gives results in agreement with previous studies such as [27], not finding evidence of a local inhomogeneity, while when using \(H_0^P\) and \(M^P\) we obtain evidence of a local under-density remarkably similar to that found analyzing galaxy catalogs [1]. The factor \((1+z)\) at low redshift can be safely neglected as shown in Fig. 1.

Fig. 1
figure 1

Plots of the step density contrast \(\delta \) (dashed) defined in Eq. (6), its volume average \(\overline{\delta }\) (solid) in Eq. (7), and the approximation (dotted) obtained by dropping the term \((1+z_v)/(1+z)\), for \(z_v=0.08\) and \(\delta _v=-0.4\). The inhomogeneity effects are proportional to \(\overline{\delta }\), and extend beyond the edge of the void, but are suppressed beyond the edge, implying that high redshift observations are not affected by the local inhomogeneity

4 Fitting data assuming different values of \(H_0\) and M

The importance of the absolute magnitude in the analysis of SNe data was previously noted in [28,29,30,31], and it plays an important role in assessing the presence of an inhomogeneity. The approach adopted in this paper, consisting in using different priors for \(\{H_0,M\}\) based on the model independent considerations given below, is only a first approximation. A full Bayesian analysis would be required to confirm the results, and we leave this to a future upcoming work.

From the definition of distance modulus and Eq. (1) we can derive a general model independent relation between different values of \(\{H_0,M\}\) estimated at low redshift

$$\begin{aligned} M_{a}= & {} M_{b} + 5\log _{10}\left( \frac{H_{a}}{H_{b}}\right) \,. \end{aligned}$$
(9)

Details of the derivation are given in Appendix A. For example this relation can be used to obtain the implied Planck value \(M^P\) from \(H_0^P\) and \(\{H_0^R,M^R\}\), which are the values obtained in [3]. This is the value of M which should be used when testing models with different values of \(H_0\). Using \(M^{R}\) as a prior when testing inhomogeneity, as done for example in [27, 32, 33], is inconsistent, i.e. no local prior based on assuming homogeneity should be used when testing inhomogeneity.

Another useful relation derived in the appendix is the one giving the correction to the absolute magnitude due to a local inhomogeneity

$$\begin{aligned} \Delta M= & {} 5\log _{10} \left( 1-\frac{1}{3}f \overline{\delta }(z)\right) \, , \end{aligned}$$
(10)

which shows how the absolute magnitude can be miss-estimated due to the unaccounted effects of a local inhomogeneity. This type of relation for M was used in [17] and more recently in [30]. Using the above relations and the values obtained in [3] as reference, we obtain \(M^P\) from \(H_0^P\), and fit \(m^{obs}\) with different homogeneous and inhomogeneous models assuming different values for \(\{H_0,M\}\)

In our notation \(m^{Hom }(H_0^R)\) and \(m^{Inh }(H_0^P)\) denote respectively a homogeneous model with \(\{H_0,M\}=\{H_0^R,M^R\}\) and an inhomogeneous model with \(\{H_0,M\}=\{H_0^P,M^P\}\). We use the cosmological parameters \(\Omega _i\) from the best fit of the Planck mission data [34]. The results of the fits are given in Table 1, and in in Fig. 2.

Fig. 2
figure 2

Fit of the Pantheon dataset with \(z<z_{sup}\equiv 0.15\). The relative error of m is defined as \(\Delta m/m=(m-m^{Hom }(H_0^R))/m^{Hom }(H_0^R)\) . The best fit is \(m^{Inh }(H_0^P)\) and the model \(m^{Hom }(H_0^P)\) does not provide a good fit of the data, in agreement with [27], based on the parameters \(\{H_0^P,M^P\}\), is the best fit model

Table 1 Results of the fit of the Pantheon data. The inhomogeneous models have two extra parameters, \(\{z_v,\delta _v\}\), with respect to the homogeneous models, which are taken into account in the calculation of \(\chi ^2_{red}=\chi ^2/d.o.f.\) and AIC. The \(\Delta AIC\) and \(\Delta BIC\) are defined with respect to the homogeneous model \(m^{Hom }(H_0^R)\). The inhomogeneous model \(m^{Inh }(H_0^P)\) is the best fit model, according to the \(\chi ^2_{red}\), the AIC, and the BIC, while \(m^{Inh }(H_0^R)\) is disfavored, in agreement with [27]. This shows that a small local inhomogeneity allows to fit well SNe calibrated with the value of the absolute magnitude \(M^P\) implied by \(H_0^P\). Analyzing low redshift observations ignoring the presence of such an inhomogeneity can lead to a miss-estimation of M, and the consequent apparent Hubble tension. The latter is in fact due to the M tension, i.e. the difference between \(M^R\) and \(M^P\). If the effects of the inhomogeneity were taken into account, the M tension, and consequently the \(H_0\) tension, could be removed

The model \(m^{Inh }(H_0^P)\) provides the best fit of the low redshift SNe data, while \(m^{Inh }(H_0^R)\) is disfavored, in agreement with previous studies [27]. The density contrast of the best fit under-density is not large, and the hedge is located around the depth of the catalog used in [3] for the RC. This is supporting the argument [14] that the apparent tension between \(H_0^P\) and \(H_0^R\) could be the consequence of a local inhomogeneity whose effects have not been removed by RC, because its size is comparable to the 2M++ depth. As noted in [14], the high redshift luminosity distance is not affected by the local inhomogeneity, since its effect is proportional to the volume average of the density contrast, which becomes negligible at high redshift. The inhomogeneity parameters are in good agreement with recent results of number counts analysis [1], further supporting its existence.

This kind of under-density could have been seeded by a peak of primordial curvature perturbations [35]. The statistical evidence of its presence should be considered independently of the theoretical prediction of the probability of its occurrence [36,37,38], i.e. the existence of inhomogeneities should be investigated using observational data rather than being excluded a priori from the analysis, on the basis of theoretical predictions.

The value of M is the key element in detecting or not the presence of the inhomogeneity in the SNe data. The value of \(M^R\) is obtained assuming homogeneity and could be underestimated due to the unaccounted effects of a local under-density, as shown in Eq. (10), causing the well known Hubble tension.

5 Conclusions

We have analyzed low redshift SNe data with different cosmological models. We have found that a model with a small local under-density with \(H_0=H_0^P\) can fit the data better than a homogeneous model with \(H_0=H_0^R\). The parameters of the inhomogeneity we have obtained are in good agreement with number counts observations [1].

The existence of this local under-density, if not taken into proper account, can produce a miss-estimation of all background cosmological parameters obtained under the assumption of large scale homogeneity, and it can explain for example the Hubble tension [14]. This is in agreement with the theoretical prediction of a local inhomogeneity effects, whose leading monopole perturbative contribution is proportional to the volume averaged density contrast, implying that the high redshift luminosity distance is not affected, including the distance of the last scattering surface from which the \(H_0\) is estimated with CMB observations. It is remarkable that the edge of the inhomogeneity is located around the depth of the 2M++ catalog, used to compute the peculiar velocity redshift correction. This naturally explains why the redshift correction applied to Pantheon data is not able to remove the effects of the inhomogeneity obtained in our analysis.

The analysis presented in this paper is not fully Bayesian, since the values of M are fixed without considering the effects of their respective errors. While this approach can work as a first approximation, it would be important to confirm the results with a full Bayesian analysis. In the future it will also be interesting to fit independently the values of \(H_0\) and M using low red-shift observations, without using any prior. It will also be important to confirm our results with a joint fit of other observables such as as number counts [1, 16], to include the effects of possible anisotropies, and to analyze data of higher redshift SNe.