question

Lenny C avatar image
0 Likes"
Lenny C asked Craig DIckson commented

Problem with dempirical distribution

Hi,

I would like to use empirical distribution for my delay time. I have uploaded a table as global table with 2 columns. The first column contains the percentage and the second column contains the number of items. However, the graph shown by dempirical distribution seems off.

Would like to know if im using dempirical distribution the right way. Have attached the screenshot of my global table and the graph demipirical is showing. Thank you.


FlexSim 20.1.0
flexsim 20.1.0statistical distribution
· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Ben Wilson avatar image Ben Wilson ♦♦ commented ·

Hi @Lenny C, was Jörg Vogel's answer helpful? If so, please click the red "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always unaccept and comment back to reopen your question.

0 Likes 0 ·

1 Answer

Joerg Vogel avatar image
1 Like"
Joerg Vogel answered Craig DIckson commented

From the documentation for dempirical():

The table referenced must contain a list of values and probability percentages associated with each of the values. Probability percentages must be entered in column 1 starting with row 1 of the table, and their associated values are entered in column 2. The table may have as many rows as needed to define as many values as desired. The percents are entered as numbers between 0 and 100, and should add up to a total of 100 percent; otherwise any values defined after a cumulative percentage of 100 is reached will never be returned.

Please swap the columns.

· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Craig DIckson avatar image Craig DIckson commented ·

To clarify what Jorg quoted, you need to change two things in your table:

  1. You have the percentages in column 2; they need to be in column 1
  2. Your percentages need to add up to *100*, not to 1; i.e. for 31% you enter 31, not 0.31

Hope that helps.

2 Likes 2 ·