Open In App

Perform the Probability Cumulative Density Analysis on t-Distribution in R Programming - pt() Function

Last Updated : 19 Jun, 2020
Comments
Improve
Suggest changes
Like Article
Like
Report
pt() function in R Language is used to return the probability cumulative density of the Student t-distribution.
Syntax: pt(x, df) Parameters: x: Random variable df: Degree of Freedom
Example 1: Python3 1==
# R Program to perform
# Cumulative Density Analysis

# Calling pt() Function
pt(2, 10)
pt(.542, 15)
Output:
[1] 0.963306
[1] 0.7021105
Example 2: Python3 1==
# R Program to perform
# Cumulative Density Analysis

# Creating a vector
x <- seq(1, 10, by = 1)

# Calling pt() Function
y <- pt(x, 2)

# Plotting probability distribution graph
plot(x, y, type ="l")
Output:

Next Article
Article Tags :

Similar Reads