Regresión lineal

En quince casas de la ciudad se observó durante un período de tiempo la diferencia de temperatura promedio (en grados centígrados) entre la temperatura en la calle y la temperatura en casa, y el consumo de electricidad diario en kWh

Graficas de datos


Podemos percibir que entre más sube la diferencia de temperatura entre la casa y la calle
suele haber más consumo de energía eléctrica.

Aplique regresión lineal y obtenga la función lineal que se ajusta a estas mediciones.

corriendo el siguiente código con los datos proporcionados obtenemos los resuldatos de a1 = 3.39553 a0 = 37.1618, lo que quiere decir que el y = 37.1618 + 3.39553 * x es un modelo lineal que se ajusta apropiadamente a estos datos.

Error estándar de la estimación

El error estandar está definido por la desviación estandar entre la raíz del numero
de datos: std_dev / sqrt(n). Así pues, encontramos que el error estandar de la
estimación es de 509.583.

Coeficiente de correlación

El coeficiente de correlación de Pearson es una medida de relación lineal entre dos variables aleatorias
cuantitativas y lo podemos utilizar como índice para medir el grado de relación de dos variables.


Encontramos que el coeficiente de correlación en los datos es de -6.81036e+31.

Grafica de la regresión lineal



Human Torch

#WSQ10 – College Advice

The first thing caught my attention in Joel Spolsky’s post Advice for Computer Science College Students was his recommendation to learn microeconomics. Economics is surely something that I’m not interested in, but there are some subjects that everyone must learn in his life in order to be a successful person, even if you think they are boring af.

The second thing is the thing about learning to write (I already know how to write though). And he means write like being awesome writing, to caught the attention of the readers and to make it seem like what you are working on is the next revolution in technology.

The third and last thing appears (wildly) when he talks about not blowing off boring classes. Every person I’ve talked with on this subject tells me that the number that your college labels you with is not so important, if at all, for most employers, that the important thing is to connect with important people and to be recognised for your work. But now some random guy from 2005 comes out and tells me “Never underestimate how big a deal your GPA is”. That’s the real shit.

User story

The user Signs in or logs in and the authentication server validates the user credentials.

Then the user can access to the main menu, select a character and join a waiting room, then the game starts. When the game finishes the player can keep playing in the same room, join another room or exit the game.useCases

How to submit code to Github

First of all you need to create a free Github account, and also you need to check if git is installed. Open a terminal window and type:

git –version

If git is not installed, then go to the git download page and install the appropriate version for your operative system, or just type:

sudo apt-get install git

Then you need to configure your local git profile, just by typing in the terminal:

git config –global “myname”

git config –global “myemail”

And of course you should replace the text beneath the quotes with your own name and email.

And now go to Github and click on the button that says “New repository”, give it a name and click on “Create Repository”.

Noew that your repository is online, go to the terminal and go to the root folder of your project, then type:

git init

This will create an empty local repository.

See if there’s a file in the root folder of your project, if not, create one, you can leave it blank if you want to, this file is the description and other important information about your project that appears in the repository page.

And now you have to add all your files to the queue so that they can be commited:

git add .

git commit -m “some random message”

Now in order to push the code to your repository, you need to create a connection to it, just type this and change the link to fit the one of your repository (you can see it in your repository page), where “bazinga” is the remote name:

git remote add bazinga

So now all you need to do is to push the commit to your remote repository with:

git push -u bazinga master

This adds your commit to the master branch.

And that’s all! you should now see your all your project files in the Github repository.