histfit (histogram and normal function) (2024)

17 Ansichten (letzte 30 Tage)

Ältere Kommentare anzeigen

Silvia am 19 Jan. 2012

  • Verknüpfen

    Direkter Link zu dieser Frage

    https://de.mathworks.com/matlabcentral/answers/26506-histfit-histogram-and-normal-function

  • Verknüpfen

    Direkter Link zu dieser Frage

    https://de.mathworks.com/matlabcentral/answers/26506-histfit-histogram-and-normal-function

Akzeptierte Antwort: Wayne King

Good afternoon,

I have an histogram with data which I think it is not normal and I want to draw the normal density probability function over my histogram but the function I know 'histfit' uses normal data. Is there other functions which allow you to draw this curve with non normal data? or have I to convert my data to normal data? Thank you very much

0 Kommentare

-2 ältere Kommentare anzeigen-2 ältere Kommentare ausblenden

Melden Sie sich an, um zu kommentieren.

Melden Sie sich an, um diese Frage zu beantworten.

Akzeptierte Antwort

Wayne King am 19 Jan. 2012

  • Verknüpfen

    Direkter Link zu dieser Antwort

    https://de.mathworks.com/matlabcentral/answers/26506-histfit-histogram-and-normal-function#answer_34612

In MATLAB Online öffnen

Hi Silvia, You're correct. There are a number of ways you can assess fit. For example, you can use kstest() with a specified probability distribution to construct a hypothesis test.

PD = ProbDistUnivParam('gamma',[1/2 2]); %chisquare 1 dof

x = chi2rnd(1,100,1);

[h,p] = kstest(x,PD);

You can use fitdist() to estimate the parameters of the distribution from your data.

In this case:

Pd = fitdist(x,'gamma');

To know which distribution is "best". Well that's tougher. I mean often you have a model for your data which indicates which is probably the right family. Other times it's more empirical, you're looking at histograms or estimates of the probablity density, see ksdensity(), and then based on that you can select a model.

0 Kommentare

-2 ältere Kommentare anzeigen-2 ältere Kommentare ausblenden

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (4)

Image Analyst am 19 Jan. 2012

  • Verknüpfen

    Direkter Link zu dieser Antwort

    https://de.mathworks.com/matlabcentral/answers/26506-histfit-histogram-and-normal-function#answer_34580

  • Verknüpfen

    Direkter Link zu dieser Antwort

    https://de.mathworks.com/matlabcentral/answers/26506-histfit-histogram-and-normal-function#answer_34580

You mean like the plot() function? That can draw a line or curve.

0 Kommentare

-2 ältere Kommentare anzeigen-2 ältere Kommentare ausblenden

Melden Sie sich an, um zu kommentieren.

Wayne King am 19 Jan. 2012

  • Verknüpfen

    Direkter Link zu dieser Antwort

    https://de.mathworks.com/matlabcentral/answers/26506-histfit-histogram-and-normal-function#answer_34581

  • Verknüpfen

    Direkter Link zu dieser Antwort

    https://de.mathworks.com/matlabcentral/answers/26506-histfit-histogram-and-normal-function#answer_34581

In MATLAB Online öffnen

Hi Silvia, histfit() with the 'normal' option does not use data which follows a Gaussian distribution, it uses the data you give it. If your data is non-Gaussian than the overlying fitted normal density will clearly not do a good job approximating your data histogram. For example:

x = chi2rnd(2,100,1);

histfit(x,[],'normal')

Note that in this case:

histfit(x,[],'gamma');

Does a much better job (of course).

Is this what you're asking?

0 Kommentare

-2 ältere Kommentare anzeigen-2 ältere Kommentare ausblenden

Melden Sie sich an, um zu kommentieren.

Silvia am 19 Jan. 2012

  • Verknüpfen

    Direkter Link zu dieser Antwort

    https://de.mathworks.com/matlabcentral/answers/26506-histfit-histogram-and-normal-function#answer_34585

  • Verknüpfen

    Direkter Link zu dieser Antwort

    https://de.mathworks.com/matlabcentral/answers/26506-histfit-histogram-and-normal-function#answer_34585

So, If I understand histfit() uses my data (dataX), if my data is non-gaussian (normal) then 'histfit(dataX,[],'normal')won't do a good job. Nut now I have two questions: 1)Is there any function to know if my data is normal?? 2)In case is not normal can I make it normal?? and use histfit with that data??

3)I ask these questions because there is a lot of properties, I mean: weibull, lognormal,exponential .... and I don't know which is better for my data. Thank you very much

0 Kommentare

-2 ältere Kommentare anzeigen-2 ältere Kommentare ausblenden

Melden Sie sich an, um zu kommentieren.

Brian Wilson am 19 Jan. 2012

  • Verknüpfen

    Direkter Link zu dieser Antwort

    https://de.mathworks.com/matlabcentral/answers/26506-histfit-histogram-and-normal-function#answer_34618

  • Verknüpfen

    Direkter Link zu dieser Antwort

    https://de.mathworks.com/matlabcentral/answers/26506-histfit-histogram-and-normal-function#answer_34618

Hi Silvia,

if you have the statistics toolbox there are a bunch of helpful functions.

