An illustrative web-based application for Design of Experiments (DOE) analysis built with Streamlit. The application enables interactive exploration of factorial designs, fractional factorial designs, one-way ANOVA, planned contrast analysis, conjoint analysis, and regression modeling, with real-time visualization and statistical output.
This project provides an educational and exploratory environment for understanding experimental design and statistical inference. Users can define factors, adjust model coefficients, generate synthetic data, and immediately inspect statistical and graphical outputs.
- Two-level factorial designs (2 factors, 2 levels)
- Three-factor factorial designs (3 factors, 3 levels)
- Customizable factor and level names
- Interactive data generation with user-defined coefficients
- Boxplots, surface plots, and regression modeling
-
Fractional factorial designs (2^(k−p)):
- Resolution III, IV, and V designs
- 3D cube visualizations
- Aliasing structure inspection
-
Choice-based conjoint analysis:
- Interactive choice tasks
- Part-worth utility estimation using logistic regression
-
Post-hoc analysis (Tukey HSD):
- Pairwise comparisons
- Grouping summaries in Minitab-style format
- Pareto plots for identifying dominant main and interaction effects
- Daniel (normal) plots for distinguishing active effects from noise
- Three-level factor design (15 replications per level)
- Customizable factor and level names
- Boxplot visualization of group effects
- ANOVA table and linear regression summary
- Graphical representation of SST, SSTR, and SSE
- Dedicated page to define and test user-selected contrast coefficients
- t-test and confidence interval for a planned contrast
- Scheffe simultaneous confidence interval for contrast comparisons
- Standardized contrast output and level-by-level contribution table
- Visual relationship between treatment means and contrast coefficients
- Regression equations in readable mathematical form
- ANOVA summary tables and OLS model results
- CSV export for generated datasets and Tukey HSD reports
git clone https://github.com/eitt/DOE.git
cd DOEUse Python 3.10 or 3.11.
pip install -r requirements.txtstreamlit run mainapp.py- Navigate to the Factorial Design section.
- Define factor names (e.g., Temperature, Pressure, Thinner).
- Specify factor levels (e.g., Low, Medium, High).
- Adjust model coefficients to simulate different effect structures.
- Inspect visual outputs (boxplots, surface plots, Pareto plots, Daniel plots) and regression summaries.
- Open the One-Way ANOVA section.
- Define the factor name (e.g., Material Type).
- Rename levels (e.g., Plastic, Metal, Wood).
- Set level coefficients to control effect magnitude.
- Review the ANOVA table, regression output, and Tukey HSD groupings.
- Open the Contrast Analysis and Factor Relationships section.
- Define treatment labels, treatment means, and contrast coefficients.
- Verify the contrast rule
sum(c_i)=0. - Inspect contrast estimate, t-test, CI, and Scheffe CI.
- Interpret the contribution plot and coefficient-vs-mean relationship chart.
-
Fractional factorial: Select the design configuration to review required runs, aliasing structure, and 3D factor space representation.
-
Conjoint analysis: Complete the interactive choice tasks. The application generates a dataset and estimates logistic regression coefficients with corresponding odds ratios.
-
Practice cases: Download missing-data and contrast-focused datasets for guided exercises in one-way ANOVA, RCBD, factorial 2x2, and planned contrasts.
All generated datasets and post-hoc comparison tables can be exported as CSV files directly from the interface.
- Use a supported Python runtime (
python-3.11) inruntime.txt. - Avoid unnecessary heavy packages (for this app,
matplotlibis not required). - If deployment starts failing after package updates, clear app cache and redeploy.
- Keep package bounds compatible (example:
statsmodels>=0.14,<1withnumpy>=1.24,<3).
To deploy on Streamlit Cloud:
- Keep
requirements.txtminimal and use bounded version ranges (e.g.,streamlit>=1.33,<2). - Push the repository to GitHub.
- Create a new application in Streamlit Cloud.
- Set the entry point to
mainapp.py. - Deploy the application.
- Use a supported runtime (e.g.,
python-3.11inruntime.txt). - Avoid unnecessary heavy dependencies.
- Clear cache and redeploy if dependency conflicts arise.
- Maintain compatible version ranges (e.g.,
statsmodels>=0.14,<1withnumpy>=1.24,<3).
- Response Surface Methodology (RSM) extensions.
- Support for user-uploaded experimental datasets.
Developed by Leonardo H. Talero-Sarmiento
Profile: https://apolo.unab.edu.co/en/persons/leonardo-talero