📌  相关文章
📜  在 R 编程中对 t 分布执行逆概率累积密度分析 – qt()函数

📅  最后修改于: 2022-05-13 01:54:42.023000             🧑  作者: Mango

在 R 编程中对 t 分布执行逆概率累积密度分析 – qt()函数

R 语言中的qt()函数用于返回学生 t 分布的逆概率累积密度。

示例 1:

Python3
# R Program to perform Inverse
# Cumulative Density Analysis
 
# Calling qt() Function
qt(.95, 10)
qt(.542, 15)


Python3
# R Program to perform Inverse
# Cumulative Density Analysis
 
# Creating a vector
x <- seq(.1, .9, by = .1)
 
# Calling qt() Function
y <- qt(x, 15)
 
# Plotting probability distribution graph
plot(x, y, type ="l")


输出:

[1] 1.812461
[1] 0.1072654

示例 2:

Python3

# R Program to perform Inverse
# Cumulative Density Analysis
 
# Creating a vector
x <- seq(.1, .9, by = .1)
 
# Calling qt() Function
y <- qt(x, 15)
 
# Plotting probability distribution graph
plot(x, y, type ="l")

输出: