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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T00:36:39+00:00 2026-06-07T00:36:39+00:00

I computed CDF of my empirical distribution using ecdf() function in Matlab for a

  • 0

I computed CDF of my empirical distribution using ecdf() function in Matlab for a distribution with 10,000 values. However, the output that I get from it contains only 9967 values. How can I get total 10,000 values for my CDF? 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-07T00:36:42+00:00Added an answer on June 7, 2026 at 12:36 am

    From a distribution with 10’000 values you’d expect an output of length 10’001. Most likely, your distribution contains 44 NaNs, or duplicate values. The former you check with sum(isnan(data(:)), the latter with length(unique(data(:)).

    >> out = ecdf(1:5)
    out =
             0
        0.2000
        0.4000
        0.6000
        0.8000
        1.0000
    >> length(out)
    ans =
         6
    >> out = ecdf([1:5,NaN,NaN])
    out =
             0
        0.2000
        0.4000
        0.6000
        0.8000
        1.0000
    >> length(out)
    ans =
         6
    >> out = ecdf([1:5,5,5])
    out =
             0
        0.1429
        0.2857
        0.4286
        0.5714
        1.0000
    >> length(out)
    ans =
         6
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a computed observable that uses ko.toJS() to post values (inner observables) from
Problem I have computed a probability density function that depends on two variables. I
Is there a way for me to get an element's computed style from a
I would have dared say that the numeric values computed by Fortran and C++
I have a computed function that notifies a button if it should be disabled
I have a ko.computed() function that proxies a collection like this: function ListView(query) {
Is it possible to reorder x values using a computed y via stat_summary? I
I have some values that are computed over collections, and may or may not
Is there any function that allow me to compute the CDF probability of a
I have a const int that is computed at compile time in my Managed

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.