Comments (4)
Short answer is partially yes.
First of all, if your goal is to address categorical variables, then I am not aware of theory that allows for the use of polynomial chaos expansions.
If you have discrete variables with high (or countable infinite) number of random states, then the theory allows for that, but I haven't implemented a framework for it. That being said, I can think of more than one way to make a 5 liner hack that allows for it anyways, but that depends a little on the problem.
Do you have a minimal example I can take a look at (that isn't categorical)?
from chaospy.
No I'm sorry I don't have such example.
My problem is sensitivity analysis for a NDT (non destructive test) where the defect type in the material is categorical.
And the probability of the defect type depends on the charasteristic of the material
So the categorical variable is dependent to other variables too.
I was just looking for Sensitivity analysis method rather global with dependencies and type of variables.
from chaospy.
Sorry the late reply, I had to ask a friend about the sensitivity analysis part, since he is more familiar. Here is his response. I hope it is useful.
If the model is linear, and non additive:
linear regression with standardized sensitivity coefficients (standardized regression coefficients) might be a way to go.
I think GPC or MC with variance based sobol indices should work.
You need to reformulate your problem such you can apply it.
If you have a categorical variable with a probability function you might be able to define
it differently such as a range from 0 to 1 instead of 0 or 1.
If you MC-cost function is a step function which jumps by 1 for all defects your you might also be able to do variance based sensitivity on it.From this little information I can not see how it should be done.
Since the description of the problem is crucial.
from chaospy.
I consider the issue as resolved.
If you consider that not to be the case, or if there are other problems related to the same issue, feel free to re-open.
from chaospy.
Related Issues (20)
- Hi,jonathf. It seems that this function "cp.orth_ttr" is not available in the latest chaospy version. Isn't it? Glad for your reply!
- Hi,jonathf! It seems like this link has been invalid. :( Could you help me? Thank you
- Hi,jonathf! HOT 11
- Mean value of PCE. HOT 3
- memory leak in GaussianKDE HOT 2
- SEIR model: plot the data with uncertainty intervals HOT 2
- Rationale behind the bounds for normal distribution HOT 2
- Chaospy variable in an exponential function HOT 8
- Latin hypercube sampling, rule="L" HOT 2
- TruncNormal changed meaning for lower and upper for version >4.3.6 HOT 4
- Error in moments with more than 10 variables HOT 4
- chaospy.approximate_moment(normal, [2]) doesn't run HOT 1
- Divergence for higher orders using Pseudo-spectral projection HOT 3
- Problem Defining dependant random variables with absolute and minimum operators HOT 4
- cp.fit_regression()has no atrribute 'A' HOT 1
- The test chaospy/distributions/sampler/sequences/additive_recursion.py hangs
- sampling for several times or one-shot at one time HOT 1
- Depreciation pkg_resources HOT 1
- Uniform distribution with lower and upper band functions HOT 3
- Transform dependent distribution HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chaospy.