{
  "cells": [
    {
      "cell_type": "code",
      "execution_count": null,
      "metadata": {
        "_cell_guid": "af3ba302-f279-5883-b3d4-c5db411035b3"
      },
      "outputs": [],
      "source": [
        "\n",
        "import numpy as np # linear algebra\n",
        "import math\n",
        "import matplotlib.pylab as plt\n",
        "from mpl_toolkits.mplot3d import Axes3D\n",
        "from matplotlib import cm\n",
        "\n",
        "positive = 6879\n",
        "negative = 1176868\n",
        "#negative = positive\n",
        "\n",
        "N = 200\n",
        "\n",
        "mat = np.zeros(shape=[N, N])\n",
        "\n",
        "tp = 5700\n",
        "\n",
        "tn = np.linspace(1100000, negative, N)\n",
        "\n",
        "\n",
        "fn = positive - tp\n",
        "fp = negative - tn\n",
        "den = np.sqrt((tp+fp)*(tp+fn)*(tn+fp)*(tn+fn))\n",
        "num = tp * tn - fp * fn\n",
        "\n",
        "Z = num / den\n",
        "\n",
        "fig = plt.figure(figsize=(10, 10))\n",
        "plt.plot(tn, Z)\n",
        "plt.show()\n",
        "\n",
        "#print(mat)\n",
        "        \n",
        "        \n",
        "#plt.imshow(mat)"
      ]
    }
  ],
  "metadata": {
    "_change_revision": 0,
    "_is_fork": false,
    "kernelspec": {
      "display_name": "Python 3",
      "language": "python",
      "name": "python3"
    },
    "language_info": {
      "codemirror_mode": {
        "name": "ipython",
        "version": 3
      },
      "file_extension": ".py",
      "mimetype": "text/x-python",
      "name": "python",
      "nbconvert_exporter": "python",
      "pygments_lexer": "ipython3",
      "version": "3.5.2"
    }
  },
  "nbformat": 4,
  "nbformat_minor": 0
}