ScholarQuill logoScholarQuillUniversity Notes
  • Notes
  • Past Papers
  • Blogs
  • Todo
Login
ScholarQuill logoScholarQuillUniversity Notes
Login
NotesPast PapersBlogsTodo
More
SubjectsDiscussionCGPA CalculatorGPA CalculatorStudent PortalCourse Outline
About
About usPrivacy PolicyReportContact
Notes
Past Papers
Blogs
Todo
Analytics
    Current Subject
    🧩
    Introduction to Statistics
    STAT2115
    Progress0 / 24 topics
    Topics
    1. Scope of Statistics2. Introduction to Basic Concepts of Statistics: Descriptive and Inferential Statistics3. Population, Sample, Parameter, and Statistic4. Types of Data and Scales of Measurement5. Frequency Distribution and Graphical Representation6. Bar Chart, Pie Chart, and Histogram7. Frequency Polygon, Frequency Curve, and Cumulative Frequency Polygon8. Measures of Central Tendency9. Quantiles10. Absolute and Relative Measures of Dispersion11. Moments, Skewness and Kurtosis12. Basic Concepts of Probability13. Counting Rules: Multiplication Principle, Permutation and Combination14. Probability Spaces and Laws of Probability15. Conditional Probability and Bayes' Theorem16. Discrete and Continuous Random Variables17. Probability Distributions: Binomial, Poisson, and Hypergeometric18. Probability Distributions: Uniform, Exponential, and Normal19. Overview of Sampling: Sample Design and Sampling Frame20. Sampling and Non-Sampling Errors21. Sampling Distributions for Mean and Proportion22. Sampling Distributions for Difference of Means and Difference of Proportions23. Overview of Hypothesis Testing24. Overview of Regression Analysis
    STAT2115›Discrete and Continuous Random Variables
    Introduction to StatisticsTopic 16 of 24

    Discrete and Continuous Random Variables

    4 minread
    757words
    Beginnerlevel

    1. Random Variable (RV)

    A random variable is a variable whose values are outcomes of a random experiment.

    • Usually denoted by X,Y,ZX, Y, ZX,Y,Z
    • It assigns a numerical value to each outcome in a sample space.
    X:Sample Space→RX: \text{Sample Space} \to \mathbb{R}X:Sample Space→R

    Example:

    • Toss a coin: X=1X = 1X=1 if Head, X=0X = 0X=0 if Tail
    • Roll a die: X=number on top faceX = \text{number on top face}X=number on top face

    2. Types of Random Variables

    A. Discrete Random Variable (DRV)

    Definition: A random variable is discrete if it can take a finite or countably infinite number of values.

    Properties:

    • Takes specific values (integers or counts)
    • Probability for each value can be listed
    • Probability Sum = 1

    Probability Mass Function (PMF):

    P(X=xi)=piP(X = x_i) = p_iP(X=xi​)=pi​

    Example:

    • Number of heads in 3 coin tosses → X=0,1,2,3X = 0,1,2,3X=0,1,2,3
    • Number of defective items in a batch

    Graph: Usually bar graph with heights = probabilities.


    B. Continuous Random Variable (CRV)

    Definition: A random variable is continuous if it can take any value in an interval of real numbers.

    Properties:

    • Probability of a single exact value = 0
    • Probabilities are given over intervals
    • Total area under the Probability Density Function (PDF) = 1

    Probability Density Function (PDF):

    f(x)≥0,∫−∞∞f(x)dx=1f(x) \ge 0, \quad \int_{-\infty}^{\infty} f(x) dx = 1f(x)≥0,∫−∞∞​f(x)dx=1 P(a≤X≤b)=∫abf(x)dxP(a \le X \le b) = \int_a^b f(x) dxP(a≤X≤b)=∫ab​f(x)dx

    Example:

    • Height of students → any value in 140cm,200cm140 cm, 200 cm140cm,200cm
    • Time required to run 100 m → any value ≥ 0

    Graph: Smooth curve representing density.


    3. Comparison Table

    Feature Discrete RV Continuous RV
    Values Countable (0,1,2…) Any real number in an interval
    Probability P(X=xi)P(X=x_i)P(X=xi​) P(a≤X≤b)=∫f(x)dxP(a \le X \le b) = \int f(x)dxP(a≤X≤b)=∫f(x)dx
    Function PMF PDF
    Graph Bar chart Smooth curve
    Example No. of students in class Height, weight, time

    4. Expected Value and Variance

    • Discrete RV:

      E(X)=∑xiP(X=xi),Var(X)=∑(xi−E(X))2P(X=xi)E(X) = \sum x_i P(X=x_i), \quad Var(X) = \sum (x_i - E(X))^2 P(X=x_i)E(X)=∑xi​P(X=xi​),Var(X)=∑(xi​−E(X))2P(X=xi​)
    • Continuous RV:

      E(X)=∫−∞∞xf(x)dx,Var(X)=∫−∞∞(x−E(X))2f(x)dxE(X) = \int_{-\infty}^{\infty} x f(x) dx, \quad Var(X) = \int_{-\infty}^{\infty} (x - E(X))^2 f(x) dxE(X)=∫−∞∞​xf(x)dx,Var(X)=∫−∞∞​(x−E(X))2f(x)dx

    Key Points to Remember

    1. Discrete → Countable values, probability for each value.
    2. Continuous → Uncountable values, probability over intervals.
    3. Always check whether the variable takes specific values or any value in a range.
    Previous topic 15
    Conditional Probability and Bayes' Theorem
    Next topic 17
    Probability Distributions: Binomial, Poisson, and Hypergeometric

    Past Papers

    Open this section to load past papers

    Click on Show Past Papers to see past papers.
    On This Page
      Reading Stats
      Est. reading time4 min
      Word count757
      Code examples0
      DifficultyBeginner