www.omatrix.com





:: O-Matrix ::
> Overview
> Examples
> Performance
> Analysis Functions
> Data Visualization
> The O-Matrix Language
> Data Manipulation/IO
> Application Development
> Using Matlab m-files




FTAILX.OMS

Script File:
# Description:
# Determines the probability that the F statistic is a given value or greater.
#
clear
# values for F - statistic
F = seq(100) / 10.                      
#
gtitle("df is degrees of freedom")
gxtitle("F - statistic")
gytitle("probability of F or greater")
#
gxaxis("linear", 0, 10, 10, 5)
gyaxis("linear", 0, .1, 4, 8)
#
df = [5, 10, 15, 25]
text = { "df = 5", "df = 10", "df = 15", "df = 25"}
for i = 1 to coldim(df) begin
	# degrees of freedom
	d = fill(df(i), 100, 1) 
	# probability
	p = ftail(F, d, d)      
	# plot probability as a function of F
	gplot(F, p)             
	# label curve with degrees of freedom
	coord = gcoord(F(45 - 5 * i), p(45 - 5 * i))
	gaddtext(text.row(i), coord);
end
	  

Output:


Company |  Products |  Showcase |  Support |  Ordering
Copyright© 1994-2009 Harmonic Software Inc. - All rights reserved.