R语言 对t分布进行反概率累积密度分析 – qt()函数

R语言 对t分布进行反概率累积密度分析 – qt()函数

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

语法: qt(x, df)

参数:

x: 随机变量

df: 自由度

例1:

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

输出:

[1] 1.812461
[1] 0.1072654
R

例2:

# 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")
R

输出:

在R语言编程中对t分布进行反概率累积密度分析 - qt函数

Python教程

Java教程

Web教程

数据库教程

图形图像教程

大数据教程

开发工具教程

计算机教程

登录

注册