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

  • SEARCH
  • Home
  • 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 6810901
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T20:15:43+00:00 2026-05-26T20:15:43+00:00

Trying to create a table for quantiles of the sum of two dependent random

  • 0

Trying to create a table for quantiles of the sum of two dependent random variables using built-in copula distributions (Clayton, Frank, Gumbel) with Beta marginals. Tried NProbability and FindRoot with various methods — not fast enough.
An example of the copula-marginal combinations I need to explore is the following:

nProbClayton[t_?NumericQ, c_?NumericQ] := 
        NProbability[  x + y <= t, {x, y}  \[Distributed]    
               CopulaDistribution[{"Clayton", c}, {BetaDistribution[8, 2], 
                                                   BetaDistribution[8, 2]}]]

For a single evaluation of the numeric probability using

nProbClayton[1.9, 1/10] // Timing // Quiet

I get

{4.914, 0.939718}

on a Vista 64bit Core2 Duo T9600 2.80GHz machine (MMA 8.0.4)

To get a quantile of the sum, using

FindRoot[nProbClayton[q, 1/10] == 1/100, {q, 1, 0, 2}// Timing // Quiet

with various methods

( `Method -> Automatic`, `Method -> "Brent"`, `Method -> "Secant"` ) 

takes about a minute to find a single quantile: Timings are

{48.781, {q -> 0.918646}}
{50.045, {q -> 0.918646}}
{65.396, {q -> 0.918646}}

For other copula-marginal combinations timings are marginally better.

Need: any tricks/methods to improve timings.

  • 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-05-26T20:15:44+00:00Added an answer on May 26, 2026 at 8:15 pm

    The CDF of a Clayton-Pareto copula with parameter c can be calculated according to

    cdf[c_] := Module[{c1 = CDF[BetaDistribution[8, 2]]}, 
       (c1[#1]^(-1/c) + c1[#2]^(-1/c) - 1)^(-c) &]
    

    Then, cdf[c][t1,t2] is the probability that x<=t1 and y<=t2. This means that you can calculate the probability that x+y<=t according to

    prob[t_?NumericQ, c_?NumericQ] := 
       NIntegrate[Derivative[1, 0][cdf[c]][x, t - x], {x, 0, t}]
    

    The timings I get on my machine are

    prob[1.9, .1] // Timing
    
    (* ==> {0.087518, 0.939825} *)
    

    Note that I get a different value for the probability from the one in the original post. However, running nProbClayton[1.9,0.1] produces a warning about slow convergence which could mean that the result in the original post is off. Also, if I change x+y<=t to x+y>t in the original definition of nProbClayton and calculate 1-nProbClayton[1.9,0.1] I get 0.939825 (without warnings) which is the same result as above.

    For the quantile of the sum I get

    FindRoot[prob[q, .1] == .01, {q, 1, 0, 2}] // Timing
    
    (* ==> {1.19123, {q -> 0.912486}} *)
    

    Again, I get a different result from the one in the original post but similar to before, changing x+y<=t to x+y>t and calculating FindRoot[nProbClayton[q, 1/10] == 1-1/100, {q, 1, 0, 2}] returns the same value for q as above.

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

Sidebar

Related Questions

I'm trying to create a table with two columns comprising the primary key in
I am trying to create a table in MySql using php. My code looks
I'm trying to create the following table using phpmyadmin sql console: CREATE TABLE dates
So I'm trying to create a federated table using the syntax from the docs
I am trying to create table (orderdetails2); the table has two FKs and a
I'm trying to create a foreign key on two columns of a table to
I am trying to create table using TTTableViewController . I want to display an
I'm trying to create a table in my sql using PHP but I'm not
I am trying to create a relation/table in Oracle that is between two many
I am trying to create a table with the following: CREATE TABLE GTW_WORKFLOW_MON (

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.