Skip to content
geeksforgeeks
  • Tutorials
    • Python
    • Java
    • Data Structures & Algorithms
    • ML & Data Science
    • Interview Corner
    • Programming Languages
    • Web Development
    • CS Subjects
    • DevOps And Linux
    • School Learning
    • Practice Coding Problems
  • Courses
    • DSA to Development
    • Get IBM Certification
    • Newly Launched!
      • Master Django Framework
      • Become AWS Certified
    • For Working Professionals
      • Interview 101: DSA & System Design
      • Data Science Training Program
      • JAVA Backend Development (Live)
      • DevOps Engineering (LIVE)
      • Data Structures & Algorithms in Python
    • For Students
      • Placement Preparation Course
      • Data Science (Live)
      • Data Structure & Algorithm-Self Paced (C++/JAVA)
      • Master Competitive Programming (Live)
      • Full Stack Development with React & Node JS (Live)
    • Full Stack Development
    • Data Science Program
    • All Courses
  • Number System and Arithmetic
  • Algebra
  • Set Theory
  • Probability
  • Statistics
  • Geometry
  • Calculus
  • Logarithms
  • Mensuration
  • Matrices
  • Trigonometry
  • Mathematics
Open In App

Mathematics | Unimodal functions and Bimodal functions

Last Updated : 25 Oct, 2024
Comments
Improve
Suggest changes
Like Article
Like
Report

Before diving into unimodal and bimodal functions, it's essential to understand the term "modal." A mode refers to the value at which a function reaches a peak, typically a maximum point. The behavior of functions can vary depending on how many peaks or modes they contain, giving rise to classifications like unimodal, bimodal, and even multimodal functions.

Unimodal Function:

A function f(x) is said to be unimodal function if for some value m it is monotonically increasing for x ≤ m and monotonically decreasing for x ≥ m. For function f(x), maximum value is f(m) and there is no other local maximum.

See figure (A) and (B):

In figure (A), graph has only one maximum point and rest of the graph goes down from there and in figure (B) graph has only one minimum point and rest of the graph goes up from there. Thus, we can say that if a function has global maximum or global minimum is considered as Unimodal function. Consider a function f(x) in the interval [a, b] and we have to determine value of x for which the function is maximized. The function strictly increase in the interval [a, x] and strictly decrease in the interval [x, b]. For this purpose we can use modified binary search to determine the maximum or value of that function.

Click here

for the program.

Mathematical Characteristics: Single Peak (Mode):

  • One Maximum Point: A unimodal function has exactly one maximum point or mode, where the function reaches its highest value.
  • Monotonicity: The function is monotonically increasing before the mode and monotonically decreasing after the mode.
  • Concavity: In most cases, the function is concave up before the mode and concave down after the mode.

Examples of Unimodal Functions:

Several well-known functions in mathematics exhibit unimodal behavior, including:

  1. Quadratic Functions: A quadratic function f(x) = ax^2 + bx + c (where a<0) has a single peak at the vertex, making it unimodal.
  2. Normal Distribution: In probability and statistics, the normal distribution is a classic example of a unimodal function, with a single peak representing the mean.

Properties of Unimodal Functions

  • Global Maximum: The function has a unique global maximum at its mode.
  • Single Peak: Only one peak exists in the entire function domain.
  • Symmetry: Many unimodal functions, like the normal distribution, are symmetric around the mode. However, not all unimodal functions are symmetric.

Bimodal Function :

A function is said to be bimodal function if it has two local minima or maxima. Generally bimodal function indicates two different groups. For example, In a class there are lot of students getting grade A and a lot getting grade D. This tell us that in a class there are two different group of student, one group is under-prepared and other group is over-prepared. See this figure for better understanding:

Mathematical Characteristics: Two Peaks (Modes)

  • Two Maximum Points: A bimodal function has exactly two peaks or modes, corresponding to the two local maxima.
  • Valley Between Peaks: Between the two modes, the function dips to form a valley.
  • Asymmetry: The two modes may or may not be symmetrical, depending on the function.

Examples of Bimodal Functions

Several functions exhibit bimodal behavior, especially in probability theory and statistics:

  1. Certain Probability Distributions: Distributions such as the mixture of two normal distributions can have two distinct peaks, representing different populations or data clusters.
  2. Piecewise Functions: Some piecewise-defined functions can have two distinct regions, each with a local maximum, resulting in a bimodal shape.

