🕷️ Crawler Inspector

URL Lookup

Direct Parameter Lookup

Raw Queries and Responses

1. Shard Calculation

Query:
Response:
Calculated Shard: 161 (from laksa125)

2. Crawled Status Check

Query:
Response:

3. Robots.txt Check

Query:
Response:

4. Spam/Ban Check

Query:
Response:

5. Seen Status Check

ℹ️ Skipped - page is already crawled

📄
INDEXABLE
CRAWLED
9 days ago
🤖
ROBOTS ALLOWED

Page Info Filters

FilterStatusConditionDetails
HTTP statusPASSdownload_http_code = 200HTTP 200
Age cutoffPASSdownload_stamp > now() - 6 MONTH0.3 months ago
History dropPASSisNull(history_drop_reason)No drop reason
Spam/banPASSfh_dont_index != 1 AND ml_spam_score = 0ml_spam_score=0
CanonicalPASSmeta_canonical IS NULL OR = '' OR = src_unparsedNot set

Page Details

PropertyValue
URLhttps://www.mathworks.com/help/stats/betapdf.html
Last Crawled2026-04-08 11:24:17 (9 days ago)
First Indexed2016-11-02 06:58:33 (9 years ago)
HTTP Status Code200
Meta Titlebetapdf - Beta probability density function - MATLAB
Meta DescriptionThis MATLAB function returns the probability density function (pdf) of the beta distribution at each of the values in x using the corresponding parameters in a and b.
Meta Canonicalnull
Boilerpipe Text
Beta probability density function Description y = betapdf( x , a , b ) returns the probability density function (pdf) of the beta distribution at each of the values in x using the corresponding parameters in a and b . Values in x must be between [0,1] . example Examples collapse all Compute the pdf values evaluated at the values in x for the beta distribution with first shape parameter a and second shape parameter b . x = 0.2:0.2:1; a = 2; b = 1; y = betapdf(x,a,b) y = 1×5 0.4000 0.8000 1.2000 1.6000 2.0000 Compute the pdf values evaluated at 0.1 for various beta distributions with different first shape parameter values. a = [1,2,3]; b = 1; y = betapdf(0.1,a,b) y = 1×3 1.0000 0.2000 0.0300 Input Arguments collapse all Values at which to evaluate the pdf, specified as a scalar value or an array of scalar values in the range [0,1]. To evaluate the pdf at multiple values, specify x using an array. To evaluate the pdfs of multiple distributions, specify a and b using arrays. If one or more of the input arguments x , a , and b are arrays, then the array sizes must be the same. In this case, betapdf 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 a and b , evaluated at the corresponding element in x . Example: [-1,0,3,4] Data Types: single | double First shape parameter, specified as a positive scalar value or a numeric array of positive values. To evaluate the pdf at multiple values, specify x using an array. To evaluate the pdfs of multiple distributions, specify a and b using arrays. If one or more of the input arguments x , a , and b are arrays, then the array sizes must be the same. In this case, betapdf 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 a and b , evaluated at the corresponding element in x . Example: [0.75,0.5;10,100] Data Types: single | double Second shape parameter, specified as a positive scalar value or a numeric array of positive values. To evaluate the pdf at multiple values, specify x using an array. To evaluate the pdfs of multiple distributions, specify a and b using arrays. If one or more of the input arguments x , a , and b are arrays, then the array sizes must be the same. In this case, betapdf 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 a and b , evaluated at the corresponding element in x . Example: [0.2,100;4,7] Data Types: single | double Output Arguments collapse all pdf values, evaluated at the values in x , returned as a scalar value or an array of scalar values. y is the same size as x , a , and b after any necessary scalar expansion. Each element in y is the pdf value of the distribution specified by the corresponding elements in a and b , evaluated at the corresponding element in x . More About collapse all The beta probability density function for a given value x and given pair of parameters a and b is where B ( · ) is the Beta function. The uniform distribution on (0 1) is a degenerate case of the beta pdf where a = 1 and b = 1. Version History Introduced before R2006a How useful was this information? Unrated 1 star 2 stars 3 stars 4 stars 5 stars
Markdown
[Skip to content](https://www.mathworks.com/help/stats/betapdf.html#main) [![MathWorks](https://www.mathworks.com/etc.clientlibs/mathworks/clientlibs/customer-ui/templates/common/resources/images/mathworks-logo-membrane.20260302205815766.svg)](https://www.mathworks.com/?s_tid=user_nav_logo) [MATLAB Help Center](https://www.mathworks.com/help/?s_tid=user_nav_help) - [MATLAB Help Center](https://www.mathworks.com/help/?s_tid=user_nav_help) - [Community](https://www.mathworks.com/matlabcentral/?s_tid=user_nav_community) - [Learning](https://matlabacademy.mathworks.com/?s_tid=user_nav_learning) - [Get MATLAB](https://login.mathworks.com/embedded-login/landing.html?cid=getmatlab&s_tid=user_nav_getml) [MATLAB](https://login.mathworks.com/embedded-login/landing.html?cid=getmatlab&s_tid=user_nav_getml) - [Sign In](https://www.mathworks.com/login?uri=https%3A%2F%2Fwww.mathworks.com%2Fhelp%2Fstats%2Fbetapdf.html) - [My Account]() - [My Community Profile]() - [Link License]() - *** - [Sign Out]() - [Contact MathWorks Support](https://www.mathworks.com/support/contact_us.html) - [Visit mathworks.com](https://www.mathworks.com/) - - [![MATLAB](https://www.mathworks.com/etc.clientlibs/mathworks/clientlibs/customer-ui/components/matrixmenu/resources/images/ico-matrix-matlabonline.svg) MATLAB](https://matlab.mathworks.com/) - [![Help Center](https://www.mathworks.com/etc.clientlibs/mathworks/clientlibs/customer-ui/components/matrixmenu/resources/images/ico-matrix-helpcenter.svg) Help Center](https://www.mathworks.com/help/) - [![MathWorks](https://www.mathworks.com/etc.clientlibs/mathworks/clientlibs/customer-ui/components/matrixmenu/resources/images/ico-matrix-mathworks.svg) MathWorks](https://www.mathworks.com/) - [![MATLAB Answers](https://www.mathworks.com/etc.clientlibs/mathworks/clientlibs/customer-ui/components/matrixmenu/resources/images/ico-matrix-answers.svg) MATLAB Answers](https://www.mathworks.com/matlabcentral/answers/index) - [![File Exchange](https://www.mathworks.com/etc.clientlibs/mathworks/clientlibs/customer-ui/components/matrixmenu/resources/images/ico-matrix-fileexchange.svg) File Exchange](https://www.mathworks.com/matlabcentral/fileexchange) - [![Videos](https://www.mathworks.com/etc.clientlibs/mathworks/clientlibs/customer-ui/components/matrixmenu/resources/images/ico-matrix-videos.svg) Videos](https://www.mathworks.com/videos.html) - [![Online Training](https://www.mathworks.com/etc.clientlibs/mathworks/clientlibs/customer-ui/components/matrixmenu/resources/images/ico-matrix-onlinetraining.svg) Online Training](https://matlabacademy.mathworks.com/) - [![Blogs](https://www.mathworks.com/etc.clientlibs/mathworks/clientlibs/customer-ui/components/matrixmenu/resources/images/ico-matrix-blogs.svg) Blogs](https://blogs.mathworks.com/) - [![Cody](https://www.mathworks.com/etc.clientlibs/mathworks/clientlibs/customer-ui/components/matrixmenu/resources/images/ico-matrix-cody.svg) Cody](https://www.mathworks.com/matlabcentral/cody) - [![MATLAB Drive](https://www.mathworks.com/etc.clientlibs/mathworks/clientlibs/customer-ui/components/matrixmenu/resources/images/ico-matrix-matlabdrive.svg) MATLAB Drive](https://drive.mathworks.com/) - [![ThingSpeak](https://www.mathworks.com/etc.clientlibs/mathworks/clientlibs/customer-ui/components/matrixmenu/resources/images/ico-matrix-thingspeak.svg) ThingSpeak](https://thingspeak.com/) - [![Bug Reports](https://www.mathworks.com/etc.clientlibs/mathworks/clientlibs/customer-ui/components/matrixmenu/resources/images/ico-matrix-bugreports.svg) Bug Reports](https://www.mathworks.com/support/bugreports/) - [![Community](https://www.mathworks.com/etc.clientlibs/mathworks/clientlibs/customer-ui/components/matrixmenu/resources/images/ico-matrix-community.svg) Community](https://www.mathworks.com/matlabcentral/) Off-Canvas Navigation Menu Toggle Contents 1. [Documentation Home](https://www.mathworks.com/help/index.html?s_tid=CRUX_lftnav) 1. [AI and Statistics](https://www.mathworks.com/help/overview/ai-and-statistics.html?s_tid=hc_product_group_bc) 1. [Statistics and Machine Learning Toolbox](https://www.mathworks.com/help/stats/index.html?s_tid=CRUX_lftnav) 2. [Probability Distributions and Hypothesis Tests](https://www.mathworks.com/help/stats/probability-distributions-1.html?s_tid=CRUX_lftnav) 3. [Continuous Distributions](https://www.mathworks.com/help/stats/continuous-distributions.html?s_tid=CRUX_lftnav) 4. [Beta Distribution](https://www.mathworks.com/help/stats/beta-distribution-1.html?s_tid=CRUX_lftnav) - betapdf - On this page - [Syntax](https://www.mathworks.com/help/stats/betapdf.html#d126e173221) - [Description](https://www.mathworks.com/help/stats/betapdf.html#description) - [Examples](https://www.mathworks.com/help/stats/betapdf.html#brx09qc-125) - [Beta Distribution pdf](https://www.mathworks.com/help/stats/betapdf.html#mw_4f99fcd9-a671-494c-9879-fbd62aa18ee7) - [Input Arguments](https://www.mathworks.com/help/stats/betapdf.html#mw_fa8c3520-b03b-458a-9e9b-bf46c57d8779) - [x](https://www.mathworks.com/help/stats/betapdf.html#mw_946f7fea-787c-4cbe-9877-29b1e3d65758) - [a](https://www.mathworks.com/help/stats/betapdf.html#mw_96f62ccf-4145-473e-ae3f-4d61a7400a00) - [b](https://www.mathworks.com/help/stats/betapdf.html#mw_d87df24d-335b-4a8d-a7ef-e73ceaa6526b) - [Output Arguments](https://www.mathworks.com/help/stats/betapdf.html#mw_599300c4-8016-465a-a68a-d30bfdcbbcad) - [y](https://www.mathworks.com/help/stats/betapdf.html#mw_eed23927-a4f8-45c7-a0b4-d66c54620230) - [More About](https://www.mathworks.com/help/stats/betapdf.html#mw_93fdebdc-87a4-4cc2-b1d6-ef10714fa0f7) - [Beta Distribution](https://www.mathworks.com/help/stats/betapdf.html#mw_0b432020-af36-44a6-9f6b-57fc781b98b3) - [Extended Capabilities](https://www.mathworks.com/help/stats/betapdf.html#refsect-extended-capabilities) - [Version History](https://www.mathworks.com/help/stats/betapdf.html#brx09qc-122_vh) - [See Also](https://www.mathworks.com/help/stats/betapdf.html#brx09qc-122_seealso) - [Documentation](https://www.mathworks.com/help/stats/beta-distribution-1.html?s_tid=CRUX_topnav) - [Examples](https://www.mathworks.com/help/stats/examples.html?s_tid=CRUX_topnav&category=beta-distribution-1) - [Functions](https://www.mathworks.com/help/stats/referencelist.html?type=function&s_tid=CRUX_topnav&category=beta-distribution-1) - [Blocks](https://www.mathworks.com/help/stats/referencelist.html?type=block&s_tid=CRUX_topnav&category=beta-distribution-1) - [Apps](https://www.mathworks.com/help/stats/referencelist.html?type=app&s_tid=CRUX_topnav&category=beta-distribution-1) - [Videos](https://www.mathworks.com/support/search.html?fq%5B%5D=asset_type_name:video&fq%5B%5D=category:stats/beta-distribution-1&page=1&s_tid=CRUX_topnav) - [Answers](https://www.mathworks.com/support/search.html?fq%5B%5D=asset_type_name:answer&fq%5B%5D=category:stats/beta-distribution-1&page=1&s_tid=CRUX_topnav) Main Content # betapdf Beta probability density function [collapse all in page]() ## Syntax `y = betapdf(x,a,b)` ## Description `y = betapdf(x,a,b)` returns the probability density function (pdf) of the beta distribution at each of the values in `x` using the corresponding parameters in `a` and `b`. Values in `x` must be between `[0,1]`. [example](https://www.mathworks.com/help/stats/betapdf.html#mw_4f99fcd9-a671-494c-9879-fbd62aa18ee7) ## Examples [collapse all]() ### Beta Distribution pdf [Open Live Script](matlab:openExample\('stats/BetaDistributionPdfExample'\)) Compute the pdf values evaluated at the values in `x` for the beta distribution with first shape parameter `a` and second shape parameter `b`. ``` x = 0.2:0.2:1; a = 2; b = 1; y = betapdf(x,a,b) ``` ``` y = 1×5 0.4000 0.8000 1.2000 1.6000 2.0000 ``` Compute the pdf values evaluated at `0.1` for various beta distributions with different first shape parameter values. ``` a = [1,2,3]; b = 1; y = betapdf(0.1,a,b) ``` ``` y = 1×3 1.0000 0.2000 0.0300 ``` ## Input Arguments [collapse all]() ### `x` — Values 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 in the range \[0,1\]. To evaluate the pdf at multiple values, specify `x` using an array. To evaluate the pdfs of multiple distributions, specify [`a`](https://www.mathworks.com/help/stats/betapdf.html#mw_96f62ccf-4145-473e-ae3f-4d61a7400a00) and [`b`](https://www.mathworks.com/help/stats/betapdf.html#mw_d87df24d-335b-4a8d-a7ef-e73ceaa6526b) using arrays. If one or more of the input arguments `x`, `a`, and `b` are arrays, then the array sizes must be the same. In this case, `betapdf` expands each scalar input into a constant array of the same size as the array inputs. Each element in [`y`](https://www.mathworks.com/help/stats/betapdf.html#mw_eed23927-a4f8-45c7-a0b4-d66c54620230) is the pdf value of the distribution specified by the corresponding elements in `a` and `b`, evaluated at the corresponding element in `x`. **Example:** `[-1,0,3,4]` **Data Types:** `single` \| `double` ### `a` — First shape parameter positive scalar value \| numeric array of positive values First shape parameter, specified as a positive scalar value or a numeric array of positive values. To evaluate the pdf at multiple values, specify [`x`](https://www.mathworks.com/help/stats/betapdf.html#mw_946f7fea-787c-4cbe-9877-29b1e3d65758) using an array. To evaluate the pdfs of multiple distributions, specify `a` and [`b`](https://www.mathworks.com/help/stats/betapdf.html#mw_d87df24d-335b-4a8d-a7ef-e73ceaa6526b) using arrays. If one or more of the input arguments `x`, `a`, and `b` are arrays, then the array sizes must be the same. In this case, `betapdf` expands each scalar input into a constant array of the same size as the array inputs. Each element in [`y`](https://www.mathworks.com/help/stats/betapdf.html#mw_eed23927-a4f8-45c7-a0b4-d66c54620230) is the pdf value of the distribution specified by the corresponding elements in `a` and `b`, evaluated at the corresponding element in `x`. **Example:** `[0.75,0.5;10,100]` **Data Types:** `single` \| `double` ### `b` — Second shape parameter positive scalar value \| numeric array of positive values Second shape parameter, specified as a positive scalar value or a numeric array of positive values. To evaluate the pdf at multiple values, specify [`x`](https://www.mathworks.com/help/stats/betapdf.html#mw_946f7fea-787c-4cbe-9877-29b1e3d65758) using an array. To evaluate the pdfs of multiple distributions, specify [`a`](https://www.mathworks.com/help/stats/betapdf.html#mw_96f62ccf-4145-473e-ae3f-4d61a7400a00) and `b` using arrays. If one or more of the input arguments `x`, `a`, and `b` are arrays, then the array sizes must be the same. In this case, `betapdf` expands each scalar input into a constant array of the same size as the array inputs. Each element in [`y`](https://www.mathworks.com/help/stats/betapdf.html#mw_eed23927-a4f8-45c7-a0b4-d66c54620230) is the pdf value of the distribution specified by the corresponding elements in `a` and `b`, evaluated at the corresponding element in `x`. **Example:** `[0.2,100;4,7]` **Data Types:** `single` \| `double` ## Output Arguments [collapse all]() ### `y` — pdf values scalar value \| array of scalar values pdf values, evaluated at the values in [`x`](https://www.mathworks.com/help/stats/betapdf.html#mw_946f7fea-787c-4cbe-9877-29b1e3d65758), returned as a scalar value or an array of scalar values. `y` is the same size as `x`, [`a`](https://www.mathworks.com/help/stats/betapdf.html#mw_96f62ccf-4145-473e-ae3f-4d61a7400a00), and [`b`](https://www.mathworks.com/help/stats/betapdf.html#mw_d87df24d-335b-4a8d-a7ef-e73ceaa6526b) after any necessary scalar expansion. Each element in `y` is the pdf value of the distribution specified by the corresponding elements in `a` and `b`, evaluated at the corresponding element in `x`. ## More About [collapse all]() ### Beta Distribution The beta probability density function for a given value *x* and given pair of parameters *a* and *b* is y \= f ( x \| a , b ) \= 1 B ( a , b ) x a − 1 ( 1 − x ) b − 1 I \[ 0 , 1 \] ( x ) where *B*( · ) is the Beta function. The uniform distribution on (0 1) is a degenerate case of the beta pdf where *a* = 1 and *b* = 1. ## Extended Capabilities [expand all]() ### C/C++ Code Generation Generate C and C++ code using MATLAB® Coder™. ### GPU Arrays Accelerate code by running on a graphics processing unit (GPU) using Parallel Computing Toolbox™. This function fully supports GPU arrays. For more information, see [Run MATLAB Functions on a GPU](https://www.mathworks.com/help/parallel-computing/run-matlab-functions-on-a-gpu.html) (Parallel Computing Toolbox). ## Version History **Introduced before R2006a** ## See Also [`pdf`](https://www.mathworks.com/help/stats/prob.normaldistribution.pdf.html) \| [`betafit`](https://www.mathworks.com/help/stats/betafit.html) \| [`betainv`](https://www.mathworks.com/help/stats/betainv.html) \| [`betastat`](https://www.mathworks.com/help/stats/betastat.html) \| [`betalike`](https://www.mathworks.com/help/stats/betalike.html) \| [`betarnd`](https://www.mathworks.com/help/stats/betarnd.html) \| [`betacdf`](https://www.mathworks.com/help/stats/betacdf.html) ### Topics - [Beta Distribution](https://www.mathworks.com/help/stats/beta-distribution.html) Thank you for your feedback\! Why did you choose this rating? Submit How useful was this information? Unrated 1 star 2 stars 3 stars 4 stars 5 stars ## MATLAB Command You clicked a link that corresponds to this MATLAB command: ``` ``` Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands. Close ![MathWorks](https://www.mathworks.com/etc.clientlibs/mathworks/clientlibs/customer-ui/templates/common/resources/images/mathworks-logo.20260302205815766.svg) ![MathWorks](https://www.mathworks.com/etc.clientlibs/mathworks/clientlibs/customer-ui/templates/common/resources/images/mathworks-logo-rev.20260302205815766.svg) 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: **United States**. [United States](https://www.mathworks.com/) - [**United States** (English)](https://ch.mathworks.com/) - [**United States** (Deutsch)](https://ch.mathworks.com/) - [**United States** (Français)](https://ch.mathworks.com/) - [**United States**(简体中文)](https://ww2.mathworks.cn/) - [**United States** (English)](https://ww2.mathworks.cn/) You can also select a web site from the following list **How to Get Best Site Performance** Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location. Americas - [América Latina](https://la.mathworks.com/) (Español) - [Canada](https://www.mathworks.com/) (English) - [United States](https://www.mathworks.com/) (English) Europe - [Belgium](https://nl.mathworks.com/) (English) - [Denmark](https://se.mathworks.com/) (English) - [Deutschland](https://de.mathworks.com/) (Deutsch) - [España](https://es.mathworks.com/) (Español) - [Finland](https://se.mathworks.com/) (English) - [France](https://fr.mathworks.com/) (Français) - [Ireland](https://uk.mathworks.com/) (English) - [Italia](https://it.mathworks.com/) (Italiano) - [Luxembourg](https://nl.mathworks.com/) (English) - [Netherlands](https://nl.mathworks.com/) (English) - [Norway](https://se.mathworks.com/) (English) - [Österreich](https://de.mathworks.com/) (Deutsch) - [Portugal](https://www.mathworks.com/) (English) - [Sweden](https://se.mathworks.com/) (English) - Switzerland - [Deutsch](https://ch.mathworks.com/) - [English](https://ch.mathworks.com/) - [Français](https://ch.mathworks.com/) - [United Kingdom](https://uk.mathworks.com/) (English) Asia Pacific - [Australia](https://au.mathworks.com/) (English) - [India](https://in.mathworks.com/) (English) - [New Zealand](https://au.mathworks.com/) (English) - 中国 - [简体中文](https://ww2.mathworks.cn/) - [English](https://ww2.mathworks.cn/) - [日本](https://jp.mathworks.com/) (日本語) - [한국](https://kr.mathworks.com/) (한국어) [Contact your local office](https://www.mathworks.com/) - [Trust Center](https://www.mathworks.com/company/trust-center.html?s_tid=gf_tc) - [Trademarks](https://www.mathworks.com/company/trust-center/trademarks.html?s_tid=gf_trd) - [Privacy Policy](https://www.mathworks.com/company/trust-center/privacy-policy.html?s_tid=gf_priv) - [Preventing Piracy](https://www.mathworks.com/company/trust-center/piracy.html?s_tid=gf_pir) - [Application Status](https://status.mathworks.com/?s_tid=gf_application) - [Contact Us](https://www.mathworks.com/company/aboutus/contact_us.html?s_tid=gf_contact) © 1994-2026 The MathWorks, Inc. Select a Web Site United States
Readable Markdown
Beta probability density function ## Description `y = betapdf(x,a,b)` returns the probability density function (pdf) of the beta distribution at each of the values in `x` using the corresponding parameters in `a` and `b`. Values in `x` must be between `[0,1]`. [example](https://www.mathworks.com/help/stats/betapdf.html#mw_4f99fcd9-a671-494c-9879-fbd62aa18ee7) ## Examples collapse all Compute the pdf values evaluated at the values in `x` for the beta distribution with first shape parameter `a` and second shape parameter `b`. ``` x = 0.2:0.2:1; a = 2; b = 1; y = betapdf(x,a,b) ``` ``` y = 1×5 0.4000 0.8000 1.2000 1.6000 2.0000 ``` Compute the pdf values evaluated at `0.1` for various beta distributions with different first shape parameter values. ``` a = [1,2,3]; b = 1; y = betapdf(0.1,a,b) ``` ``` y = 1×3 1.0000 0.2000 0.0300 ``` ## Input Arguments collapse all Values at which to evaluate the pdf, specified as a scalar value or an array of scalar values in the range \[0,1\]. To evaluate the pdf at multiple values, specify `x` using an array. To evaluate the pdfs of multiple distributions, specify [`a`](https://www.mathworks.com/help/stats/betapdf.html#mw_96f62ccf-4145-473e-ae3f-4d61a7400a00) and [`b`](https://www.mathworks.com/help/stats/betapdf.html#mw_d87df24d-335b-4a8d-a7ef-e73ceaa6526b) using arrays. If one or more of the input arguments `x`, `a`, and `b` are arrays, then the array sizes must be the same. In this case, `betapdf` expands each scalar input into a constant array of the same size as the array inputs. Each element in [`y`](https://www.mathworks.com/help/stats/betapdf.html#mw_eed23927-a4f8-45c7-a0b4-d66c54620230) is the pdf value of the distribution specified by the corresponding elements in `a` and `b`, evaluated at the corresponding element in `x`. **Example:** `[-1,0,3,4]` **Data Types:** `single` \| `double` First shape parameter, specified as a positive scalar value or a numeric array of positive values. To evaluate the pdf at multiple values, specify [`x`](https://www.mathworks.com/help/stats/betapdf.html#mw_946f7fea-787c-4cbe-9877-29b1e3d65758) using an array. To evaluate the pdfs of multiple distributions, specify `a` and [`b`](https://www.mathworks.com/help/stats/betapdf.html#mw_d87df24d-335b-4a8d-a7ef-e73ceaa6526b) using arrays. If one or more of the input arguments `x`, `a`, and `b` are arrays, then the array sizes must be the same. In this case, `betapdf` expands each scalar input into a constant array of the same size as the array inputs. Each element in [`y`](https://www.mathworks.com/help/stats/betapdf.html#mw_eed23927-a4f8-45c7-a0b4-d66c54620230) is the pdf value of the distribution specified by the corresponding elements in `a` and `b`, evaluated at the corresponding element in `x`. **Example:** `[0.75,0.5;10,100]` **Data Types:** `single` \| `double` Second shape parameter, specified as a positive scalar value or a numeric array of positive values. To evaluate the pdf at multiple values, specify [`x`](https://www.mathworks.com/help/stats/betapdf.html#mw_946f7fea-787c-4cbe-9877-29b1e3d65758) using an array. To evaluate the pdfs of multiple distributions, specify [`a`](https://www.mathworks.com/help/stats/betapdf.html#mw_96f62ccf-4145-473e-ae3f-4d61a7400a00) and `b` using arrays. If one or more of the input arguments `x`, `a`, and `b` are arrays, then the array sizes must be the same. In this case, `betapdf` expands each scalar input into a constant array of the same size as the array inputs. Each element in [`y`](https://www.mathworks.com/help/stats/betapdf.html#mw_eed23927-a4f8-45c7-a0b4-d66c54620230) is the pdf value of the distribution specified by the corresponding elements in `a` and `b`, evaluated at the corresponding element in `x`. **Example:** `[0.2,100;4,7]` **Data Types:** `single` \| `double` ## Output Arguments collapse all pdf values, evaluated at the values in [`x`](https://www.mathworks.com/help/stats/betapdf.html#mw_946f7fea-787c-4cbe-9877-29b1e3d65758), returned as a scalar value or an array of scalar values. `y` is the same size as `x`, [`a`](https://www.mathworks.com/help/stats/betapdf.html#mw_96f62ccf-4145-473e-ae3f-4d61a7400a00), and [`b`](https://www.mathworks.com/help/stats/betapdf.html#mw_d87df24d-335b-4a8d-a7ef-e73ceaa6526b) after any necessary scalar expansion. Each element in `y` is the pdf value of the distribution specified by the corresponding elements in `a` and `b`, evaluated at the corresponding element in `x`. ## More About collapse all The beta probability density function for a given value *x* and given pair of parameters *a* and *b* is where *B*( · ) is the Beta function. The uniform distribution on (0 1) is a degenerate case of the beta pdf where *a* = 1 and *b* = 1. ## Version History **Introduced before R2006a** How useful was this information? Unrated1 star2 stars3 stars4 stars5 stars
Shard161 (laksa)
Root Hash11303084394109755361
Unparsed URLcom,mathworks!www,/help/stats/betapdf.html s443