Calculating Probability of a data

5 ビュー (過去 30 日間)
Curious Mind
Curious Mind 2018 年 5 月 7 日
編集済み: Pawel Jastrzebski 2018 年 5 月 8 日
Hello friends, I have two data, dataA (26*1 double) and dataB (90*1 double). I want to calculate the probabilities of each each row in dataA in dataB. So its like this, take row1 in dataA and computes its probability in dataB also take row2 in dataA and computes its probability in dataB and so on until all the 26 rows in dataA has been used. Any matlab code to help me do this? Thank you.
  1 件のコメント
Pawel Jastrzebski
Pawel Jastrzebski 2018 年 5 月 8 日
編集済み: Pawel Jastrzebski 2018 年 5 月 8 日
I'm not sure your questions is clearly defined.
In simple terms:
  • if you have all of the 26 values from A in B,
  • and there are no repeats in A
  • and each value from A occurs only once in B
Then your probability is 1/90.
But as you can see, in this simple case at least 3 conditions must be met.
  • Can you share your data?
  • Is your data one-off or it's going to be a different set of 26 and 90 values every time you conduct an experiment?
  • Can broadly tell what is your data representing and what you are aiming to achieve? A bit of context always help to come up with the solution adequate for the problem.

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeRF Blockset Models for Transceivers についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by