Planning and analyzing a 2-level full factorial design in Python

  Рет қаралды 4,118

Marcel Butschle

Marcel Butschle

Күн бұрын

Пікірлер: 22
@Imran_et_al
@Imran_et_al 27 күн бұрын
Great Explanation. Thanks for the video and code...!
@MarcelButschle
@MarcelButschle 26 күн бұрын
Your welcome!
@PierriDellaBruna
@PierriDellaBruna 10 ай бұрын
Great video! Really valuable material. Congratulations :)
@MarcelButschle
@MarcelButschle 10 ай бұрын
Thank you!
@fightchris7359
@fightchris7359 Жыл бұрын
Nice, explained very well. I like the approach to let ChatGPT write most of the code. Keep going!
@MarcelButschle
@MarcelButschle Жыл бұрын
Thank you fightchris! Highly appreciated. Yes, ChatGPT makes it extremely easy to write code. Saves a lot of time and it makes it very easy to get started also when you are less experienced.
@sebastianoverri9482
@sebastianoverri9482 7 ай бұрын
Love your work. Thanks, your teaching is very clear even for a newby inthe subject like me.
@MarcelButschle
@MarcelButschle 6 ай бұрын
Thank you! Highly appreciated feedback :)
@christophersaid8985
@christophersaid8985 10 ай бұрын
This is great, thanks for posting. I work at a startup that's extremely cheap, so having DOE capabilities in python is very cool. Would you be able to share the actual Jupyter Notebook? I couldn't find it on your site.
@MarcelButschle
@MarcelButschle 10 ай бұрын
Hey, sure! If you send me an email I can send you the actual Jupyter Notebook file. marcel.butschle@icloud.com
@victorrossing6484
@victorrossing6484 Ай бұрын
I have a problem when doing DOE in python. Lets say we have a 2^2 experiment single replicate with 5 centerpoints, then we have 4 degrees of freedom. One each of x1, x2, x1x2, whereby we only have one combined for x1^2 and x2^2, hence we need a pure quadratic term for these two combined, as they cant be separated. However OLS cant give me the pure quadratic term (just gives me an estimate of x1^2, which is equal to the estimate of x2^2), do you have a solution or another package you know that works? Code attached (chatGPT cant find a solution): test=pd.DataFrame({}) test["x1"]=[-1,-1,1,1,0,0,0,0,0] test["x2"]=[-1,1, -1,1, 0, 0, 0, 0,0] test["response"]=[39.3,40,40.9,41.5,40.3,40.5,40.7,40.2,40.6] model_poly = ols('Q("response") ~ x1 + x2 + I(x1 * x2) + I(x1**2 +x2**2)', data=test).fit() print(model_poly.summary())
@MarcelButschle
@MarcelButschle Ай бұрын
Hey, if you perform a 2^2 design with 5 centerpoints then you have a total of 4+5=9 runs which results in 9-1=8 degrees of freedom. Hence, you should be fine with estimating the squared terms individually, or am I completely off?
@BarisDuygu-q2u
@BarisDuygu-q2u 4 ай бұрын
Hey Marcel, Ive got the issue, that the results I have had some slip region included. Now of course when I remove these points, my cubic won't be complete. I tried to make a model based on the remaining runs, Used anova for this.
@MarcelButschle
@MarcelButschle 4 ай бұрын
Hey Baris, then you are dealing with an unbalanced design. That is not necessarily a problem and ANOVA might still work.
@BarisDuygu-q2u
@BarisDuygu-q2u 3 ай бұрын
Should I remove these points? As my model should actually be able to have an error less then 1 mm. If I include this points, the model seem to have high error.
@MarcelButschle
@MarcelButschle 3 ай бұрын
Well that depends… how many points do you have in total? And how many replicates did you include into your design? Would it make sense to measure these points that you want to exclude again? Is your prediction still valid when you exclude the points? What happens if you try to predict the results for new parameters that the model was not trained on?
@rusty-y8r
@rusty-y8r 6 ай бұрын
pydoe2 is not not importing well in anaconda python.. it says imp is needed but i cannot install imp in newer version of python. Can someone share what python version works for pydoe2?
@MarcelButschle
@MarcelButschle 6 ай бұрын
Hey, I am using python version 3.11.7 and it works fine.
@danread1217
@danread1217 6 ай бұрын
I had this recently. Try rolling back your Python version to 3.9.19. Seems pyDOE2 hasn't been updated for some time.
@danread1217
@danread1217 6 ай бұрын
Also, try pyDOE3. It is a recent fork of pyDOE2 and is currently being maintained.
@mohammedbenali7546
@mohammedbenali7546 8 ай бұрын
Thank you for this video. Please, if possible how we can do doehlert design in python, Video the scientific community please.
@MarcelButschle
@MarcelButschle 8 ай бұрын
Hi Mohammed, my approach is to keep it simple. I am aware that there are many different designs that can be very useful to some people but 90% of people will be fine with the combination of fractional design, full factorial design and central composite design. Therefore I am not planning to look into these „specialty designs“.
An example of a 1/2 fractional design
10:06
Marcel Butschle
Рет қаралды 434
So Cute 🥰 who is better?
00:15
dednahype
Рет қаралды 19 МЛН
Сестра обхитрила!
00:17
Victoria Portfolio
Рет қаралды 958 М.
Central Composite Designs in JMP Software
14:45
PegaAnalytics
Рет қаралды 667
Full Factorial Experiments Explained
10:21
Jordan Louis Edmunds
Рет қаралды 15 М.
What is a qq-plot and why is it important?
4:25
Marcel Butschle
Рет қаралды 969
Factorial vs fractional vs response surface designs | when to use what?
7:24
Curve Fitting in Python (2022)
24:50
Mr. P Solver
Рет қаралды 101 М.
DOE-5: Fractional Factorial Designs, Confounding and Resolution Codes
13:29
Institute of Quality and Reliability
Рет қаралды 52 М.
Why Does Diffusion Work Better than Auto-Regression?
20:18
Algorithmic Simplicity
Рет қаралды 398 М.
DOE Crash Course for Experimenters
1:01:40
Statistics Made Easy by Stat-Ease
Рет қаралды 5 М.
Factorial Designs 1:  Introduction
17:26
Dr. Kristin Atchison
Рет қаралды 130 М.