Normal probability density function - MATLAB normpdf - MathWorks Deutschland (2024)

Normal probability density function

collapse all in page

Syntax

y = normpdf(x)

y = normpdf(x,mu)

y = normpdf(x,mu,sigma)

Description

example

y = normpdf(x) returns the probability density function (pdf) of the standard normal distribution, evaluated at the values in x.

y = normpdf(x,mu) returns the pdf of the normal distribution with mean mu and the unit standard deviation, evaluated at the values in x.

example

y = normpdf(x,mu,sigma) returns the pdf of the normal distribution with mean mu and standard deviation sigma, evaluated at the values in x.

Examples

collapse all

Standard Normal Distribution pdf

Open Live Script

Compute the pdf values for the standard normal distribution at the values in x.

y = 1×5 0.0540 0.2420 0.3989 0.2420 0.0540

Normal Distribution pdf

Open Live Script

Compute the pdf values evaluated at the values in x for the normal distribution with mean mu and standard deviation sigma.

x = [-2,-1,0,1,2];mu = 2;sigma = 1;y = normpdf(x,mu,sigma)
y = 1×5 0.0001 0.0044 0.0540 0.2420 0.3989

Compute the pdf values evaluated at zero for various normal distributions with different mean parameters.

mu = [-2,-1,0,1,2];sigma = 1;y = normpdf(0,mu,sigma)
y = 1×5 0.0540 0.2420 0.3989 0.2420 0.0540

Input Arguments

collapse all

xValues at which to evaluate pdf
scalar value | array of scalar values

Values at which to evaluate the pdf, specified as a scalar value or an array of scalar values.

To evaluate the pdf at multiple values, specify x using an array. To evaluate the pdfs of multiple distributions, specify mu and sigma using arrays. If one or more of the input arguments x, mu, and sigma are arrays, then the array sizes must be the same. In this case, normpdf expands each scalar input into a constant array of the same size as the array inputs. Each element in y is the pdf value of the distribution specified by the corresponding elements in mu and sigma, evaluated at the corresponding element in x.

Example: [-1,0,3,4]

Data Types: single | double

muMean
0 (default) | scalar value | array of scalar values

Mean of the normal distribution, specified as a scalar value or an array of scalar values.

To evaluate the pdf at multiple values, specify x using an array. To evaluate the pdfs of multiple distributions, specify mu and sigma using arrays. If one or more of the input arguments x, mu, and sigma are arrays, then the array sizes must be the same. In this case, normpdf expands each scalar input into a constant array of the same size as the array inputs. Each element in y is the pdf value of the distribution specified by the corresponding elements in mu and sigma, evaluated at the corresponding element in x.

Example: [0 1 2; 0 1 2]

Data Types: single | double

sigmaStandard deviation
1 (default) | positive scalar value | array of positive scalar values

Standard deviation of the normal distribution, specified as a positive scalar value or an array of positive scalar values.

To evaluate the pdf at multiple values, specify x using an array. To evaluate the pdfs of multiple distributions, specify mu and sigma using arrays. If one or more of the input arguments x, mu, and sigma are arrays, then the array sizes must be the same. In this case, normpdf expands each scalar input into a constant array of the same size as the array inputs. Each element in y is the pdf value of the distribution specified by the corresponding elements in mu and sigma, evaluated at the corresponding element in x.

Example: [1 1 1; 2 2 2]

Data Types: single | double

Output Arguments

collapse all

More About

collapse all

Normal Distribution

The normal distribution is a two-parameter family of curves. The first parameter, µ, is the mean. The second parameter, σ, is the standard deviation.

The standard normal distribution has zero mean and unit standard deviation.

The normal probability density function (pdf) is

y=f(x|μ,σ)=1σ2πe(xμ)22σ2,forx.

The likelihood function is the pdf viewed as a function of the parameters. The maximum likelihood estimates (MLEs) are the parameter estimates that maximize the likelihood function for fixed values of x.

Alternative Functionality

  • normpdf is a function specific to normal distribution. Statistics and Machine Learning Toolbox™ also offers the generic function pdf, which supports various probability distributions. To use pdf, create a NormalDistribution probability distribution object and pass the object as an input argument or specify the probability distribution name and its parameters. Note that the distribution-specific function normpdf is faster than the generic function pdf.

  • Use the Probability Distribution Function app to create an interactive plot of the cumulative distribution function (cdf) or probability density function (pdf) for a probability distribution.