Properties of Bimodal Functions:

  • Multiple Local Maxima: The function contains exactly two local maxima, corresponding to the two peaks.
  • Non-Monotonicity: Unlike unimodal functions, bimodal functions are not monotonic; they increase and decrease multiple times over their domain.
  • Multiple Peaks: These functions can model scenarios where two dominant values or outcomes are observed.

Applications of Unimodal and Bimodal Functions:

Understanding whether a function is unimodal or bimodal is crucial in various fields, including:

  • Statistics: Unimodal functions (like normal distributions) model many natural phenomena, while bimodal functions represent situations with two dominant outcomes or populations.
  • Economics: Bimodal functions can represent supply and demand curves with multiple equilibrium points.
  • Optimization: Unimodal functions are essential in optimization algorithms where finding the global maximum is the goal.
  • Machine Learning: Mixture models, which are often bimodal, are used in clustering and classification tasks to represent different groups within data.

Conclusion

Unimodal and bimodal functions play a critical role in mathematics, statistics, and applied fields. While unimodal functions are characterized by a single peak, bimodal functions feature two distinct peaks. Understanding these differences helps in analyzing data and solving problems across various domains, from economics to machine learning.


What is the difference between unimodal and bimodal functions?

Unimodal functions have one peak or mode, while bimodal functions have two distinct peaks.

Are all probability distributions unimodal or bimodal?

No, probability distributions can be unimodal, bimodal, or even multimodal, depending on the data they represent.

Why are unimodal functions important in optimization?

In optimization, unimodal functions are crucial because they have a single peak, making it easier to find the global maximum or minimum.





S

shivani.mittal
Improve
Article Tags :
  • Engineering Mathematics
  • Mathematics

