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 9073737
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T18:29:10+00:00 2026-06-16T18:29:10+00:00

I would like to solve an equation as below, where the X is the

  • 0

I would like to solve an equation as below, where the X is the only unknown variable and function f() is a multi-variate Student t distribution.
More precisely, I have a multi k-dimensional integral for a student density function, which gives us a probability as a result, and I know that this probability is given as q. The lower bound for all integral is -Inf and I know the last k-1 dimension’s upper bound (as given), the only unknown variable is the first integral’s upper bound. It should have an solution for a variable and one equation. I tried to solve it in R. I did Dynamic Conditional Correlation to have a correlation matrix in order to specify my t-distribution. So plug this correlation matrix into my multi t distribution “dmvt”, and use the “adaptIntegral” function from “cubature” package to construct a function as an argument to the command “uniroot” to solve the upper bound on the first integral. But I have some difficulties to achieve what I want to get. (I hope my question is clear) I have provided my codes before, somebody told me that there is problem, but cannot find why there is an issue there. Many thanks in advance for your help.

I now how to deal with it with one dimension integral, but I don’t know how a multi-dimension integral equation can be solved in R? (e.g. for 2 dimension case)

\int_{-\infty}^{X}
    \int_{-\infty}^{Y_{1}} \cdots
       \int_{-\infty}^{Y_{k}}
           f(x,y_{1},\cdots y_{k})
      d_{x}d_{y_{1},}\cdots d_{y_{k}} = q

This code fails:

require(cubature) 
require(mvtnorm) 
corr <- matrix(c(1,0.8,0.8,1),2,2)
f <- function(x){ dmvt(x,sigma=corr,df=3) } 
g <- function(y) adaptIntegrate(f, 
                  lowerLimit = c( -Inf, -Inf), 
                  upperLimit = c(y, -0.1023071))$integral-0.0001    
uniroot( g, c(-2, 2)) 
  • 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-16T18:29:11+00:00Added an answer on June 16, 2026 at 6:29 pm

    Since mvtnorm includes a pmvt function that computes the CDF of the multivariate t distribution, you don’t need to do the integral by brute force. (mvtnorm also includes a quantile function qmvt, but only for “equicoordinate” values.)

    So:

    library(mvtnorm)
    g <- function(y1_upr,y2_upr=-0.123071,target=1e-4,df=3) {
        pmvt(upper=c(y1_upr,y2_upr),df=df)-target
    }
    uniroot(g,c(-10000,0))
    ## $root
    ## [1] -17.55139
    ## 
    ## $f.root
    ## [1] -1.699876e-11
    ## attr(,"error")
    ## [1] 1e-15
    ## attr(,"msg")
    ## [1] "Normal Completion"
    ## 
    ## $iter
    ## [1] 18
    ## 
    ## $estim.prec
    ## [1] 6.103516e-05
    ## 
    

    Double-check:

    pmvt(upper=c(-17.55139,-0.123071),df=3)
    ## [1] 1e-04
    ## attr(,"error")
    ## [1] 1e-15
    ## attr(,"msg")
    ## [1] "Normal Completion"
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to solve rounding mechanism by using php4,5.2 and below (not 5.3)
I have an equation which I would like to solve for values of m
I have a quintic function (5th degree polynomial) and I would like to solve
I would like solve the problem (now hypothetical but propably real in future) of
I have an interesting genetics problem that I would like to solve in native
I'm having a simple test design problem, which I would like to solve once
I would like your advice about how best to solve my problem. In a
I would like to find a better algorithm to solve the following problem: There
I need to solve a job affectation problem and I would like to find
Trying to solve this problem . I would like to learn how the bootstrapper

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.