フィルターのクリア

vector of random numbers - mean, MSE / SSE.

3 ビュー (過去 30 日間)
Thomas Kozinski
Thomas Kozinski 2021 年 3 月 19 日
回答済み: Jan 2021 年 3 月 19 日
Hello, I have a task and I don't know how to go about making some of them
1.For the 10-element vector of random numbers calculate the mean and then MSE (Mean Squared Errors) and SSE (Sum of Squared Errors) - if I can ask for help, how can I execute it with what commands?
10 - element vector:
b=randi(10,10,1)
2.To what value do qualitative indicators converge with the increase of random samples?
  1 件のコメント
KSSV
KSSV 2021 年 3 月 19 日
It ius a simple task.....check the formula and impliment in MATLAB.

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

採用された回答

Jan
Jan 2021 年 3 月 19 日
Use mean() to calculate the mean. Then MSE is the "mean squared error": mean((b - mean(b)) .^2).
There is no magic. Simply try it. If you get a specific problem, post your code and explain the problem here.
For your 2nd question: Use a variable n instead of a fixed size of 10. Then increase n to find out by experiments, to examine the results.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeRandom Number Generation についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by