473,651 Members | 2,512 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Stats algorithm: Get z-score from percentile?

I'm looking from an algorithm that will do a statistics calculation for me--
it's the first time 'Numerical Recipies in C' has failed me! A normal
distribution table tells me the probability (by percentile) of an item,
given something called a z-score. If I have a z-score, I can look up the
probability in a distribution table.

There are plenty of algorithms around to do that calculation, but I need to
do a reverse lookup. I am given a percentile, and I need to return the
z-score that corresponds to that percentile. I haven't found anything that
will give me that result. If anyone can direct me to code or to an
algorithm, I'll be very grateful.

Thanks,
Dave Veeneman
Nov 15 '05 #1
3 13467
What about http://www.fourmilab.ch/rpkp/experim...is/zCalc.html? Is
that what you're looking for (it's all done in JavaScript)?

Failing that, there is always Newton's Method.

Colin

"Dave Veeneman" <no****@nospam. com> wrote in message
news:%2******** ********@TK2MSF TNGP12.phx.gbl. ..
I'm looking from an algorithm that will do a statistics calculation for me-- it's the first time 'Numerical Recipies in C' has failed me! A normal
distribution table tells me the probability (by percentile) of an item,
given something called a z-score. If I have a z-score, I can look up the
probability in a distribution table.

There are plenty of algorithms around to do that calculation, but I need to do a reverse lookup. I am given a percentile, and I need to return the
z-score that corresponds to that percentile. I haven't found anything that
will give me that result. If anyone can direct me to code or to an
algorithm, I'll be very grateful.

Thanks,
Dave Veeneman

Nov 15 '05 #2
Thanks! I had found fourmilab, but then I assumed that the code would be
server-side. Guess it shows what happens when I assume...

I did find a Fortran version at http://lib.stat.cmu.edu/apstat/241. It's
from the Journal of Applied Statistics-- I may use that one, simply because
I can verify it in the journal.

Regards,
Dave Veeneman
Nov 15 '05 #3
Hey, would you be willing to share your code once you code
it up in C#? I'm trying to get together a bunch of stats
code in C#. I did a bunch in VB 6.0 for basic things
(correlation, sd, etc) and it is looking like I'll have to
convert it all.
Geoff Collier
Nov 15 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1651
by: mr_burns | last post by:
hi, i want to put some useful marketing stats onto a web site but cant really think of many. ones that i have thought of that would be useful for marketing are: - which URL did a user come from? see what paid online advertisements are working the best. - ...also, what did that user then go on an buy (if anything).
8
5823
by: Bob II | last post by:
Hey, I've never used PHP before. I was wondering if it is possible to use PHP to generate web stats. My web host's stats aren't very good. So I want to generate some custom stats for myself. At a minimum, I want a log of the IP, referrer, environment variables, time stamp, etc., and dump it into a comma delimited text file that I can import into access or Excel. I don't need to generate gifs with PHP. Just need the raw data. Can...
6
2569
by: Jean-Fran?ois Lacrampe | last post by:
Hello, I've got two random number/statistics questions I'd like you to review. My first question is not directly related to PHP, but will be implemented in PHP, as explained in my second question, so let's go: I want to generate 10000 strings of x characters, with one chance (or less) on a million that you can guess them by just randomly typing them. So I need to know what is the value of x.
0
2324
by: dba | last post by:
Hi I am a new MySQL dba tuning a busy Apache/MySQL installation. Here are some of the statistics for the last 24 hours: Com_admin_commands 978,760 What "Admin_Commands" does this include - at 11.3 per sec this is a lot!
1
3361
by: Peter Sands | last post by:
Hi, I am trying to run an update stats command but keep getting a syntax error: Looking at the doco it looks like I can use: update stats <table_name>; but when I use: mysql> update stats x_balance; ERROR 1064: You have an error in your SQL syntax near 'x_balance' at line 1
5
7962
by: Peter Jenkins | last post by:
The client for which I do this site www.safenz.org.nz wants stats tracking/a visitor counter, like the one that is there at the moment (at the bottom of the home page). However I would like one that 1) uses either a link or a small, discreet icon, rather than the butt-ugly counter that's there currently. I dont want an actual counter visible on the page if possible 2) uses valid code - the counter code is the only thing on the page that...
0
1251
by: Utter Newbie | last post by:
I know we have access to log files and web statistics can be pulled from those. But the guy who wants it built was thinking we should keep track of every time a page is hit seperately in MS sql server. He's thinking it would be better for clients to be able to tell how many page hits we're getting whenever they want - mainly concerned with advertising banners (how many views they are getting). I'm concerned about hitting the database for...
1
2202
by: MKoool | last post by:
Is there any decent library for basic stats? I am just looking for the basics, like quartiles, median, standard deviation, mean, min, max, regression, etc. I was going to use SciPy, but I use Python 2.4, and it seems to be supported primarily for 2.3... What other statistical packages have any level of public support at this point?
9
4054
by: ankitdesai | last post by:
I would like to parse a couple of tables within an individual player's SHTML page. For example, I would like to get the "Actual Pitching Statistics" and the "Translated Pitching Statistics" portions of Babe Ruth page (http://www.baseballprospectus.com/dt/ruthba01.shtml) and store that info in a CSV file. Also, I would like to do this for numerous players whose IDs I have stored in a text file (e.g.: cobbty01, ruthba01, speaktr01, etc.)....
2
1728
by: Monu | last post by:
HI All, I am getting problem in using hotshot profiler. When I hotshot with lineevents=0, it works fine, but when I use lineevents=1, I get error in stats here is my code: import hotshot, hotshot.stats prof = hotshot.Profile("test.prof",lineevents=1) prof.start()
0
8352
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8275
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8697
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8579
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6158
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5612
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4144
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2699
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1587
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.