Try normplot and it plots the sorted data against the normal distribution CDF. The helpful feature here is that the scale is nonlinear so that the CDF looks like a straight line. you can then look to see how well your data fits the straight line.

There is also normfit with a bunch of metrics. Take a look at the documentation.

0 Kommentare

-2 ältere Kommentare anzeigen-2 ältere Kommentare ausblenden

Melden Sie sich an, um zu kommentieren.

Melden Sie sich an, um diese Frage zu beantworten.

Siehe auch

Kategorien

AI, Data Science, and StatisticsStatistics and Machine Learning ToolboxDescriptive Statistics and Visualization

Mehr zu Descriptive Statistics and Visualization finden Sie in Help Center und File Exchange

Tags

  • histfit (histogram and normal function)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Es ist ein Fehler aufgetreten

Da Änderungen an der Seite vorgenommen wurden, kann diese Aktion nicht abgeschlossen werden. Laden Sie die Seite neu, um sie im aktualisierten Zustand anzuzeigen.


Translated by histfit (histogram and normal function) (7)

histfit (histogram and normal function) (8)

Website auswählen

Wählen Sie eine Website aus, um übersetzte Inhalte (sofern verfügbar) sowie lokale Veranstaltungen und Angebote anzuzeigen. Auf der Grundlage Ihres Standorts empfehlen wir Ihnen die folgende Auswahl: .

Sie können auch eine Website aus der folgenden Liste auswählen:

Amerika

  • América Latina (Español)
  • Canada (English)
  • United States (English)

Europa

  • Belgium (English)
  • Denmark (English)
  • Deutschland (Deutsch)
  • España (Español)
  • Finland (English)
  • France (Français)
  • Ireland (English)
  • Italia (Italiano)
  • Luxembourg (English)
  • Netherlands (English)
  • Norway (English)
  • Österreich (Deutsch)
  • Portugal (English)
  • Sweden (English)
  • Switzerland
    • Deutsch
    • English
    • Français
  • United Kingdom(English)

Asien-Pazifik

  • Australia (English)
  • India (English)
  • New Zealand (English)
  • 中国
  • 日本Japanese (日本語)
  • 한국Korean (한국어)

Kontakt zu Ihrer lokalen Niederlassung

histfit (histogram and normal function) (2024)
Top Articles
Buffalo Chicken Dip (3 Easy Methods)
Grow Your Own Mushrooms with DIY Mushroom Kits – The Ultimate Guide for Beginners - unclekief.co
Pr 127 Seat Map
Craigslist Free Stuff Merced Ca
Craigs List Mpls Mn
8776685260
Jocko Joint Warfare Review
I Feel Pretty (2018) | Rotten Tomatoes
Log in or sign up to view
Craigslist/Phx
Coolmathgames.comool Math
Orange Craigslist Free Stuff
The 10 Best Drury Hotels in the United States
Chs.mywork
Wordscape 5832
For My Derelict Favorite Novel Online
Itouch Spa Marana
Elisabeth Fuchs, Conductor : Magazine : salzburg.info
Asoiaf Spacebattles
Worlds Hardest Game Tyrone
Redose Mdma
The Quiet Girl Showtimes Near Amc Shirlington 7
9:00 A.m. Cdt
Sinfuldeeds Pt 2
Gay Cest Com
Battlenet We Couldn't Verify Your Account With That Information
E23.Ultipro
Craigslist Storage Containers
Axolotls for Sale - 10 Online Stores You Can Buy an Axolotl - Axolotl Nerd
Irish DNA | Irish Origenes: Use your DNA to rediscover your Irish origin
We Take a Look at Dating Site ThaiFlirting.com in Our Review
Dell Optiplex 7010 Drivers Download and Update for Windows 10
Dayinew
Active Parent Aberdeen Ms
Kristen Stewart and Dylan Meyer's Relationship Timeline
Zmanim 10977
Watch ESPN - Stream Live Sports & ESPN Originals
Mybackpack Bolles
Don Wallence Auto Sales Reviews
Should Jenn Tran Join 'Bachelor in Paradise'? Alum Mari Pepin Weighs In
South Carolina Title Transfer Does Sc Require Notary Seal For Auto Title Transfer
Bryant Air Conditioner Parts Diagram
Embu village mines precious coltan for years 'without knowing its value’
Chalupp's Pizza Taos Menu
Www Texaslottery Com
Wocs Failure Rate
Used Golf Clubs On Craigslist
Taika Waititi Birth Chart
Fedex Express Location Near Me
Grasons Estate Sales Tucson
Call Of The Arbiter Code Chase Episode 3
Craigslist Farm And Garden Atlanta Georgia
Latest Posts
Article information

Author: Chrissy Homenick

Last Updated:

Views: 6777

Rating: 4.3 / 5 (54 voted)

Reviews: 85% of readers found this page helpful

Author information

Name: Chrissy Homenick

Birthday: 2001-10-22

Address: 611 Kuhn Oval, Feltonbury, NY 02783-3818

Phone: +96619177651654

Job: Mining Representative

Hobby: amateur radio, Sculling, Knife making, Gardening, Watching movies, Gunsmithing, Video gaming

Introduction: My name is Chrissy Homenick, I am a tender, funny, determined, tender, glorious, fancy, enthusiastic person who loves writing and wants to share my knowledge and understanding with you.