    # st: How to calculate probability using STATA?

 From owner-statalist@hsphsun2.harvard.edu To undisclosed-recipients: ; Subject st: How to calculate probability using STATA? Date Thu, 23 Mar 2006 08:17:40 +0800

```>
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
Thread-Topic: How to calculate probability using STATA?
From: "Zhao Xiuxi" <zhao.xiuxi@nus.edu.sg>
To: <statalist@hsphsun2.harvard.edu>
X-OriginalArrivalTime: 23 Mar 2006 00:17:41.0298 (UTC) FILETIME=3D[32F43920=
:01C64E0F]
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from base64 to 8bit by hsphsun2.harvard.edu id k2N0Hm=
h05010
Sender: owner-statalist@hsphsun2.harvard.edu
Precedence: bulk
Errors-To: statalist-owner@hsphsun2.harvard.edu
Hello!

Does anyone know Gilovich Vallone and Tversky (1985)=E2=80=99s paper "The H=
ot Hand in Basketball: On the Misperception of Random Sequences"? In this p=
aper, they analyze the conditional probability such as P(hit|1miss), P(hit|=
1hit), P(hit|2hit) as well as serial correlation.

Now I have a similar dataset at hand with variables including "game number"=
, "player number", "hit or not" (this is a binary variable), =E2=80=9Cshort=
count=E2=80=9D etc. How can I use STATA to calculate such conditional prob=
ability and serial correlation?

Thanks a lot!!

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/
```