sample from arbitrary continuous distribution

Say I have a very complicated probability distribution function: x^(-2)*y^(-3)*exp(-z/t), where x y z t are all continuous positive numbers. The integration in x,y,z,t space is not 1, so there has to be some scaling factor. How can I devise a function, or is there a convenient function with some symbolic that allows me to sample a random, continuous set of numbers from this distribution? What if I want to sample a full conditional distribution, say x, with y,z,t as known?

NOTE:-

Matlabsolutions.com provide latest MatLab Homework Help,MatLab Assignment Help for students, engineers and researchers in Multiple Branches like ECE, EEE, CSE, Mechanical, Civil with 100% output.Matlab Code for B.E, B.Tech,M.E,M.Tech, Ph.D. Scholars with 100% privacy guaranteed. Get MATLAB projects with source code for your learning and research.

There are two key elements to your problem:

  • Sampling from an arbitrary distribution
  • Sampling from a multivariate distribution (and are those variables correlated?)

To do the first part — for example just getting samples from x^(-2) — there is a method using the inverse of the cdf. I suggest you take a look at this thread in the old MATLAB forum to get started.

If you have independent variables, then you can just multiply the distributions of each variable. If you have dependent variables, then your best bet is to use the copula approach.

There are examples in that documentation that will help you get started. I suggest that you try some baby steps for each of th

SEE COMPLETE ANSWER CLICK THE LINK

--

--

--

Simple! That is me, a simple person. I am passionate about knowledge and reading. That’s why I have decided to write and share a bit of my life and thoughts to.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

ICM Media Final Project

Select columns and rows in pandas Dataframe.

3 Data Models to Instantly Improve Your Data Mining Strategy

What’s new in TensorFlow 2.4

Ram Poll Crosstabs: An R Shiny App

Insurance Risk Classification

The Moving Curve: Episode 19

End-to-End Machine Learning Workflow [Part 1]

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Technical Source

Technical Source

Simple! That is me, a simple person. I am passionate about knowledge and reading. That’s why I have decided to write and share a bit of my life and thoughts to.

More from Medium

Predictor Importance for Bagged Trees in Classification Learner App??

Exploring Star Data Using Machine Learning

Quoted Insurance Plan Prediction

Getting started with Data Science — Part 1