Mostrando postagens com marcador MBA. Mostrar todas as postagens
Mostrando postagens com marcador MBA. Mostrar todas as postagens

segunda-feira, 5 de novembro de 2012

Tool Aid in Financial Mathematics

Hello Guys, here is a post slightly off what I usually post here .. but as the purpose of the blog is to share knowledge, c'mon ...

Inspired by a work of  financial mathematics discipline on the postgraduate course in Business Administration from FGV I'm doing, I decided to implement a small application that helped me enhance learning some concepts, I really hope and also be able to help other colleagues ..

Our job was to analyze one, among many other systems of financing for the purchase of vehicles - those with loss of sight benefits, and confront it with some applications financial institutions offer us. 

The application (which so far have not found a name for baptism), is designed to solve these calculations and present the results graphically. However .. after it's done I realized that I could improve it a little bit more, including intelligence so that it will be able to solve many of the problems of compound interest, amortization systems - PRICE, and many others that the imagination of our teachers sue .. 

Using The application 

The system is quite simple, it works with classical variables of financial mathematics and the dreaded HP 12C - PV (present value), FV (future value), etc.. Notice that we have two locations for input rates of yield, or interest rate, which I labeled, savings and fixed income because it was the one I used in my work, but that is what matters least, I mean, the labels, the interesting thing is that we have two interest rate / yield to compare.

Figure 1 - system in action -  graphic  bars
When you start, notice that all the values has already been inserted , I did so during implementation and ended up leaving that way to become my job easier, but any value can be modified easily. With parameters duly completed click "Processar" button and graphics are rendered, as well as some information about the behavior of applications are reported in the text box to the left. Realize that we have a third graph - the legend, "Financiamento" which represents the initial value of the deposit (or application) and the fixed installments (PMTs). This graph will always be a line, but the applications may be bars - as in Figure 1 or rows as shown in Figure 2 below.

Figure 2 - system in action - line graphs
As I said, I evolve the app a bit more for it help us with calculations of compound interest - investment analysis without payments (withdrawals) during the investment, etc.. To use it in this way simply assign zero value to the alleged financing (FV) and parcels (withdrawals) fixed. Figure 3 illustrates a classic case of classroom R$ 1000.00, applied for 3 months at 10% per month (here also has 20% fixed income), here is the result:

Figure 3 - compound interest without withdrawals
Figure 4 shows one slightly different scenario where we have to include taken along the investment.

Figure 4 - compound interest on withdrawals
Installing application

Ok.. if someone find it interesting and want to test, it is quite simple. It is a ordinary windows application installation, a piece of cake.. 

First try this file  CAB installer , which is smaller and theoretically simpler. Just unzip it in a folder and click on any file "FGV-MtmFinanceira.exe." It may not work for lack of a configuration file on your machine.

If not work, try this: Install . Do dowload the file, unzip it and run setup.exe. After installation, you should see a cup of coffee on your desktop. 

Alternatively visit here ...  which has both installation options side by side. 

Final Thoughts 

As I said the idea emerged during development of a school homework, either that have no name, so it must have some small adjustments to be made ​​as well as new features to be included. 

Ps: .. icon cup of coffee was used due to 5 or 6 cups.. I drunk ​​while coded the application ... 

Well, this is it guys .. if anyone has any criticism or suggestions they will be very welcome .. I hope this joke is helpful to someone.. 

best wishes,
Caio Azevedo

quinta-feira, 25 de outubro de 2012

Ferramenta de Auxílio a Matemática Financeira

Olá Pessoal, eis um post um pouco fora do que costumo publicar aqui.. mas como o intuito do blog é compartilhar conhecimento, vamos lá...

Inspirado em um trabalho da disciplina matemática financeira do curso de pós graduação em Administração da FGV que estou fazendo, resolvi implementar uma pequena aplicação que me ajudou a reforçar o aprendizado de alguns conceitos, acredito e realmente espero que também seja capaz de ajudar outros colegas..

