Ayuda con el metodo Montecarlo modificado

Hola , Realice una gráficas con datos random, pero mi tutor me pidió que hiciera lo siguiente y la verdad no se como :frowning: :frowning:

*"Debes hacer diez mil veces la aleatorizacion ( en las gráficas que nos mostraste solo hiciste una). Y en cada aleatorizacion debes obtener la media de la matriz y guardarla. De ese modo acabas con diez mil medias. *
Gráficas el histograma de las diez mil medias y ya, este metodo se llama montecarlo, pero es modificado"

Les dejo el scritpt de mis random y de mis histogramas.
De ante mano gracias :slight_smile:

Script random base de datos.

datos<- read.csv("BASENUTRCPP.csv", row.names = "Symbol", sep = ","
datosRandcpp <- apply(datos, MARGIN = 2, FUN=permute)

Script de histograma

HCPPRD1 <- hist(x = e$Peso.T,xlim = c(-1,+1), xlab = "Coeficiente de correlacion", ylab = "Frecuencia", main = "Histograma de Correlacion_miRNAs-Macros_CPP_Peso Total_RD", col = "red")

Could you please turn this into a self-contained REPRoducible EXample (reprex)? A reprex makes it much easier for others to understand your issue and figure out how to help.

If you've never heard of a reprex before, you might want to start by reading this FAQ:

Also, Homework inspired questions are welcome here, but you have to tell us what have you tried so far? what is your specific problem? We are more inclined towards helping you with specific coding problems rather than doing your work for you.

For guidelines about how to properly ask homework related questions here, please read our homework policy.

Nota: Por favor intenta hacer tus preguntas en inglés, ya que es el idioma preferido aquí y al usar español estás excluyendo a la mayoría de la conversación, reduciendo así tus posibilidades de obtener ayuda.

thanks 4u help :slight_smile: ......................................

A post was merged into an existing topic: Help with the modified Monte Carlo method

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.