Similar Reads

    Walks, Trails, Paths, Cycles and Circuits in Graph
    Walks, trails, paths, cycles, and circuits in a graph are sequences of vertices and edges with different properties. Some allow repetition of vertices and edges, while others do not. In this article, we will explore these concepts with examples.What is Walk?A walk in a graph is a sequence of vertice
    6 min read
    Graph measurements: length, distance, diameter, eccentricity, radius, center
    A graph is defined as a set of points known as 'Vertices' and a line joining these points is known as 'Edges'. It is a set consisting of where 'V' is vertices and 'E' is edge. Vertices: {A, B, C, D, E, F} Edges: {{A, B}, {A, D}, {A, E}, {B, C}, {C, E}, {C, F}, {D, E}, {E, F}} Graph Measurements: The
    5 min read
    Relationship between number of nodes and height of binary tree
    Binary Tree is a hierarchical data structure in which each node has at most two children, referred to as the left child and the right child. It is commonly used in computer science for efficient storage and retrieval of data, with various operations such as insertion, deletion, and traversal.Prerequ
    2 min read
    Matrices
    Matrices are key concepts in mathematics, widely used in solving equations and problems in fields like physics and computer science. A matrix is simply a grid of numbers, and a determinant is a value calculated from a square matrix.Example: \begin{bmatrix} 6 & 9 \\ 5 & -4 \\ \end{bmatrix}_{2
    3 min read
    Different Operations on Matrices
    For an introduction to matrices, you can refer to the following article: Matrix Introduction In this article, we will discuss the following operations on matrices and their properties: Matrices AdditionMatrices SubtractionMatrices MultiplicationMatrices Addition: The addition of two matrices A m*n a
    11 min read
    Eigenvalues and Eigenvectors
    Eigenvectors are the directions that remain unchanged during a transformation, even if they get longer or shorter. Eigenvalues are the numbers that indicate how much something stretches or shrinks during that transformation. These ideas are important in many areas of math and engineering, including
    15+ min read
    System of Linear Equations
    In mathematics, a system of linear equations consists of two or more linear equations that share the same variables. These systems often arise in real-world applications, such as engineering, physics, economics, and more, where relationships between variables need to be analyzed. Understanding how t
    8 min read
    LU Decomposition
    LU decomposition or factorization of a matrix is the factorization of a given square matrix into two triangular matrices, one upper triangular matrix and one lower triangular matrix, such that the product of these two matrices gives the original matrix. It was introduced by Alan Turing in 1948, who
    7 min read
    Doolittle Algorithm | LU Decomposition
    Doolittle Algorithm: The Doolittle Algorithm is a method for performing LU Decomposition, where a given matrix is decomposed into a lower triangular matrix L and an upper triangular matrix U. This decomposition is widely used in solving systems of linear equations, inverting matrices, and computing
    11 min read
    Limits, Continuity and Differentiability
    Limits, Continuity, and Differentiation are fundamental concepts in calculus. They are essential for analyzing and understanding function behavior and are crucial for solving real-world problems in physics, engineering, and economics.Table of ContentLimitsKey Characteristics of LimitsExample of Limi
    10 min read
geeksforgeeks-footer-logo
Corporate & Communications Address:
A-143, 7th Floor, Sovereign Corporate Tower, Sector- 136, Noida, Uttar Pradesh (201305)
Registered Address:
K 061, Tower K, Gulshan Vivante Apartment, Sector 137, Noida, Gautam Buddh Nagar, Uttar Pradesh, 201305
GFG App on Play Store GFG App on App Store
Advertise with us
  • Company
  • About Us
  • Legal
  • Privacy Policy
  • In Media
  • Contact Us
  • Advertise with us
  • GFG Corporate Solution
  • Placement Training Program
  • Languages
  • Python
  • Java
  • C++
  • PHP
  • GoLang
  • SQL
  • R Language
  • Android Tutorial
  • Tutorials Archive
  • DSA
  • Data Structures
  • Algorithms
  • DSA for Beginners
  • Basic DSA Problems
  • DSA Roadmap
  • Top 100 DSA Interview Problems
  • DSA Roadmap by Sandeep Jain
  • All Cheat Sheets
  • Data Science & ML
  • Data Science With Python
  • Data Science For Beginner
  • Machine Learning
  • ML Maths
  • Data Visualisation
  • Pandas
  • NumPy
  • NLP
  • Deep Learning
  • Web Technologies
  • HTML
  • CSS
  • JavaScript
  • TypeScript
  • ReactJS
  • NextJS
  • Bootstrap
  • Web Design
  • Python Tutorial
  • Python Programming Examples
  • Python Projects
  • Python Tkinter
  • Python Web Scraping
  • OpenCV Tutorial
  • Python Interview Question
  • Django
  • Computer Science
  • Operating Systems
  • Computer Network
  • Database Management System
  • Software Engineering
  • Digital Logic Design
  • Engineering Maths
  • Software Development
  • Software Testing
  • DevOps
  • Git
  • Linux
  • AWS
  • Docker
  • Kubernetes
  • Azure
  • GCP
  • DevOps Roadmap
  • System Design
  • High Level Design
  • Low Level Design
  • UML Diagrams
  • Interview Guide
  • Design Patterns
  • OOAD
  • System Design Bootcamp
  • Interview Questions
  • Inteview Preparation
  • Competitive Programming
  • Top DS or Algo for CP
  • Company-Wise Recruitment Process
  • Company-Wise Preparation
  • Aptitude Preparation
  • Puzzles
  • School Subjects
  • Mathematics
  • Physics
  • Chemistry
  • Biology
  • Social Science
  • English Grammar
  • Commerce
  • World GK
  • GeeksforGeeks Videos
  • DSA
  • Python
  • Java
  • C++
  • Web Development
  • Data Science
  • CS Subjects
@GeeksforGeeks, Sanchhaya Education Private Limited, All rights reserved
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our Cookie Policy & Privacy Policy
Lightbox
Improvement
Suggest Changes
Help us improve. Share your suggestions to enhance the article. Contribute your expertise and make a difference in the GeeksforGeeks portal.
geeksforgeeks-suggest-icon
Create Improvement
Enhance the article with your expertise. Contribute to the GeeksforGeeks community and help create better learning resources for all.
geeksforgeeks-improvement-icon
Suggest Changes
min 4 words, max Words Limit:1000

Thank You!

Your suggestions are valuable to us.

What kind of Experience do you want to share?

Interview Experiences
Admission Experiences
Career Journeys
Work Experiences
Campus Experiences
Competitive Exam Experiences