Nosso trabalho consistia em analisar um, dentre tantos outros sistemas de financiamento para compra de veículos - aqueles com prestações à perda de vista, e confrontá-lo com algumas aplicações que instituições financeiras nos disponibilizam.

O aplicativo (que até agora não achei um nome para batizar), foi concebido para resolver esses cálculos e apresentar os resultados graficamente. No entanto..depois de pronto percebi que dava para melhora-lo um pouco, incluindo inteligencia para  que ele resolva boa parte dos problemas de juros compostos, sistemas de amortização - PRICE, e outros tantos que a imaginação dos nossos professores demandar..

Usando o aplicativo

O sistema é bem simples, ele trabalha com as variáveis clássicas da matemática financeira e da temida HP 12C - PV (present value), FV (future value), etc. Percebam que temos dois locais para entrada das taxas de rendimento, ou taxa de juros, que rotulei, poupança e renda fixa, pois foi o que usei no meu trabalho, mas isso é o que menos importa, digo, os rótulos, o interessante é que temos duas taxas de juros/ rentabilidade para comparar.

figura 1 - sistema em ação - gráficos barras

Ao iniciar, percebam que já foi inserido todos os valores, fiz assim durante a implementação e acabei deixando para facilitar meu trabalho, mas qualquer valor pode ser modificado facilmente. Com os parâmetros devidamente preenchidos é só clicar no botão Processar e os gráficos são renderizados, bem como algumas informações do comportamento das aplicações são informadas na caixa de texto à esquerda. Percebam que temos um terceiro gráfico - na legenda, "financiamento" que representa o valor inicial do depósito (ou aplicação)  e as parcelas fixas (PMTs). Esse gráfico será sempre uma linha, mas das aplicações   podem ser barras - como na figura 1 ou linhas como apresentado na figura 2 abaixo.

figura 2- sistema em ação - gráficos linha
Como disse, evolui um pouco o aplicativo para ele nos ajudar com calculos de juros compostos - análise de investimentos sem pagamentos (retiradas) durante o investimento, etc. Para utiliza-lo dessa forma basta atribuir zero ao valor do suposto financiamento (FV) e das parcelas (retiradas) fixas. A figura 3 exemplifica um caso clássico de sala de aula R$ 1000.00, aplicados por 3 meses à 10% ao mês (aqui também tem 20% para renda fixa), eis o resultado:

figura 3- juros compostos sem retiradas

A figura 4 apresenta um cenário um pouco  diferente, onde temos a inclusão de retiradas ao longo do investimento.

figura 4- juros compostos com retiradas

Instalando o aplicativo

Vamos lá.. se alguém achar interessante e quiser testar é muito simples. Trata-se de um aplicativo windows comum de instalação fácil.. fácil..

Primeiro tente esse arquivo Instalador CAB, que é menor e teoricamente mais simples. Basta descompacta-lo em um pasta qualquer e clicar no arquivo "FGV-MtmFinanceira.exe". Pode ser que não funcione por falta de algum arquivo de configuração na sua máquina.

Se não funcionar tente esse Install. Faça o dowload do arquivo, descompacte-o e execute o arquivo setup.exe. Após a instalação, deve aparecer uma xícara de café no seu desktop (área de trabalho).

Se preferir acesse por aqui... que tem as duas opções de instalação lado a lado.

Considerações Finais

Como disse a ideia do aplicativo surgiu durante a elaboração do trabalho, tanto que nem tem nome, então deve ter alguns pequenos ajustes a serem feitos, bem como novas funcionalidades a serem inclusas.

Ah.. o ícone da xícara de café foi utilizado por conta das 5 ou 6.. que tomei enquanto codificava o aplicativo...

Bom, é isso ai galera.. se alguém tiver alguma crítica/sugestão será muito bem vindo.. espero que essa brincadeira seja útil para alguém..

abraço..
Caio Azevedo