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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T04:09:08+00:00 2026-06-10T04:09:08+00:00

The truncated normal is given by: dtnorm<- function(x, mean, sd, a, b) { dnorm(x,

  • 0

The truncated normal is given by:

dtnorm<- function(x, mean, sd, a, b) {
dnorm(x, mean, sd)/(pnorm(b, mean, sd)-pnorm(a, mean, sd))
}
ptnorm <- function(x, mean, sd, a, b) {
(pnorm(x,mean,sd) - pnorm(a,mean,sd)) / 
  (pnorm(b,mean,sd) - pnorm(a,mean,sd))
}

The fit is given by:

fitdist( data, tnorm, method="mle",
                    start=list(mean=mapply("[[", results[1], 1),
                               sd=mapply("[[", results[1], 2)),
                    fix.arg=list(a=minLoose,b=maxLoose))

Where results[i] is a matrix with the mle results of fitdist using normal instead of tnormal.

I get the following results for tnorm:

mean=-0.00844725266454969, sd=0.012540928272073

whereas with norm:

mean=0.00748402597402597, sd=0.00614293813955003

The data is all larger than 0 and smaller than 0.04 so the mle obtained for tnorm does not seem right…. Any advise?

Thanks!

  • 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-10T04:09:10+00:00Added an answer on June 10, 2026 at 4:09 am

    The fact that your data is all above normal (er, rather above 0) has little bearing on whether the “mean” of best fit to a truncated distribution does or doesn’t exceed 0. You are fitting a right tail of a Normal distribution to your data. The estimated location parameter for the truncated is not really a mean, but rather where the mean would be in an uncensored dataset with a right tail of the same density “shape” as your data. (This is really a stats question rather than an R question.)

    You can find the formula to calculate the expected value of a doubly truncated Normal at the moments section of the Wikipedia article:
    http://en.wikipedia.org/wiki/Truncated_normal_distribution It is readily translatable into calls to pnorm and qnorm.

    A further thought: Check out the facilities for working with truncated distributions in packages: ‘gamlss’ and ‘gamlss.tr’.

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

Sidebar

Related Questions

relocation truncated to fit: R_X86_64_PC32 against `.bss' I'm getting this linker error in g++
This is a sample document holding OHLC stock data, truncated (via python print). {
My percentages get truncated by the default java.text.MessageFormat function, how do you format a
String or binary data would be truncated. linq exception, cant find which field has
This morning I truncated my transaction before it's hourly backup. Since I truncated the
SHA384 is a truncated version of SHA512. But why would anyone use it? And
Why is my shellcode is truncated after \x20 opcode, when it is copied by
I received the following crash report (truncated) Exception Type: EXC_CRASH (SIGSEGV) Exception Codes: 0x00000000,
How do I get the text that has been truncated by Android into an
The essence of the ie6 bug (dropdown entries must be truncated via overflow hidden

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.