Ich möchte 150.000 zufällige Werte von Y^x simulieren und ein Histogramm von ihnen erstellen. Kann mir jemand zeigen, wie man das auf Matlab macht?Matlab Simulation (Statistik)
Antwort
Y = y_lower + (y_upper-y_lower) * rand(150000,1);
x = x_lower + (x_upper-x_lower) * rand(150000,1);
U = Y .^ x;
hist(U);
Beispielausgabe für Y
von 5 bis 8 und x
2-2,5:
Ist es immer noch okay, wenn ich es ohne y_lower/upper und x_upper/lower..für ex: y = randn (150000,1) mache – Speed
@Speed Natürlich, aber das würde Ihnen Proben aus der Normale Normalverteilung statt einer Uniform. 'rand' gibt dir Uniform (0, 1); 'randn' gibt dir normal (0, 1). – Dougal
Ah sorry, ich meinte Rand dumme mich! .. THx für die Hilfe bro. – Speed
- 1. MATLAB-Simulation
- 2. Simulation auf MATLAB
- 3. SET Spiel Odds Simulation (MATLAB)
- 4. Linux-Cluster-Shell für parallele Matlab-Simulation
- 5. Python und Agenten Simulation/Visualisierungsumgebungen
- 6. Python-Simulation
- 7. Gentechnik-Simulation
- 8. Visual Studio Build-Statistik
- 9. JavaScript-Erkennung/Browser-Statistik
- 10. Werte der Bootstrap-Statistik
- 11. Rake-Statistik und Gurke
- 12. Mailjet Abmelden Statistik
- 13. CruiseControl.net Statistik Tutorial
- 14. Docker Statistik 100% Speicher
- 15. Apple Entwickler Statistik
- 16. Android Hintergrund Downloads Statistik
- 17. Memcache Statistik Verständnis
- 18. NodeJS Datei Statistik
- 19. Umfrage Statistik Diagramm Ideen
- 20. Ehcache Statistik nach Schlüssel
- 21. GCC-Code-Statistik/Analyse
- 22. erzeuge mysql-Statistik
- 23. fahrender Zug von Autos Simulation
- 24. Statistik/Monitor/Inspector für beanstalkd
- 25. COLLECT Mit STATISTIK in Teradata
- 26. Get Code Coverage Statistik IOS
- 27. Statistik für Spark mllib DecisionTree
- 28. Google Play Entwickler-Statistik-API
- 29. Statistik und Matrixalgebra in Ruby
- 30. Azure Service Bus Statistik/Überwachung
Wie kommen Sie 'Y' und 'X'? Welche Verteilung oder generativer Prozess oder was? – Dougal
sorry x und y sind einheitliche Verteilungen. U = Y^x – Speed