Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7809103
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T03:19:22+00:00 2026-06-02T03:19:22+00:00

I have a joint density function for two independent variables X and Y. And

  • 0

I have a joint density function for two independent variables X and Y. And I now want to sample new x,y from this distribution.

What I believe I have to do is to find the joint cumulative distribution and then somehow sample from it. I kinda know how to do this in 1D, but I find it really hard to understand how to do it in 2D.

I also used the matlab function cumtrapz to find the cumulative distribution function for the above pdf.

Just to be clear, what i want to do is to sample random values x,y from this empirical distribution.

Can someone please point me in the right direction here?!

EDIT: I have data values and I use
[pdf bins] = hist3([N Y])

I then normalize the pdf and do

cumulativeDistribution = cumtrapz(pdfNormalize)

And yes (to the comment below) X,Y are suppose to be independent.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T03:19:23+00:00Added an answer on June 2, 2026 at 3:19 am

    If you know how to sample a distribution in 1D then you can extend it to 2D. Create the marginal distribution for X. Take a sample from that, say X1. Then in your 2D distribution fix one variate X=X1 and sample for Y, i.e., sample Y from 1D distribution fXY(X1, Y).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Considering I have a continuous joint distribution of two independent normal random variables (let's
I have used a join query for retrieving value from two tables one is
I am having problem in joint two subqueries in MySQL, e.g. (select * from
Hello I have this code with a compiler error (error is from Microsoft Visual
I have a matrix in R that represents the joint probability mass function (pmf)
I am new to Box2d and have a situation where I have two bodies.
I have data in two tables (see below for a sample) - how do
I have two Python lists of dictionaries, entries9 and entries10 . I want to
I have this query which is running perfectly From this query I am selecting
I have a join in a oracle query which looks like: FROM eiv.table1 eiv.table2

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.