References

[1] Evans, M., N. Hastings, and B. Peaco*ck. Statistical Distributions. 2nd ed. Hoboken, NJ: John Wiley & Sons, Inc., 1993.

Extended Capabilities

C/C++ Code Generation
Generate C and C++ code using MATLAB® Coder™.

This function fully supports GPU arrays. For more information, see Run MATLAB Functions on a GPU (Parallel Computing Toolbox).

Version History

Introduced before R2006a

See Also

pdf | normcdf | norminv | normrnd | mvnpdf | NormalDistribution | normspec

Topics

  • Normal Distribution

MATLAB-Befehl

Sie haben auf einen Link geklickt, der diesem MATLAB-Befehl entspricht:

 

Führen Sie den Befehl durch Eingabe in das MATLAB-Befehlsfenster aus. Webbrowser unterstützen keine MATLAB-Befehle.

Normal probability density function - MATLAB normpdf- MathWorks Deutschland (1)

Select a Web Site

Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .

You can also select a web site from the following list:

Americas

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

Europe

  • 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)

Asia Pacific

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

Contact your local office

Normal probability density function - MATLAB normpdf
- MathWorks Deutschland (2024)

References

Top Articles
Wells Fargo’s Head Of Tech Plots A Strategy For Innovation - Metis Strategy
Saul Van Beurden named CEO of Consumer & Small Business Banking for Wells Fargo; Mary Mack to retire; Tracy Kerrins named head of Technology
Woodward Avenue (M-1) - Automotive Heritage Trail - National Scenic Byway Foundation
Bj 사슴이 분수
Tryst Utah
Access-A-Ride – ACCESS NYC
Plaza Nails Clifton
Toyota Campers For Sale Craigslist
Is Csl Plasma Open On 4Th Of July
Yi Asian Chinese Union
David Packouz Girlfriend
Embassy Suites Wisconsin Dells
Youtube Combe
Cranberry sauce, canned, sweetened, 1 slice (1/2" thick, approx 8 slices per can) - Health Encyclopedia
Turbocharged Cars
Why Is Stemtox So Expensive
Facebook Marketplace Charlottesville
Mephisto Summoners War
Flights To Frankfort Kentucky
Insidekp.kp.org Hrconnect
Chile Crunch Original
7 Fly Traps For Effective Pest Control
Overton Funeral Home Waterloo Iowa
Palm Coast Permits Online
Khiara Keating: Manchester City and England goalkeeper convinced WSL silverware is on the horizon
How pharmacies can help
Wausau Obits Legacy
Gayla Glenn Harris County Texas Update
Our History
Hdmovie2 Sbs
How to Download and Play Ultra Panda on PC ?
Baja Boats For Sale On Craigslist
Form F-1 - Registration statement for certain foreign private issuers
Thick Ebony Trans
Pain Out Maxx Kratom
Lacey Costco Gas Price
Black Panther 2 Showtimes Near Epic Theatres Of Palm Coast
Tinyzonehd
Craigslist Northern Minnesota
Perry Inhofe Mansion
Greater Orangeburg
'Conan Exiles' 3.0 Guide: How To Unlock Spells And Sorcery
Jeep Cherokee For Sale By Owner Craigslist
Rocketpult Infinite Fuel
Easy Pigs in a Blanket Recipe - Emmandi's Kitchen
Mytime Maple Grove Hospital
Natasha Tosini Bikini
فیلم گارد ساحلی زیرنویس فارسی بدون سانسور تاینی موویز
All Weapon Perks and Status Effects - Conan Exiles | Game...
Portal Pacjenta LUX MED
Christie Ileto Wedding
Random Warzone 2 Loadout Generator
Latest Posts
Article information

Author: Sen. Ignacio Ratke

Last Updated:

Views: 6414

Rating: 4.6 / 5 (56 voted)

Reviews: 87% of readers found this page helpful

Author information

Name: Sen. Ignacio Ratke

Birthday: 1999-05-27

Address: Apt. 171 8116 Bailey Via, Roberthaven, GA 58289

Phone: +2585395768220

Job: Lead Liaison

Hobby: Lockpicking, LARPing, Lego building, Lapidary, Macrame, Book restoration, Bodybuilding

Introduction: My name is Sen. Ignacio Ratke, I am a adventurous, zealous, outstanding, agreeable, precious, excited, gifted person who loves writing and wants to share my knowledge and understanding with you.