Code Monkey home page Code Monkey logo

Comments (3)

Qazalbash avatar Qazalbash commented on July 28, 2024 1

@zeeshan5885 this is a good idea ✌️. Any mechanism that could compute the expressions of type GenericRV would make it more flexible ✊🏼 and powerful 💪🏼. Thanks for the report ❤️!

from jaxampler.

Qazalbash avatar Qazalbash commented on July 28, 2024

I see the solution to this issue in the following parts.

  1. A mechanism that can recognize multiple objects of GenericRV that are manipulated by a computational function.
  2. After the objects have been stored and the pattern has been recognized then we would have to calculate the xxfs and apply the same expression.

We can achieve this goal using Expression Trees. They are standard practice in the evaluation of expression in computer science. One potential problem that can arise in the following situation, let's suppose we have two random variables, $X:\Omega\rightarrow\mathbb{R}$ and $Y$, where $Y:\Omega^2\rightarrow\mathbb{R}$, and we combine them using addition to form $Z$.
$$Z:=X+Y\implies f_{Z}(\omega_1,\omega_2)=f_{X}(\omega_1)+f_{Y}(\omega_1,\omega_2)$$
In this case, we have to pass arguments carefully. At the moment I have only one idea to handle this situation which is to use key word arguments instead of position arguments.

from jaxampler.

Qazalbash avatar Qazalbash commented on July 28, 2024

We can also notice that only the PDFs of the random variable combine the same way as the function combines the random variable. This is not always true for other XXFs.

from jaxampler.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.