Skip to content

astroboy-10/Hubble-s_Constant

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Overview: Generate Simulated Data: We will create a synthetic dataset of distance measurements versus redshift. Define a Model: We'll define a simple linear model to relate distance and redshift, which is appropriate for cosmological distances. MCMC Sampling: Use the MCMC method to sample from the posterior distribution of the Hubble constant. Plotting: Visualize the results to show how the Hubble speed changes with redshift.

Libraries Needed: You will need the following Python libraries:

NumPy for numerical operations. Matplotlib for plotting. SciPy for scientific computations. emcee, a Python library for MCMC.

pip install numpy matplotlib scipy emcee

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published