Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: product function

From   "Dimitriy V. Masterov" <>
Subject   st: product function
Date   Tue, 25 May 2004 11:43:00 -0500 (CDT)

I would like to plot the probability that two people share a birthday as a
function of the number of people in the room n. The formula is


In TeX, it would be


If I have a variable n={1,...,50}, how can I define the product within
Stata? There does not seem to be math function that can do this.


Dimitriy V. Masterov

Center for Social Program Evaluation
1155 East 60th St. Room 038
Chicago, IL 60637
Work: (773)256-6005
Fax: (773)256-6313

1312 East 53rd St., Apt.309
Chicago, IL 60615
Mobile: (773)220-2760

*   For searches and help try:

© Copyright 1996–2017 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index