Skip to content

Stress-strength interference - #377

Merged
derrynknife merged 2 commits into
devfrom
feat/stress-strength
Nov 4, 2026
Merged

derrynknife merged 2 commits into
devfrom
feat/stress-strength

Conversation

@derrynknife

Copy link
Copy Markdown
Owner

Adds stress_strength and stress_strength_over_time: the chance a strength exceeds a stress, R = P(strength > stress), for two independent fitted models in one shared unit (not checked).

  • Closed forms: both Normal, both LogNormal, both Exponential, both Weibull with a common shape (repeated loads too for the last two); otherwise quadrature over the stress's probability (Gauss-Kronrod, as the mean-lifetime integral), or method="simulate".
  • n_loads: survive the largest of n independent stresses.
  • uncertainty="fit": bounds from independent draws of both models' parameter covariances; refused clearly when a model has none.
  • stress_strength_over_time: the user supplies the strength model at each age (no degradation law, no physics of failure).
  • New result types, guide page with a verified worked example, API page, CHANGELOG line, tests (closed forms, symmetry, monotonicity, quadrature vs simulation within 4 SE, refusals).

Tested locally: the new tests plus test_api_docstrings, test_docs_examples, test_help, test_result_objects and test_readme_capabilities. No version bump.

🤖 Generated with Claude Code

https://claude.ai/code/session_019Km2eWBiPJ5JNkme3vRg4B

derrynknife and others added 2 commits November 3, 2026 21:58
…er_time)

P(strength > stress) for two independent fitted models: closed forms for
Normal, LogNormal, Exponential and common-shape Weibull pairs, quadrature
otherwise, repeated loads, simulation, parameter-uncertainty bounds, and a
strength given at each age.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019Km2eWBiPJ5JNkme3vRg4B
@derrynknife
derrynknife merged commit 584de0e into dev Nov 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant