TI-89 Titanium - Probability - Expected Value

  • Calculators
  • Thread starter rekshaw
  • Start date
  • #1
15
0

Main Question or Discussion Point

EDIT: I found the solution, it can be done using the TwoVar() function on the TI-89 and it gives you a whole lot more than just the expected value. thanks anyways

Hello everyone! :)

I hope I will get an answer for this!

As a USER-DEFINED function I would like to be able to calculate the Expected Value of n outcomes with their respective probabilities (also in a single matrix)

it should look something like this:

[itex]\begin{pmatrix}

1 & 1/6 \\
2 & 1/6 \\
3 & 1/6 \\
4 & 1/6 \\
5 & 1/6 \\
6 & 1/6 \end{pmatrix}[/itex]

To find the expected value I would need to do:

[itex](1 \times 1/6) + (2 \times 1/6) + ... + (6 \times 1/6) = E(X)[/itex]

Basically, multiply each outcome with its probability and finally sum the whole lot...

IDEALLY...I would like to be able to make a single 2 x n matrix with outcomes and probabilities side-by-side, store it as A and be able to do:
Code:
expval(A)
or...which is faster to type: make a n*2 matrix!

Anyways...sorry for the long post, any help will be much appreciated!!!!
 
Last edited by a moderator:

Answers and Replies

  • #2
33,508
5,193
Nice solution!
 

Related Threads on TI-89 Titanium - Probability - Expected Value

  • Last Post
Replies
2
Views
26K
Replies
1
Views
3K
  • Last Post
2
Replies
34
Views
130K
Replies
7
Views
10K
Replies
10
Views
6K
Replies
3
Views
19K
Replies
2
Views
5K
  • Last Post
Replies
5
Views
7K
  • Last Post
Replies
4
Views
18K
  • Last Post
Replies
1
Views
2K
Top