The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum
 Origin Forum
 Histogram analysis
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

MustangoO

5 Posts

Posted - 05/17/2023 :  11:27:08 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Hello! I have questions about the normal distribution (lognormal). I have a data distribution.

1. Using the command - select column - plot - histogram and then change Bin Size (5), I get a histogram in the coordinates Count-my data. I also turn on the distribution (double-click on the graph - distribution - curve type - lognormal).

2. Then I highlight the column with the data, Statistics - Descriptive Statistics - Frequency Counts - change number of bins (5) and
create standart table with Bin Center and Count. Then select column Bin Center and Count and plot the graph. This graph i copy on my histogram. In the end, on the graph i select points - analysis - Fitting - Non linear fitting - choose LogNormal Function and fit it.

As a result, I get the graph shown in the screenshot, where the red curve is obtained through automatic construction in the histogram menu, and the blue curve is obtained through the analysis menu.

Question - why don't the curves match if Bin number, size, minimum and maximum is equal in each case.

YimingChen

1649 Posts

Posted - 05/17/2023 :  12:25:27 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Please refer to this FAQ page. It is not suggested to fit on the binned data. On the other hand, the distribution curve on the histogram is obtained by performing distribution fit on raw data.

https://www.originlab.com/doc/Quick-Help/CurveFit-on-Histogram

James
Go to Top of Page

MustangoO

5 Posts

Posted - 05/17/2023 :  4:23:04 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thanks for the answer!
But i have a one more question.

I read this article (https://www.originlab.com/doc/Quick-Help/CurveFit-on-Histogram) and plot new histogram with different Distribution - normal, lognormal and Weibull. Then I decided to change the bin size, but the distribution curves have not changed and now they don't look right. How can I rearrange these curves to fit the histogram?


Go to Top of Page

MustangoO

5 Posts

Posted - 05/17/2023 :  4:25:33 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Bin size = 20 https://disk.yandex.ru/i/6nZ33VzQ9xDJIA

Bin size =5 https://disk.yandex.ru/i/AG6k5Vw7RgsPVQ
Go to Top of Page

YimingChen

1649 Posts

Posted - 05/18/2023 :  09:10:48 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
The magnitude of the distribution curve should change with the bin size as it scales with npts * binSize. Which version of Origin are you using? I couldn't reproduce your issue on Origin 2023b.

James
Go to Top of Page

MustangoO

5 Posts

Posted - 05/18/2023 :  3:03:44 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
I'm using OriginPro 2021 (9.8.0.200)
Go to Top of Page

YimingChen

1649 Posts

Posted - 05/18/2023 :  3:20:52 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
I see. The distribution curves on your graph are generated from the distribution fit tool. In this case, once the curves are created, they will not change with the histogram bin size.

Go to Top of Page

MustangoO

5 Posts

Posted - 05/19/2023 :  02:40:23 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Ah i see. Could you then help me to build the data distribution curve correctly so that it changes along with the change of the bin size? Or give a link to the section in Origin Help.
Go to Top of Page

YimingChen

1649 Posts

Posted - 05/19/2023 :  08:45:03 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
You could use menu Plot->Statistical->Histogram to make the plot. Then double-click on the plot. In the Plot Details dialog, go to Distribution tab, where you can add the distribution curve. The added curve should auto-rescale with the bin size.


James
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000