The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 795 - File: showthread.php PHP 7.4.33 (FreeBSD)
File Line Function
/showthread.php 795 errorHandler->error





Post Reply 
Q function (inverse) and erf(c) inverse in CAS
07-22-2024, 04:52 PM (This post was last modified: 07-22-2024 06:05 PM by nbc12.)
Post: #1
Q function (inverse) and erf(c) inverse in CAS
I'm doing a statistics class this summer, and the CAS on the Prime has been a huge help!

I noticed that the Prime doesn't have these MATLAB functions that we use in class:
qfunc (Q function)
qfuncinv (Inverse Q function)
erfinv (Inverse ERF)
erfcinv (Inverse ERFC)

So I created a CAS program to give me them.

Code:

#cas
QFUNC():=
BEGIN
  erfcinv(x) := normald_icdf(x/2) / -√(2);
  erfinv(x) := erfcinv(1-x);
  qfunc(x) := normald_cdf(-x);
  qfuncinv(x) := -normald_icdf(x);
END;
#end

Feel free to use as you wish. I'm mostly just putting this here so some future stats student can just grab the program.

Maybe these could be included in a future update? It would be helpful to me at least Smile
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Q function (inverse) and erf(c) inverse in CAS - nbc12 - 07-22-2024 04:52 PM



User(s) browsing this thread: 2 Guest(s)