Skip to content

This project is a simple implementation of the Latin Hypercube Sampling (LHS) method using Python. Its primary purpose is to demonstrate how LHS can be used to efficiently estimate expected values from random distributions or stochastic processes by ensuring better coverage of the input space compared to traditional random sampling.

Notifications You must be signed in to change notification settings

zenklinov/Latin-Hypercube-Sampling

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Latin-Hypercube-Sampling

License Python Sampling Statistics Streamlit Status

This project is a simple implementation of the Latin Hypercube Sampling (LHS) method using Python. Its primary purpose is to demonstrate how LHS can be used to efficiently estimate expected values from random distributions or stochastic processes by ensuring better coverage of the input space compared to traditional random sampling.

Use Cases: Engineering design simulations, uncertainty quantification.

Live Web App (Streamlit)

A live version of this project is available as a web app powered by Streamlit. Try it out here:

🔗 Try the App on Streamlit


Repository Contents

  • lhs.py: Main Python script containing the LHS sampling logic.
  • requirements.txt: Lists the dependencies required to run the application.
  • README.md: This documentation file.

How to Run Locally

  1. Clone this repository:
git clone https://github.com/zenklinov/Latin-Hypercube-Sampling.git
cd Latin-Hypercube-Sampling
  1. (Optional) Create and activate a virtual environment:
python -m venv env
source env/bin/activate        # On Linux/macOS
env\Scripts\activate.bat       # On Windows
  1. Install the required dependencies:
pip install -r requirements.txt
  1. Run the Streamlit app:
streamlit run lhs.py

About

This project is a simple implementation of the Latin Hypercube Sampling (LHS) method using Python. Its primary purpose is to demonstrate how LHS can be used to efficiently estimate expected values from random distributions or stochastic processes by ensuring better coverage of the input space compared to traditional random sampling.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages